summaryrefslogtreecommitdiff
path: root/print-tree.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2015-02-03 09:48:29 -0500
committerJosef Bacik <jbacik@fb.com>2015-02-09 14:53:15 -0500
commitc6b388ef2d2bf0f7ff8d87fe82cdeddb6427eb67 (patch)
tree46ce4dd33f58123f55c4d7021ffd403b405d4f08 /print-tree.c
parent0b8aa1969bea17c6f539f03d673cfae1ba85ed63 (diff)
Btrfs-progs: make debug-tree spit out full_backref flag
Currently btrfs-debug-tree ignores the FULL_BACKREF flag which makes it hard to figure out problems related to FULL_BACKREF. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com>
Diffstat (limited to 'print-tree.c')
-rw-r--r--print-tree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/print-tree.c b/print-tree.c
index 3a7c13cd..931a321a 100644
--- a/print-tree.c
+++ b/print-tree.c
@@ -312,6 +312,10 @@ static void extent_flags_to_str(u64 flags, char *ret)
}
strcat(ret, "TREE_BLOCK");
}
+ if (flags & BTRFS_BLOCK_FLAG_FULL_BACKREF) {
+ strcat(ret, "|");
+ strcat(ret, "FULL_BACKREF");
+ }
}
void print_extent_item(struct extent_buffer *eb, int slot, int metadata)