btrfs-progs: introduce btrfs_register_all_device()
authorAnand Jain <anand.jain@oracle.com>
Fri, 31 Oct 2014 04:11:19 +0000 (12:11 +0800)
committerDavid Sterba <dsterba@suse.cz>
Mon, 3 Nov 2014 18:17:08 +0000 (19:17 +0100)
commit53cb7fbe8da8253ea3ac1ecc6a71c7ffd1d63f76
treec1f1e342646090fad60d3e2bfa4db09716cf6125
parentdcf11c371cbcdca78f297fe042095912634a8323
btrfs-progs: introduce btrfs_register_all_device()

This function is to register all devices found after scanning
the system. Before we had this functionality with in the
btrfs_scan_lblkid(), however scanning and registering are two
different distinct operation its better keep them separate.
Also we want to optimize btrfs_scan_lblkid and avoid multiple
system scans unless needed. As of now device scan uses this function.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
utils.c
utils.h