summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-03-10 14:57:07 +0100
committerDavid Sterba <dsterba@suse.com>2016-03-14 13:42:47 +0100
commit078b4746ccb01dee3c8a54a5bf294c7dbedd323a (patch)
treedf6a5160f816c835a5e078ef6b7428295672abcc
parent142041bb031877240b5f33ce7d7b426a89ca6000 (diff)
btrfs-progs: dump-tree: print tree keys with -e
The incomplete tree description is printed with -e, glued to the leaf information. Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--cmds-inspect-dump-tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds-inspect-dump-tree.c b/cmds-inspect-dump-tree.c
index 4614bbc2..d55bff50 100644
--- a/cmds-inspect-dump-tree.c
+++ b/cmds-inspect-dump-tree.c
@@ -412,6 +412,9 @@ again:
}
}
if (extent_only && !skip) {
+ printf(" tree ");
+ btrfs_print_key(&disk_key);
+ printf("\n");
print_extents(tree_root_scan, buf);
} else if (!skip) {
printf(" tree ");