source: trunk/minix/servers/fs/type.h@ 9

Last change on this file since 9 was 9, checked in by Mattia Monga, 13 years ago

Minix 3.1.2a

File size: 1.1 KB
Line 
1/* Declaration of the V1 inode as it is on the disk (not in core). */
2typedef struct { /* V1.x disk inode */
3 mode_t d1_mode; /* file type, protection, etc. */
4 uid_t d1_uid; /* user id of the file's owner */
5 off_t d1_size; /* current file size in bytes */
6 time_t d1_mtime; /* when was file data last changed */
7 u8_t d1_gid; /* group number */
8 u8_t d1_nlinks; /* how many links to this file */
9 u16_t d1_zone[V1_NR_TZONES]; /* block nums for direct, ind, and dbl ind */
10} d1_inode;
11
12/* Declaration of the V2 inode as it is on the disk (not in core). */
13typedef struct { /* V2.x disk inode */
14 mode_t d2_mode; /* file type, protection, etc. */
15 u16_t d2_nlinks; /* how many links to this file. HACK! */
16 uid_t d2_uid; /* user id of the file's owner. */
17 u16_t d2_gid; /* group number HACK! */
18 off_t d2_size; /* current file size in bytes */
19 time_t d2_atime; /* when was file data last accessed */
20 time_t d2_mtime; /* when was file data last changed */
21 time_t d2_ctime; /* when was inode data last changed */
22 zone_t d2_zone[V2_NR_TZONES]; /* block nums for direct, ind, and dbl ind */
23} d2_inode;
Note: See TracBrowser for help on using the repository browser.