mirror of
git://sourceware.org/git/lvm2.git
synced 2025-03-10 16:58:47 +03:00
improve message for invalid device arg in process_each_pv
Multiple commands process pvs by name using process_each_pv() and will now have an improved error message for a device that's excluded by filters.
This commit is contained in:
parent
74ed6e8a99
commit
0143c7aebe
@ -3839,7 +3839,7 @@ static int _get_arg_devices(struct cmd_context *cmd,
|
||||
}
|
||||
|
||||
if (!(dil->dev = dev_cache_get(cmd, sl->str, cmd->filter))) {
|
||||
log_error("Failed to find device for physical volume \"%s\".", sl->str);
|
||||
log_error("Cannot use %s: %s", sl->str, devname_error_reason(sl->str));
|
||||
ret_max = ECMD_FAILED;
|
||||
} else {
|
||||
strncpy(dil->pvid, dil->dev->pvid, ID_LEN);
|
||||
|
Loading…
x
Reference in New Issue
Block a user