summaryrefslogtreecommitdiff
path: root/btrfs-debug-tree.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fusionio.com>2013-10-23 16:24:03 -0400
committerChris Mason <chris.mason@fusionio.com>2013-11-07 13:29:30 -0500
commit337f86fea1d06e189f3cf234adba2567a07678bd (patch)
treec4fe5f392480000ffbf2419d2ba53568153e304a /btrfs-debug-tree.c
parent4fc17596aaa2b03ee38c467585465923d62b1510 (diff)
downloadbtrfs-progs-337f86fea1d06e189f3cf234adba2567a07678bd.tar.gz
Btrfs-progs: add -b to btrfsck to look at backup roots
In some cases the tree root is so hosed we can't get anything useful out of it. So add the -b option to btrfsck to make us look for the most recent backup tree root to use for repair. Then we can hopefully get ourselves into a working state. Thanks, Signed-off-by: Josef Bacik <jbacik@fusionio.com> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'btrfs-debug-tree.c')
-rw-r--r--btrfs-debug-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-debug-tree.c b/btrfs-debug-tree.c
index 078dac5..4a9d89d 100644
--- a/btrfs-debug-tree.c
+++ b/btrfs-debug-tree.c
@@ -171,7 +171,7 @@ int main(int ac, char **av)
if (ac != 1)
print_usage();
- info = open_ctree_fs_info(av[optind], 0, 0, 0, 1);
+ info = open_ctree_fs_info(av[optind], 0, 0, 0, 1, 0);
if (!info) {
fprintf(stderr, "unable to open %s\n", av[optind]);
exit(1);