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 <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
This commit is contained in:
Wang Shilong 2013-09-18 16:27:33 +08:00 committed by Chris Mason
parent 4e466c8b44
commit e353813b7c

View File

@ -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;
}