Whamcloud - gitweb
debugfs: Display the extent tree blocks in the stat command output
authorTheodore Ts'o <tytso@mit.edu>
Mon, 20 Sep 2010 02:52:09 +0000 (22:52 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 20 Sep 2010 02:52:09 +0000 (22:52 -0400)
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debugfs/debugfs.c

index be95e20..1edddc7 100644 (file)
@@ -630,8 +630,8 @@ static void dump_extents(FILE *f, const char *prefix, ext2_ino_t ino,
                                continue;
                        }
 
-                       fprintf(f, "%s(NODE #%d, %lld-%lld, blk %lld)",
-                               printed ? ", " : "",
+                       fprintf(f, "%s(ETB l%d/n%d, %lld-%lld, blk %lld)",
+                               printed ? ", " : "", info.curr_level,
                                info.curr_entry,
                                extent.e_lblk,
                                extent.e_lblk + (extent.e_len - 1),
@@ -807,7 +807,7 @@ void internal_dump_inode(FILE *out, const char *prefix,
        } else if (do_dump_blocks) {
                if (inode->i_flags & EXT4_EXTENTS_FL)
                        dump_extents(out, prefix, inode_num,
-                                    DUMP_LEAF_EXTENTS, 0, 0);
+                                    DUMP_LEAF_EXTENTS|DUMP_NODE_EXTENTS, 0, 0);
                else
                        dump_blocks(out, prefix, inode_num);
        }