aboutsummaryrefslogtreecommitdiffstats
path: root/disk-io.c
diff options
context:
space:
mode:
authorAnand Jain <anand.jain@oracle.com>2014-09-13 09:21:21 +0800
committerDavid Sterba <dsterba@suse.cz>2014-10-10 10:38:34 +0200
commit5444864e5605090be1cdbfb690a9b429fb9c2203 (patch)
treeb43a778761ed9da9d06f494de6d14cca5f9fea9a /disk-io.c
parent0d84aa903a51c472f273b02da98da2f6160e4289 (diff)
downloadbtrfs-progs-5444864e5605090be1cdbfb690a9b429fb9c2203.tar.gz
btrfs-progs-5444864e5605090be1cdbfb690a9b429fb9c2203.tar.xz
btrfs-progs-5444864e5605090be1cdbfb690a9b429fb9c2203.zip
btrfs-progs: remove BTRFS_SCAN_PROC scan method
The libblkid scan method which was introduced later, will also scan devices under /proc/partitions. So we don't have to do the explicit scan of the same. Remove the scan method BTRFS_SCAN_PROC. Signed-off-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/disk-io.c b/disk-io.c
index e0e7701..4246aa6 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -1002,7 +1002,7 @@ int btrfs_scan_fs_devices(int fd, const char *path,
}
if (total_devs != 1) {
- ret = scan_for_btrfs(BTRFS_SCAN_PROC, run_ioctl);
+ ret = btrfs_scan_lblkid(run_ioctl);
if (ret)
return ret;
}