mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
pvdisplay: fix option error
Properly show error for '-m'. Also report unsupported '-c & -s' (just like with vg/lvdisplay)
This commit is contained in:
parent
cf29de5de0
commit
844afa32a0
@ -1,5 +1,6 @@
|
||||
Version 2.02.106 -
|
||||
====================================
|
||||
Fix error message for pvdisplay -c -m and add new for pvdisplay -c -s.
|
||||
Return proper invalid cmd when vgimport/exports find error in parameters.
|
||||
Obtain list of known VGs for pvchange --all when using lvmetad.
|
||||
Add man page for lvm dumpconfig.
|
||||
|
@ -109,7 +109,12 @@ int pvdisplay(struct cmd_context *cmd, int argc, char **argv)
|
||||
}
|
||||
|
||||
if (arg_count(cmd, colon_ARG) && arg_count(cmd, maps_ARG)) {
|
||||
log_error("Option -v not allowed with option -c");
|
||||
log_error("Option -c not allowed with option -m");
|
||||
return EINVALID_CMD_LINE;
|
||||
}
|
||||
|
||||
if (arg_count(cmd, colon_ARG) && arg_count(cmd, short_ARG)) {
|
||||
log_error("Option -c is not allowed with option -s");
|
||||
return EINVALID_CMD_LINE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user