LVM2 ./WHATS_NEW tools/reporter.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: mbroz at sourceware.org 2010-06-17 13:15:52
Modified files:
. : WHATS_NEW
tools : reporter.c
Log message:
Fix exit code when requesting help using documented -o help option.
IOW fix lvs -o help
...
Command failed with status code 5.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1616&r2=1.1617
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/reporter.c.diff?cvsroot=lvm2&r1=1.60&r2=1.61
WHATS_NEW +1 -0
@@ -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.
tools/reporter.c +2 -0
@@ -362,6 +362,8 @@ separator, aligned, buffered, headings, field_prefixes, quoted, columns_as_rows))) { +if (!strcasecmp (options,"help" ) || !strcmp (options,"?" )) +return r; stack;return ECMD_FAILED ; }
Quoted 1 line · mbroz at sourceware.org
Fix exit code when requesting help using documented -o help option.
Fix is incomplete.
For example:
Quoted 1 line
lvs -o +help
still gives me exit status 5.
Alasdair
Quoted 1 line · mbroz at sourceware.org
IOW fix lvs -o help
dmsetup info -c -o help
also still gives me non-zero return code.
Alasdair
Quoted 6 lines · Alasdair G Kergon
Quoted 1 line · mbroz at sourceware.org
IOW fix lvs -o help
dmsetup info -c -o help
also still gives me non-zero return code.
I have no time to fix it now, sorry.
It just fixes documented use in manual "-o help". "Use -o help to view the full list of columns available."
It will not work if you run -o +something,help" anyway.
Milan