diff options
author | Chris Mason <chris.mason@oracle.com> | 2010-12-15 16:03:00 -0500 |
---|---|---|
committer | Chris Mason <chris.mason@oracle.com> | 2011-10-25 09:51:11 -0400 |
commit | 24825392b3426f28a5b0b665b1b41c073de4e451 (patch) | |
tree | cfe4580a1945b47b844cc2d2e1b5ca82d838e514 /print-tree.c | |
parent | 0758da29a6f0d41dd7243f329882252b8c6f7286 (diff) |
Print the root generation in btrfs-debug-tree
Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to 'print-tree.c')
-rw-r--r-- | print-tree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/print-tree.c b/print-tree.c index 59c23c52..60396996 100644 --- a/print-tree.c +++ b/print-tree.c @@ -504,11 +504,12 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) case BTRFS_ROOT_ITEM_KEY: ri = btrfs_item_ptr(l, i, struct btrfs_root_item); read_extent_buffer(l, &root_item, (unsigned long)ri, sizeof(root_item)); - printf("\t\troot data bytenr %llu level %d dirid %llu refs %u\n", + printf("\t\troot data bytenr %llu level %d dirid %llu refs %u gen %llu\n", (unsigned long long)btrfs_root_bytenr(&root_item), btrfs_root_level(&root_item), (unsigned long long)btrfs_root_dirid(&root_item), - btrfs_root_refs(&root_item)); + btrfs_root_refs(&root_item), + (unsigned long long)btrfs_root_generation(&root_item)); if (btrfs_root_refs(&root_item) == 0) { struct btrfs_key drop_key; btrfs_disk_key_to_cpu(&drop_key, |