1: /*
2: * Inode structure as it appears on
3: * a disk block.
4: */
5: struct dinode
6: {
7: u_short di_mode; /* mode and type of file */
8: short di_nlink; /* number of links to file */
9: short di_uid; /* owner's user id */
10: short di_gid; /* owner's group id */
11: off_t di_size; /* number of bytes in file */
12: char di_addr[40]; /* disk block addresses */
13: time_t di_atime; /* time last accessed */
14: time_t di_mtime; /* time last modified */
15: time_t di_ctime; /* time created */
16: };
17:
18: #ifndef UCB_NKB
19: #define INOPB 8 /* 8 inodes per block */
20: /*
21: * 39 of the address bytes are used;
22: * 13 addresses of 3 bytes each.
23: */
24: #endif
25:
26: #if UCB_NKB == 1
27: #define INOPB 16 /* 16 inodes per BSIZE block */
28: /*
29: * 21 of the address bytes are used;
30: * 7 addresses of 3 bytes each.
31: */
32: #endif
Defined struct's
dinode
defined in line
5; used 136 times
- in /usr/src/cmd/512dumpdir.c line
35(2),
137(2)
- in /usr/src/cmd/512restor.c line
51(2),
112(2),
202(2),
455(2),
832-835(4),
846(2),
1151(2),
1159-1164(6),
1171(4)
- in /usr/src/cmd/dcheck.c line
22(2),
132(2),
179(2)
- in /usr/src/cmd/dump.c line
23(2),
221(2),
265(2),
285(2),
304(2),
630(2)
- in /usr/src/cmd/dumpdir.c line
99(2)
- in /usr/src/cmd/fsck.c line
39(2),
85(2)
- in /usr/src/cmd/icheck.c line
25(2),
242(2)
- in /usr/src/cmd/mkfs.c line
594(2),
607(2)
- in /usr/src/cmd/ncheck.c line
27(2),
148(2),
162(2),
205(2)
- in /usr/src/cmd/quot.c line
26(2),
105(2),
123(2)
- in /usr/src/cmd/restor.c line
82(2),
175(2),
432(2),
809-814(4),
825(2),
1132(2),
1140-1145(6),
1154(4)
- in /usr/src/sys/stand/libsa/SYS.c line
19(2)
- in /usr/src/sys/sys/alloc.c line
249(2),
305(2)
- in /usr/src/sys/sys/iget.c line
105(2),
193(2),
203(2),
322(2),
335(2)
- in /usr/src/sys/sys/sys3.c line
97(2),
121(2)
- in /usr/src/sys/sys/syslocal.c line
174(2),
194(2)
- in /usr/src/ucb/dump/src/dumpitime.c line
213(2)
- in /usr/src/ucb/dump/src/dumptraverse.c line
5(2),
46(2),
90(2),
112(2),
131(2)
Defined macros
INOPB
defined in line
27; used 36 times
- in /usr/src/cmd/512restor.c line
365,
1156-1159(2),
1169-1171(2)
- in /usr/src/cmd/dcheck.c line
22,
85,
109,
121
- in /usr/src/cmd/df.c line
147
- in /usr/src/cmd/dump.c line
23,
193,
199
- in /usr/src/cmd/fsck.c line
85,
1254-1258(2)
- in /usr/src/cmd/icheck.c line
25,
149,
176
- in /usr/src/cmd/ncheck.c line
27,
107,
113,
126,
138
- in /usr/src/cmd/restor.c line
338,
1137-1140(2),
1152-1154(2)
- in /usr/src/sys/stand/libsa/SYS.c line
30,
40
- in /usr/src/sys/sys/alloc.c line
302-306(2)
- in /usr/src/ucb/dump/src/dumptraverse.c line
5,
18,
24
Usage of this include