1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Fix exit code when requesting help using documented -o help option.

IOW fix lvs -o help
...
  Command failed with status code 5.
This commit is contained in:
Milan Broz 2010-06-17 13:15:51 +00:00
parent d2031f6a16
commit 4df5235d15
2 changed files with 3 additions and 0 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.68 -
===============================
Fix exit code when requesting help using documented -o help option.
Do not use internal DLM lock definitions in generic LVM2 clvmd code.
Add dmeventd man page.
Update lvresize/extend/reduce manpages with --nofsck, --resizefs options.

View File

@ -362,6 +362,8 @@ static int _report(struct cmd_context *cmd, int argc, char **argv,
separator, aligned, buffered,
headings, field_prefixes, quoted,
columns_as_rows))) {
if (!strcasecmp(options, "help") || !strcmp(options, "?"))
return r;
stack;
return ECMD_FAILED;
}