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 --- cmds-send.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'cmds-send.c') diff --git a/cmds-send.c b/cmds-send.c index 7605ed94..bbe16d84 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -455,8 +455,9 @@ int cmd_send(int argc, char **argv) if (ret < 0) goto out; - ret = get_root_id(&send, get_subvol_name(send.root_path, subvol), - &root_id); + ret = get_root_id(&send, + subvol_strip_mountpoint(send.root_path, subvol), + &root_id); if (ret < 0) { error("cannot resolve rootid for %s", subvol); goto out; @@ -569,8 +570,8 @@ int cmd_send(int argc, char **argv) if (snapshot_parent != NULL) { ret = get_root_id(&send, - get_subvol_name(send.root_path, snapshot_parent), - &parent_root_id); + subvol_strip_mountpoint(send.root_path, snapshot_parent), + &parent_root_id); if (ret < 0) { error("could not resolve rootid for %s", snapshot_parent); goto out; -- cgit v1.2.3