Changeset View
Changeset View
Standalone View
Standalone View
sys/ufs/ufs/dinode.h
Show First 20 Lines • Show All 139 Lines • ▼ Show 20 Lines | struct ufs2_dinode { | ||||
int32_t di_atimensec; /* 68: Last access time. */ | int32_t di_atimensec; /* 68: Last access time. */ | ||||
int32_t di_ctimensec; /* 72: Last inode change time. */ | int32_t di_ctimensec; /* 72: Last inode change time. */ | ||||
int32_t di_birthnsec; /* 76: Inode creation time. */ | int32_t di_birthnsec; /* 76: Inode creation time. */ | ||||
u_int32_t di_gen; /* 80: Generation number. */ | u_int32_t di_gen; /* 80: Generation number. */ | ||||
u_int32_t di_kernflags; /* 84: Kernel flags. */ | u_int32_t di_kernflags; /* 84: Kernel flags. */ | ||||
u_int32_t di_flags; /* 88: Status flags (chflags). */ | u_int32_t di_flags; /* 88: Status flags (chflags). */ | ||||
u_int32_t di_extsize; /* 92: External attributes size. */ | u_int32_t di_extsize; /* 92: External attributes size. */ | ||||
ufs2_daddr_t di_extb[UFS_NXADDR];/* 96: External attributes block. */ | ufs2_daddr_t di_extb[UFS_NXADDR];/* 96: External attributes block. */ | ||||
ufs2_daddr_t di_db[UFS_NDADDR]; /* 112: Direct disk blocks. */ | union { | ||||
ufs2_daddr_t di_ib[UFS_NIADDR]; /* 208: Indirect disk blocks. */ | struct { | ||||
ufs2_daddr_t di_db /* 112: Direct disk blocks. */ | |||||
[UFS_NDADDR]; | |||||
mckusick: Please shorten this comment to make it fit the line. I suggest changing "blocks" to "blks" and… | |||||
ufs2_daddr_t di_ib /* 208: Indirect disk blocks. */ | |||||
[UFS_NIADDR]; | |||||
Done Inline Actionsadd comment /* 112: Embedded symbolic link. */ on this line aligned with comments that follow it (i.e., di_modrev). mckusick: add comment /* 112: Embedded symbolic link. */ on this line aligned with comments that follow… | |||||
}; | |||||
char di_shortlink /* 112: Embedded symbolic link. */ | |||||
[(UFS_NDADDR + UFS_NIADDR) * sizeof(ufs2_daddr_t)]; | |||||
}; | |||||
u_int64_t di_modrev; /* 232: i_modrev for NFSv4 */ | u_int64_t di_modrev; /* 232: i_modrev for NFSv4 */ | ||||
uint32_t di_freelink; /* 240: SUJ: Next unlinked inode. */ | uint32_t di_freelink; /* 240: SUJ: Next unlinked inode. */ | ||||
uint32_t di_ckhash; /* 244: if CK_INODE, its check-hash */ | uint32_t di_ckhash; /* 244: if CK_INODE, its check-hash */ | ||||
uint32_t di_spare[2]; /* 248: Reserved; currently unused */ | uint32_t di_spare[2]; /* 248: Reserved; currently unused */ | ||||
}; | }; | ||||
/* | /* | ||||
* The di_db fields may be overlaid with other information for | * The di_db fields may be overlaid with other information for | ||||
Show All 16 Lines | struct ufs1_dinode { | ||||
uint32_t di_freelink; /* 4: SUJ: Next unlinked inode. */ | uint32_t di_freelink; /* 4: SUJ: Next unlinked inode. */ | ||||
u_int64_t di_size; /* 8: File byte count. */ | u_int64_t di_size; /* 8: File byte count. */ | ||||
int32_t di_atime; /* 16: Last access time. */ | int32_t di_atime; /* 16: Last access time. */ | ||||
int32_t di_atimensec; /* 20: Last access time. */ | int32_t di_atimensec; /* 20: Last access time. */ | ||||
int32_t di_mtime; /* 24: Last modified time. */ | int32_t di_mtime; /* 24: Last modified time. */ | ||||
int32_t di_mtimensec; /* 28: Last modified time. */ | int32_t di_mtimensec; /* 28: Last modified time. */ | ||||
int32_t di_ctime; /* 32: Last inode change time. */ | int32_t di_ctime; /* 32: Last inode change time. */ | ||||
int32_t di_ctimensec; /* 36: Last inode change time. */ | int32_t di_ctimensec; /* 36: Last inode change time. */ | ||||
ufs1_daddr_t di_db[UFS_NDADDR]; /* 40: Direct disk blocks. */ | union { | ||||
ufs1_daddr_t di_ib[UFS_NIADDR]; /* 88: Indirect disk blocks. */ | struct { | ||||
ufs1_daddr_t di_db /* 40: Direct disk blocks. */ | |||||
[UFS_NDADDR]; | |||||
Not Done Inline ActionsPlease shorten this comment to make it fit the line. I suggest changing "blocks" to "blks" and if also necessary drop space between ; and /*. mckusick: Please shorten this comment to make it fit the line. I suggest changing "blocks" to "blks" and… | |||||
ufs1_daddr_t di_ib /* 88: Indirect disk blocks. */ | |||||
[UFS_NIADDR]; | |||||
Done Inline Actionsadd comment /* 40: Embedded symbolic link. */ on this line aligned with comments that follow it (i.e., di_flags). mckusick: add comment /* 40: Embedded symbolic link. */ on this line aligned with comments that follow it… | |||||
}; | |||||
char di_shortlink /* 40: Embedded symbolic link. */ | |||||
[(UFS_NDADDR + UFS_NIADDR) * sizeof(ufs1_daddr_t)]; | |||||
}; | |||||
u_int32_t di_flags; /* 100: Status flags (chflags). */ | u_int32_t di_flags; /* 100: Status flags (chflags). */ | ||||
u_int32_t di_blocks; /* 104: Blocks actually held. */ | u_int32_t di_blocks; /* 104: Blocks actually held. */ | ||||
u_int32_t di_gen; /* 108: Generation number. */ | u_int32_t di_gen; /* 108: Generation number. */ | ||||
u_int32_t di_uid; /* 112: File owner. */ | u_int32_t di_uid; /* 112: File owner. */ | ||||
u_int32_t di_gid; /* 116: File group. */ | u_int32_t di_gid; /* 116: File group. */ | ||||
u_int64_t di_modrev; /* 120: i_modrev for NFSv4 */ | u_int64_t di_modrev; /* 120: i_modrev for NFSv4 */ | ||||
}; | }; | ||||
#define UFS_LINK_MAX 32767 | #define UFS_LINK_MAX 32767 | ||||
#endif /* _UFS_UFS_DINODE_H_ */ | #endif /* _UFS_UFS_DINODE_H_ */ |
Please shorten this comment to make it fit the line. I suggest changing "blocks" to "blks" and if also necessary drop space between ; and /*.