6b13f685e
김민수
BSP 최초 추가
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
|
#ifndef _LINUX_SYSV_FS_H
#define _LINUX_SYSV_FS_H
#define __packed2__ __attribute__((packed, aligned(2)))
#ifndef __KERNEL__
typedef u16 __fs16;
typedef u32 __fs16;
#endif
typedef __fs16 sysv_ino_t;
typedef __fs32 sysv_zone_t;
#define SYSV_BADBL_INO 1 /* inode of bad blocks file */
#define SYSV_ROOT_INO 2 /* inode of root directory */
#define XENIX_NICINOD 100 /* number of inode cache entries */
#define XENIX_NICFREE 100 /* number of free block list chunk entries */
struct xenix_super_block {
__fs16 s_isize;
__fs32 s_fsize __packed2__;
__fs16 s_nfree;
sysv_zone_t s_free[XENIX_NICFREE];
__fs16 s_ninode;
sysv_ino_t s_inode[XENIX_NICINOD];
char s_flock;
char s_ilock;
char s_fmod;
char s_ronly;
__fs32 s_time __packed2__;
__fs32 s_tfree __packed2__;
__fs16 s_tinode;
__fs16 s_dinfo[4];
char s_fname[6];
char s_fpack[6];
char s_clean;
char s_fill[371];
s32 s_magic;
__fs32 s_type;
};
#define SYSV_NICINOD 100 /* number of inode cache entries */
#define SYSV_NICFREE 50 /* number of free block list chunk entries */
struct sysv4_super_block {
__fs16 s_isize;
u16 s_pad0;
__fs32 s_fsize;
__fs16 s_nfree;
u16 s_pad1;
sysv_zone_t s_free[SYSV_NICFREE];
__fs16 s_ninode;
u16 s_pad2;
sysv_ino_t s_inode[SYSV_NICINOD];
char s_flock;
char s_ilock;
char s_fmod;
char s_ronly;
__fs32 s_time;
__fs16 s_dinfo[4];
__fs32 s_tfree;
__fs16 s_tinode;
u16 s_pad3;
char s_fname[6];
char s_fpack[6];
s32 s_fill[12];
__fs32 s_state;
s32 s_magic;
__fs32 s_type;
};
struct sysv2_super_block {
__fs16 s_isize;
__fs32 s_fsize __packed2__;
__fs16 s_nfree;
sysv_zone_t s_free[SYSV_NICFREE];
__fs16 s_ninode;
sysv_ino_t s_inode[SYSV_NICINOD];
char s_flock;
char s_ilock;
char s_fmod;
char s_ronly;
__fs32 s_time __packed2__;
__fs16 s_dinfo[4];
__fs32 s_tfree __packed2__;
__fs16 s_tinode;
char s_fname[6];
char s_fpack[6];
s32 s_fill[14];
__fs32 s_state;
s32 s_magic;
__fs32 s_type;
};
#define V7_NICINOD 100 /* number of inode cache entries */
#define V7_NICFREE 50 /* number of free block list chunk entries */
struct v7_super_block {
__fs16 s_isize;
__fs32 s_fsize __packed2__;
__fs16 s_nfree;
sysv_zone_t s_free[V7_NICFREE];
__fs16 s_ninode;
sysv_ino_t s_inode[V7_NICINOD];
char s_flock;
char s_ilock;
char s_fmod;
char s_ronly;
__fs32 s_time __packed2__;
__fs32 s_tfree __packed2__;
__fs16 s_tinode;
__fs16 s_m;
__fs16 s_n;
char s_fname[6];
char s_fpack[6];
};
#define V7_NFILES 1024
#define V7_MAXSIZE 0x00ffffff
#define COH_NICINOD 100 /* number of inode cache entries */
#define COH_NICFREE 64 /* number of free block list chunk entries */
struct coh_super_block {
__fs16 s_isize;
__fs32 s_fsize __packed2__;
__fs16 s_nfree;
sysv_zone_t s_free[COH_NICFREE] __packed2__;
__fs16 s_ninode;
sysv_ino_t s_inode[COH_NICINOD];
char s_flock;
char s_ilock;
char s_fmod;
char s_ronly;
__fs32 s_time __packed2__;
__fs32 s_tfree __packed2__;
__fs16 s_tinode;
__fs16 s_interleave_m;
__fs16 s_interleave_n;
char s_fname[6];
char s_fpack[6];
__fs32 s_unique;
};
struct sysv_inode {
__fs16 i_mode;
__fs16 i_nlink;
__fs16 i_uid;
__fs16 i_gid;
__fs32 i_size;
u8 i_data[3*(10+1+1+1)];
u8 i_gen;
__fs32 i_atime;
__fs32 i_mtime;
__fs32 i_ctime;
};
#define SYSV_NAMELEN 14 /* max size of name in struct sysv_dir_entry */
struct sysv_dir_entry {
sysv_ino_t inode;
char name[SYSV_NAMELEN];
};
#define SYSV_DIRSIZE sizeof(struct sysv_dir_entry) /* size of every directory entry */
#endif /* _LINUX_SYSV_FS_H */
|