1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00

commands: ignore partial option in most cases

These days --partial is only used with activation in
lvchange/vgchange.  It probably had another meaning
at some point in history which is no longer used,
so ignore it in those cases.

When included in the OO list, the option is advertised in
help/man output, implying it is meaningful to the command,
when in fact the command never uses it.
The IO list means the option won't cause an error if it's
used, but is not displayed as an valid option for the command.
If the option is not included in either OO or IO lists,
using the option would cause a command error, which would cause
problems for anyone is using the option for historical reasons.
This commit is contained in:
David Teigland 2017-04-03 14:39:35 -05:00
parent 51ff707ac8
commit 162272e5a5

View File

@ -196,7 +196,7 @@ OO_ALL: --commandprofile String, --config String, --debug,
OO_REPORT: --aligned, --all, --binary, --configreport ConfigReport, --foreign, OO_REPORT: --aligned, --all, --binary, --configreport ConfigReport, --foreign,
--ignorelockingfailure, --ignoreskippedcluster, --logonly, --ignorelockingfailure, --ignoreskippedcluster, --logonly,
--nameprefixes, --noheadings, --nolocking, --nosuffix, --nameprefixes, --noheadings, --nolocking, --nosuffix,
--options String, --partial, --readonly, --reportformat ReportFmt, --rows, --options String, --readonly, --reportformat ReportFmt, --rows,
--select String, --separator String, --shared, --sort String, --select String, --separator String, --shared, --sort String,
--trustcache, --unbuffered, --units Units, --unquoted --trustcache, --unbuffered, --units Units, --unquoted
@ -1177,10 +1177,11 @@ lvdisplay
OO: --aligned, --all, --binary, --colon, --columns, OO: --aligned, --all, --binary, --colon, --columns,
--configreport ConfigReport, --foreign, --history, --ignorelockingfailure, --configreport ConfigReport, --foreign, --history, --ignorelockingfailure,
--ignoreskippedcluster, --logonly, --maps, --noheadings, --ignoreskippedcluster, --logonly, --maps, --noheadings,
--nosuffix, --options String, --sort String, --partial, --readonly, --nosuffix, --options String, --sort String, --readonly,
--reportformat ReportFmt, --segments, --select String, --separator String, --reportformat ReportFmt, --segments, --select String, --separator String,
--shared, --unbuffered, --units Units --shared, --unbuffered, --units Units
OP: VG|LV|Tag ... OP: VG|LV|Tag ...
IO: --partial
ID: lvdisplay_general ID: lvdisplay_general
--- ---
@ -1294,19 +1295,22 @@ DESC: Resize a pool metadata SubLV by a specified size.
lvs lvs
OO: --history, --segments, OO_REPORT OO: --history, --segments, OO_REPORT
OP: VG|LV|Tag ... OP: VG|LV|Tag ...
IO: --partial
ID: lvs_general ID: lvs_general
--- ---
lvscan lvscan
OO: --all, --blockdevice, --ignorelockingfailure, --partial, OO: --all, --blockdevice, --ignorelockingfailure,
--readonly, --reportformat ReportFmt --readonly, --reportformat ReportFmt
IO: --partial
ID: lvscan_general ID: lvscan_general
lvscan --cache_long lvscan --cache_long
OO: --blockdevice, --ignorelockingfailure, --partial, OO: --blockdevice, --ignorelockingfailure,
--readonly, --reportformat ReportFmt --readonly, --reportformat ReportFmt
OP: LV ... OP: LV ...
IO: --partial
ID: lvscan_cache ID: lvscan_cache
--- ---
@ -1390,6 +1394,7 @@ ID: pvremove_general
pvs pvs
OO: --segments, OO_REPORT OO: --segments, OO_REPORT
OP: PV|Tag ... OP: PV|Tag ...
IO: --partial
ID: pvs_general ID: pvs_general
--- ---
@ -1410,9 +1415,10 @@ DESC: Populate the lvmetad cache by scanning PVs.
--- ---
vgcfgbackup vgcfgbackup
OO: --file String, --foreign, --ignorelockingfailure, --partial, --readonly, OO: --file String, --foreign, --ignorelockingfailure, --readonly,
--reportformat ReportFmt --reportformat ReportFmt
OP: VG ... OP: VG ...
IO: --partial
ID: vgcfgbackup_general ID: vgcfgbackup_general
--- ---
@ -1538,9 +1544,10 @@ vgdisplay
OO: --activevolumegroups, --aligned, --binary, --colon, --columns, OO: --activevolumegroups, --aligned, --binary, --colon, --columns,
--configreport ConfigReport, --foreign, --ignorelockingfailure, --configreport ConfigReport, --foreign, --ignorelockingfailure,
--ignoreskippedcluster, --logonly, --noheadings, --nosuffix, --ignoreskippedcluster, --logonly, --noheadings, --nosuffix,
--options String, --partial, --readonly, --reportformat ReportFmt, --select String, --options String, --readonly, --reportformat ReportFmt, --select String,
--shared, --short, --separator String, --sort String, --unbuffered, --units Units --shared, --short, --separator String, --sort String, --unbuffered, --units Units
OP: VG|Tag ... OP: VG|Tag ...
IO: --partial
ID: vgdisplay_general ID: vgdisplay_general
--- ---
@ -1642,13 +1649,15 @@ DESC: Rename a VG by specifying the VG UUID.
vgs vgs
OO: OO_REPORT OO: OO_REPORT
OP: VG|Tag ... OP: VG|Tag ...
IO: --partial
ID: vgs_general ID: vgs_general
--- ---
vgscan vgscan
OO: --cache_long, --ignorelockingfailure, --mknodes, --notifydbus, OO: --cache_long, --ignorelockingfailure, --mknodes, --notifydbus,
--partial, --reportformat ReportFmt --reportformat ReportFmt
IO: --partial
ID: vgscan_general ID: vgscan_general
--- ---
@ -1695,6 +1704,7 @@ ID: devtypes_general
fullreport fullreport
OO: OO_REPORT OO: OO_REPORT
OP: VG ... OP: VG ...
IO: --partial
ID: fullreport_general ID: fullreport_general
lastlog lastlog