mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-27 18:55:19 +03:00
toollib: skip dev prefix from lv names
_get_arg_lvnames_using_options() was missing skip_dev_dir()
This commit is contained in:
parent
286d39ee3c
commit
4a30f5f9b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user