diff options
author | David Teigland <teigland@redhat.com> | 2017-02-15 13:42:35 -0600 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2017-02-15 13:42:35 -0600 |
commit | 4a30f5f9b0a3677af6f32260ee84ec5c2a6c8393 (patch) | |
tree | 7de2026755625c73928e0c56e462f65a999511b8 | |
parent | 286d39ee3c4334e9ce0609d9136dfd6b5d6bf34a (diff) | |
download | lvm2-4a30f5f9b0a3677af6f32260ee84ec5c2a6c8393.tar.gz |
toollib: skip dev prefix from lv names
_get_arg_lvnames_using_options() was missing skip_dev_dir()
-rw-r--r-- | tools/toollib.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/toollib.c b/tools/toollib.c index a539878c8..6e0a4f1b9 100644 --- a/tools/toollib.c +++ b/tools/toollib.c @@ -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; |