version 1.3, 1994/06/29 06:47:18 |
version 1.4, 1994/10/20 04:21:16 |
|
|
#define NDADDR 12 /* Direct addresses in inode. */ |
#define NDADDR 12 /* Direct addresses in inode. */ |
#define NIADDR 3 /* Indirect addresses in inode. */ |
#define NIADDR 3 /* Indirect addresses in inode. */ |
|
|
|
struct ufs_timespec { |
|
int32_t ts_sec; /* seconds */ |
|
int32_t ts_nsec; /* and nanoseconds */ |
|
}; |
|
|
struct dinode { |
struct dinode { |
u_short di_mode; /* 0: IFMT and permissions. */ |
u_int16_t di_mode; /* 0: IFMT and permissions. */ |
short di_nlink; /* 2: File link count. */ |
int16_t di_nlink; /* 2: File link count. */ |
union { |
union { |
u_short oldids[2]; /* 4: Ffs: old user and group ids. */ |
u_int16_t oldids[2]; /* 4: Ffs: old user and group ids. */ |
ino_t inumber; /* 4: Lfs: inode number. */ |
ino_t inumber; /* 4: Lfs: inode number. */ |
} di_u; |
} di_u; |
u_quad_t di_size; /* 8: File byte count. */ |
u_int64_t di_size; /* 8: File byte count. */ |
struct timespec di_atime; /* 16: Last access time. */ |
struct ufs_timespec di_atime; /* 16: Last access time. */ |
struct timespec di_mtime; /* 24: Last modified time. */ |
struct ufs_timespec di_mtime; /* 24: Last modified time. */ |
struct timespec di_ctime; /* 32: Last inode change time. */ |
struct ufs_timespec di_ctime; /* 32: Last inode change time. */ |
daddr_t di_db[NDADDR]; /* 40: Direct disk blocks. */ |
daddr_t di_db[NDADDR]; /* 40: Direct disk blocks. */ |
daddr_t di_ib[NIADDR]; /* 88: Indirect disk blocks. */ |
daddr_t di_ib[NIADDR]; /* 88: Indirect disk blocks. */ |
u_long di_flags; /* 100: Status flags (chflags). */ |
u_int32_t di_flags; /* 100: Status flags (chflags). */ |
long di_blocks; /* 104: Blocks actually held. */ |
int32_t di_blocks; /* 104: Blocks actually held. */ |
long di_gen; /* 108: Generation number. */ |
int32_t di_gen; /* 108: Generation number. */ |
u_long di_uid; /* 112: File owner. */ |
u_int32_t di_uid; /* 112: File owner. */ |
u_long di_gid; /* 116: File group. */ |
u_int32_t di_gid; /* 116: File group. */ |
long di_spare[2]; /* 120: Reserved; currently unused */ |
int32_t di_spare[2]; /* 120: Reserved; currently unused */ |
}; |
}; |
|
|
/* |
/* |