summaryrefslogtreecommitdiff
path: root/utils.c
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-11-11 12:35:58 +0100
committerDavid Sterba <dsterba@suse.com>2016-10-25 14:28:36 +0200
commitdcc3df7e6d9467b61fb1dcce4bf653e835613e49 (patch)
treefa0344a34be0b8297273894bfe449172e6927d42 /utils.c
parentcf8fd1a70884db0b31e312d0780611f262bb9b45 (diff)
btrfs-progs: rename btrfs_scan_lblkid() to btrfs_scan_devices()
It seems like bad idea to use a library name (lblkid) within generic function name. The currently used scanning library is implementation detail and this detail should be hidden for rest of the code. Signed-off-by: Karel Zak <kzak@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils.c b/utils.c
index 011e163d..3f54245b 100644
--- a/utils.c
+++ b/utils.c
@@ -2384,7 +2384,7 @@ int check_mounted_where(int fd, const char *file, char *where, int size,
/* scan other devices */
if (is_btrfs && total_devs > 1) {
- ret = btrfs_scan_lblkid();
+ ret = btrfs_scan_devices();
if (ret)
return ret;
}
@@ -2464,7 +2464,7 @@ int btrfs_register_one_device(const char *fname)
/*
* Register all devices in the fs_uuid list created in the user
- * space. Ensure btrfs_scan_lblkid() is called before this func.
+ * space. Ensure btrfs_scan_devices() is called before this func.
*/
int btrfs_register_all_devices(void)
{
@@ -3503,7 +3503,7 @@ int test_dev_for_mkfs(const char *file, int force_overwrite)
return 0;
}
-int btrfs_scan_lblkid(void)
+int btrfs_scan_devices(void)
{
int fd = -1;
int ret;