master - toollib: skip dev prefix from lv names
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4a30f5f9b0a3677af6f32260ee84ec5c2a6c8393 Commit: 4a30f5f9b0a3677af6f32260ee84ec5c2a6c8393 Parent: 286d39ee3c4334e9ce0609d9136dfd6b5d6bf34a Author: David Teigland <[email protected]> AuthorDate: Wed Feb 15 13:42:35 2017 -0600 Committer: David Teigland <[email protected]> CommitterDate: Wed Feb 15 13:42:35 2017 -0600
toollib: skip dev prefix from lv names
_get_arg_lvnames_using_options() was missing skip_dev_dir()
--- tools/toollib.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
tools/toollib.c +5 -0
@@ -3434,6 +3434,11 @@ static int _get_arg_lvnames_using_options(struct cmd_context *cmd,return ECMD_PROCESSED ; } +if (*pos_name =='/' ) { +if (!(pos_name =skip_dev_dir (cmd, pos_name,NULL ))) +return ECMD_FAILED ; + } +if ((split =strchr (pos_name,'/' ))) { pos_vgname = pos_name; pos_lvname = split +1 ;