summaryrefslogtreecommitdiff
path: root/super-recover.c
diff options
context:
space:
mode:
Diffstat (limited to 'super-recover.c')
-rw-r--r--super-recover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/super-recover.c b/super-recover.c
index 5920ea6b..a6271a27 100644
--- a/super-recover.c
+++ b/super-recover.c
@@ -323,8 +323,8 @@ int btrfs_recover_superblocks(const char *dname,
}
}
record = recover_get_good_super(&recover);
- root = open_ctree_with_broken_super(record->device_name,
- record->bytenr, 1);
+ root = open_ctree(record->device_name, record->bytenr,
+ OPEN_CTREE_RECOVER_SUPER | OPEN_CTREE_WRITES);
if (!root) {
ret = 3;
goto no_recover;