Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/ext2fs/ext2_inode_cnv.c
Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | ext2_print_inode(struct inode *in) | ||||
printf("ctime: 0x%x ", in->i_ctime); | printf("ctime: 0x%x ", in->i_ctime); | ||||
printf("atime: 0x%x ", in->i_atime); | printf("atime: 0x%x ", in->i_atime); | ||||
printf("mtime: 0x%x ", in->i_mtime); | printf("mtime: 0x%x ", in->i_mtime); | ||||
if (E2DI_HAS_XTIME(in)) | if (E2DI_HAS_XTIME(in)) | ||||
printf("crtime %#x\n", in->i_birthtime); | printf("crtime %#x\n", in->i_birthtime); | ||||
else | else | ||||
printf("\n"); | printf("\n"); | ||||
if (in->i_flag & IN_E4EXTENTS) { | if (in->i_flag & IN_E4EXTENTS) { | ||||
printf("Extents:\n"); | printf("Extents:\n"); | ||||
pfg: No, please don''r have the filesystem scream. | |||||
ehp = (struct ext4_extent_header *)in->i_db; | ehp = (struct ext4_extent_header *)in->i_db; | ||||
printf("Header (magic 0x%x entries %d max %d depth %d gen %d)\n", | printf("Header (magic 0x%x entries %d max %d depth %d gen %d)\n", | ||||
le16toh(ehp->eh_magic), le16toh(ehp->eh_ecount), | le16toh(ehp->eh_magic), le16toh(ehp->eh_ecount), | ||||
le16toh(ehp->eh_max), le16toh(ehp->eh_depth), | le16toh(ehp->eh_max), le16toh(ehp->eh_depth), | ||||
le32toh(ehp->eh_gen)); | le32toh(ehp->eh_gen)); | ||||
ep = (struct ext4_extent *)(char *)(ehp + 1); | ep = (struct ext4_extent *)(char *)(ehp + 1); | ||||
printf("Index (blk %d len %d start_lo %d start_hi %d)\n", | printf("Index (blk %d len %d start_lo %d start_hi %d)\n", | ||||
le32toh(ep->e_blk), | le32toh(ep->e_blk), | ||||
le16toh(ep->e_len), le32toh(ep->e_start_lo), | le16toh(ep->e_len), le32toh(ep->e_start_lo), | ||||
le16toh(ep->e_start_hi)); | le16toh(ep->e_start_hi)); | ||||
printf("\n"); | printf("\n"); | ||||
} else { | } else { | ||||
printf("BLOCKS:"); | printf("Blocks:"); | ||||
for (i = 0; i < (in->i_blocks <= 24 ? (in->i_blocks + 1) / 2 : 12); i++) | for (i = 0; i < (in->i_blocks <= 24 ? (in->i_blocks + 1) / 2 : 12); i++) | ||||
printf(" %d", in->i_db[i]); | printf(" %d", in->i_db[i]); | ||||
printf("\n"); | printf("\n"); | ||||
} | } | ||||
} | } | ||||
#endif /* EXT2FS_PRINT_EXTENTS */ | #endif /* EXT2FS_PRINT_EXTENTS */ | ||||
#define XTIME_TO_NSEC(x) ((le32toh(x) & EXT3_NSEC_MASK) >> 2) | #define XTIME_TO_NSEC(x) ((le32toh(x) & EXT3_NSEC_MASK) >> 2) | ||||
▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines |
No, please don''r have the filesystem scream.