Whamcloud - gitweb
Dumpe2fs will print the s_reserved_gdt_blocks field if it is non-zero.
authorTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2004 12:47:12 +0000 (07:47 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 23 Dec 2004 12:47:12 +0000 (07:47 -0500)
(Change to libe2p's list_super2() function.)

lib/e2p/ChangeLog
lib/e2p/ls.c

index 0d8851a..9cb7485 100644 (file)
@@ -1,3 +1,8 @@
+2004-12-23  Theodore Ts'o  <tytso@mit.edu>
+
+       * ls.c (list_super2): Print the s_reserved_gdt_blocks field if it
+               is non-zero.
+
 2004-12-14  Theodore Ts'o  <tytso@mit.edu>
 
        * Makefile.in: Use Linux-kernel-style makefile output for "make
index 3f71eb0..f5a8af7 100644 (file)
@@ -203,6 +203,9 @@ void list_super2(struct ext2_super_block * sb, FILE *f)
        fprintf(f, "First block:              %u\n", sb->s_first_data_block);
        fprintf(f, "Block size:               %u\n", EXT2_BLOCK_SIZE(sb));
        fprintf(f, "Fragment size:            %u\n", EXT2_FRAG_SIZE(sb));
+       if (sb->s_reserved_gdt_blocks)
+               fprintf(f, "Reserved GDT blocks:      %u\n", 
+                       sb->s_reserved_gdt_blocks);
        fprintf(f, "Blocks per group:         %u\n", sb->s_blocks_per_group);
        fprintf(f, "Fragments per group:      %u\n", sb->s_frags_per_group);
        fprintf(f, "Inodes per group:         %u\n", sb->s_inodes_per_group);