From c4b87b8c4ff6f3efff86f96dbef3ed050a712354 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Sun, 19 Sep 2010 22:52:09 -0400 Subject: [PATCH] debugfs: Display the extent tree blocks in the stat command output Signed-off-by: "Theodore Ts'o" --- debugfs/debugfs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/debugfs/debugfs.c b/debugfs/debugfs.c index be95e2093..1edddc791 100644 --- a/debugfs/debugfs.c +++ b/debugfs/debugfs.c @@ -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); } -- 2.39.5