comparison toys/e2fs.h @ 80:7a058d60faf1

One more field, minor shrinking, and start on block groups.
author Rob Landley <rob@landley.net>
date Sat, 27 Jan 2007 15:10:48 -0500
parents e6332139adae
children f95f6fd94eed
comparison
equal deleted inserted replaced
79:1aff4181427b 80:7a058d60faf1
60 uint32_t default_mount_opts; 60 uint32_t default_mount_opts;
61 uint32_t first_meta_bg; // First metablock block group 61 uint32_t first_meta_bg; // First metablock block group
62 uint32_t mkfs_time; // Creation timestamp 62 uint32_t mkfs_time; // Creation timestamp
63 uint32_t jnl_blocks[17]; // Backup of journal inode 63 uint32_t jnl_blocks[17]; // Backup of journal inode
64 uint32_t reserved[172]; // Padding to the end of the block 64 uint32_t reserved[172]; // Padding to the end of the block
65 };
66
67 struct ext2_group
68 {
69 uint32_t block_bitmap; // Block number of block bitmap
70 uint32_t inode_bitmap; // Block number of inode bitmap
71 uint32_t inode_table; // Block number of inode table
72 uint16_t free_blocks_count; // How many free blocks in this group?
73 uint16_t free_inodes_count; // How many free inodes in this group?
74 uint16_t used_dirs_count; // How many directories?
75 uint16_t reserved[7]; // pad to 256 bits.
65 }; 76 };
66 77
67 struct ext2_dentry { 78 struct ext2_dentry {
68 uint32_t inode; // Inode number 79 uint32_t inode; // Inode number
69 uint16_t rec_len; // Directory entry length 80 uint16_t rec_len; // Directory entry length