btrfs-progs: dump-tree: print tree keys with -e
authorDavid Sterba <dsterba@suse.com>
Thu, 10 Mar 2016 13:57:07 +0000 (14:57 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 14 Mar 2016 12:42:47 +0000 (13:42 +0100)
The incomplete tree description is printed with -e, glued to the leaf
information.

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-inspect-dump-tree.c

index 4614bbc..d55bff5 100644 (file)
@@ -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 ");