Signed-off-by: Eric Sandeen <sandeen@xxxxxxxxxx> --- lib/ext2fs/extent.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/lib/ext2fs/extent.c b/lib/ext2fs/extent.c index e7733c5..76f6f65 100644 --- a/lib/ext2fs/extent.c +++ b/lib/ext2fs/extent.c @@ -1087,6 +1087,7 @@ void do_print_all(int argc, char **argv) void do_info(int argc, char **argv) { + struct ext2fs_extent extent; struct ext2_extent_info info; errcode_t retval; @@ -1104,6 +1105,15 @@ void do_info(int argc, char **argv) return; } + retval = ext2fs_extent_get(current_handle, + EXT2_EXTENT_CURRENT, &extent); + if (retval) { + com_err(argv[0], retval, 0); + return; + } + + dbg_print_extent(0, &extent); + printf("Current handle location: %d/%d (max: %d, bytes %d), level %d/%d\n", info.curr_entry, info.num_entries, info.max_entries, info.bytes_avail, info.curr_level, info.max_depth); -- 1.5.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html