From 53cb7fbe8da8253ea3ac1ecc6a71c7ffd1d63f76 Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Fri, 31 Oct 2014 12:11:19 +0800 Subject: 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 Signed-off-by: David Sterba --- utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index 5efb80c7..09af46ac 100644 --- a/utils.h +++ b/utils.h @@ -82,6 +82,7 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans, u32 sectorsize); int btrfs_scan_for_fsid(int run_ioctls); int btrfs_register_one_device(const char *fname); +int btrfs_register_all_devices(void); char *canonicalize_dm_name(const char *ptname); char *canonicalize_path(const char *path); int check_mounted(const char *devicename); -- cgit v1.2.3