aboutsummaryrefslogtreecommitdiff
path: root/toys/e2fs.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-01-27 15:10:48 -0500
committerRob Landley <rob@landley.net>2007-01-27 15:10:48 -0500
commit22eca62ff07e97063eb77dc61660a91e12fed182 (patch)
tree5292b2a1dc18eac5d0bbf012676a25d13306de2c /toys/e2fs.h
parent90495a45e4ed40bf411a75959346fbaafa465fc1 (diff)
downloadtoybox-22eca62ff07e97063eb77dc61660a91e12fed182.tar.gz
One more field, minor shrinking, and start on block groups.
Diffstat (limited to 'toys/e2fs.h')
-rw-r--r--toys/e2fs.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/toys/e2fs.h b/toys/e2fs.h
index b50a8817..49eb4c40 100644
--- a/toys/e2fs.h
+++ b/toys/e2fs.h
@@ -64,6 +64,17 @@ struct ext2_superblock {
uint32_t reserved[172]; // Padding to the end of the block
};
+struct ext2_group
+{
+ uint32_t block_bitmap; // Block number of block bitmap
+ uint32_t inode_bitmap; // Block number of inode bitmap
+ uint32_t inode_table; // Block number of inode table
+ uint16_t free_blocks_count; // How many free blocks in this group?
+ uint16_t free_inodes_count; // How many free inodes in this group?
+ uint16_t used_dirs_count; // How many directories?
+ uint16_t reserved[7]; // pad to 256 bits.
+};
+
struct ext2_dentry {
uint32_t inode; // Inode number
uint16_t rec_len; // Directory entry length