summaryrefslogtreecommitdiff
path: root/super-recover.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-08-19 16:36:40 +0200
committerDavid Sterba <dsterba@suse.com>2016-08-24 14:36:58 +0200
commit059832da5f533d5ddf6ba15b7a190efe5a09ea8c (patch)
treef0de7dc909f9249295d6dbf8d63bea3564bbf35f /super-recover.c
parentc11bd9cfd2d4fc6501c52da968b64c6806b968a7 (diff)
btrfs-progs: make superblock reading/scanning api more generic
We'll add more modes that affect scanning. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'super-recover.c')
-rw-r--r--super-recover.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/super-recover.c b/super-recover.c
index 88ecdee..1dc3fc7 100644
--- a/super-recover.c
+++ b/super-recover.c
@@ -279,7 +279,8 @@ int btrfs_recover_superblocks(const char *dname,
}
init_recover_superblock(&recover);
- ret = btrfs_scan_fs_devices(fd, dname, &recover.fs_devices, 0, 1, 0);
+ ret = btrfs_scan_fs_devices(fd, dname, &recover.fs_devices, 0,
+ SBREAD_RECOVER, 0);
close(fd);
if (ret) {
ret = 1;