diff --git a/WHATS_NEW b/WHATS_NEW index dc0d1b45b..542b802c0 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -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. diff --git a/tools/pvdisplay.c b/tools/pvdisplay.c index 34ec3d543..b85635e9c 100644 --- a/tools/pvdisplay.c +++ b/tools/pvdisplay.c @@ -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; }