projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b8aa19
)
Btrfs-progs: make debug-tree spit out full_backref flag
author
Josef Bacik
<jbacik@fb.com>
Tue, 3 Feb 2015 14:48:29 +0000
(09:48 -0500)
committer
Josef Bacik
<jbacik@fb.com>
Mon, 9 Feb 2015 19:53:15 +0000
(14:53 -0500)
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>
print-tree.c
patch
|
blob
|
history
diff --git
a/print-tree.c
b/print-tree.c
index
3a7c13c
..
931a321
100644
(file)
--- 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)