From 77801d34d02e04ea4d5344415015a2ce84e0b653 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Wed, 18 Sep 2013 16:27:34 +0800 Subject: Btrfs-progs: pass flag to control whether run ioctl in btrfs_scan_for_fsid() If some fatal superblocks are damaged, running ioctl will return failure, in this case, we should avoid run ioctl. Signed-off-by: Wang Shilong Signed-off-by: David Sterba Signed-off-by: Chris Mason --- chunk-recover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chunk-recover.c') diff --git a/chunk-recover.c b/chunk-recover.c index 45da9a6..9af4887 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -1291,7 +1291,7 @@ static int recover_prepare(struct recover_control *rc, char *path) goto fail_free_sb; } - ret = btrfs_scan_fs_devices(fd, path, &fs_devices, 0); + ret = btrfs_scan_fs_devices(fd, path, &fs_devices, 0, 1); if (ret) goto fail_free_sb; -- cgit v1.2.1