From: Theodore Ts'o Date: Mon, 20 Sep 2010 02:52:09 +0000 (-0400) Subject: debugfs: Display the extent tree blocks in the stat command output X-Git-Tag: v1.41.13~34 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4b87b8c4ff6f3efff86f96dbef3ed050a712354;p=thirdparty%2Fe2fsprogs.git debugfs: Display the extent tree blocks in the stat command output Signed-off-by: "Theodore Ts'o" --- 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); }