From e353813b7c7ce23d1dfa6dbc29426843ea5f8382 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Wed, 18 Sep 2013 16:27:33 +0800 Subject: [PATCH] Btrfs-progs: do not run ioctls in check_mounted_where() We don't need to run ioctls when checking whether btrfs has mounted somewhere. Signed-off-by: Wang Shilong Signed-off-by: David Sterba Signed-off-by: Chris Mason --- utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.c b/utils.c index 68aa5341..d365380e 100644 --- a/utils.c +++ b/utils.c @@ -958,7 +958,7 @@ int check_mounted_where(int fd, const char *file, char *where, int size, /* scan other devices */ if (is_btrfs && total_devs > 1) { - if((ret = btrfs_scan_for_fsid(1))) + if((ret = btrfs_scan_for_fsid(0))) return ret; }