From 4a30f5f9b0a3677af6f32260ee84ec5c2a6c8393 Mon Sep 17 00:00:00 2001 From: David Teigland Date: Wed, 15 Feb 2017 13:42:35 -0600 Subject: [PATCH] toollib: skip dev prefix from lv names _get_arg_lvnames_using_options() was missing skip_dev_dir() --- tools/toollib.c | 5 +++++ 1 file changed, 5 insertions(+) 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;