diff options
author | Wang Shilong <wangsl.fnst@cn.fujitsu.com> | 2013-09-18 16:27:33 +0800 |
---|---|---|
committer | Chris Mason <chris.mason@fusionio.com> | 2013-10-16 08:22:26 -0400 |
commit | e353813b7c7ce23d1dfa6dbc29426843ea5f8382 (patch) | |
tree | 722884dddd52fce549e9ebaa37d81e17e976d2d9 /utils.c | |
parent | 4e466c8b440afd09a8bf600bcf18469c3e7539cd (diff) |
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>
Diffstat (limited to 'utils.c')
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |