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;