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>
master
Josef Bacik 2015-02-03 09:48:29 -05:00
parent 0b8aa1969b
commit c6b388ef2d
1 changed files with 4 additions and 0 deletions

View File

@ -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)