+2004-12-23 Theodore Ts'o <tytso@mit.edu>
+
+ * dumpe2fs.c (list_desc): If reserved GDT blocks are present,
+ display them along with the other filesystem meta blocks.
+
2004-12-22 Theodore Ts'o <tytso@mit.edu>
* fsck.c (main): Check return from malloc of fsck_path string.
blk_t group_blk, next_blk;
blk_t super_blk, old_desc_blk, new_desc_blk;
char *block_bitmap=NULL, *inode_bitmap=NULL;
- int inode_blocks_per_group, old_desc_blocks;
+ int inode_blocks_per_group, old_desc_blocks, reserved_gdt;
int has_super;
if (fs->block_map)
EXT2_INODE_SIZE(fs->super)) +
EXT2_BLOCK_SIZE(fs->super) - 1) /
EXT2_BLOCK_SIZE(fs->super);
+ reserved_gdt = fs->super->s_reserved_gdt_blocks;
fputc('\n', stdout);
group_blk = fs->super->s_first_data_block;
if (fs->super->s_feature_incompat & EXT2_FEATURE_INCOMPAT_META_BG)
printf(_(", Group descriptors at "));
printf(range_format, old_desc_blk,
old_desc_blk + old_desc_blocks - 1);
+ if (reserved_gdt) {
+ printf(_("\n Reserved GDT blocks at "));
+ printf(range_format,
+ old_desc_blk + old_desc_blocks,
+ old_desc_blk + old_desc_blocks +
+ reserved_gdt - 1);
+ }
} else if (new_desc_blk) {
fputc(has_super ? ',' : ' ', stdout);
printf(_(" Group descriptor at "));