From 37288902fca5a3662620de544eca9dd3b6d6964b Mon Sep 17 00:00:00 2001 From: Anand Jain Date: Mon, 21 Mar 2016 15:21:05 +0800 Subject: btrfs-progs: rename get_subvol_name() to subvol_strip_mountpoint() Signed-off-by: Anand Jain [ renamed from subvol_minus_mnt to subvol_strip_mountpoint ] Signed-off-by: David Sterba --- utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils.c') diff --git a/utils.c b/utils.c index dd2ff9c2..06efcabe 100644 --- a/utils.c +++ b/utils.c @@ -3160,7 +3160,7 @@ int test_issubvolume(const char *path) return (int)stfs.f_type == BTRFS_SUPER_MAGIC; } -char *get_subvol_name(char *mnt, char *full_path) +char *subvol_strip_mountpoint(char *mnt, char *full_path) { int len = strlen(mnt); if (!len) @@ -3206,7 +3206,7 @@ int get_subvol_info(char *fullpath, struct root_info *get_ri) return 1; } ret = 1; - svpath = get_subvol_name(mnt, fullpath); + svpath = subvol_strip_mountpoint(mnt, fullpath); fd = btrfs_open_dir(fullpath, &dirstream1, 1); if (fd < 0) -- cgit v1.2.3