diff options
author | Josef Bacik <jbacik@redhat.com> | 2008-07-30 09:15:02 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@hera.kernel.org> | 2008-07-30 09:15:02 -0400 |
commit | 0045e0dd707a2db25231c454cb8d247bb56308cf (patch) | |
tree | e608b6ed4679c8a8eab9c231d29f16f6cff740c8 /print-tree.c | |
parent | e74b89d6759b7f1d3aefe60a2f9cd139d40be79e (diff) | |
download | btrfs-progs-0045e0dd707a2db25231c454cb8d247bb56308cf.tar.gz |
btrfs-progs: add orphan support to print-tree
This adds orphan support to print-tree so when debug_tree hits an orphan item it
will print out "orphan item" under it so you know what it is
Diffstat (limited to 'print-tree.c')
-rw-r--r-- | print-tree.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/print-tree.c b/print-tree.c index 5914a6a..d6d32a0 100644 --- a/print-tree.c +++ b/print-tree.c @@ -183,6 +183,9 @@ void btrfs_print_leaf(struct btrfs_root *root, struct extent_buffer *l) di = btrfs_item_ptr(l, i, struct btrfs_dir_item); print_dir_item(l, item, di); break; + case BTRFS_ORPHAN_ITEM_KEY: + printf("\t\torphan item\n"); + break; 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)); |