]> sourceware.org Git - lvm2.git/commit - tools/commands.h
Add --pvmetadatacopies as a synonym for --metadatacopies in various commands.
authorDave Wysochanski <dwysocha@redhat.com>
Mon, 5 Oct 2009 20:55:56 +0000 (20:55 +0000)
committerDave Wysochanski <dwysocha@redhat.com>
Mon, 5 Oct 2009 20:55:56 +0000 (20:55 +0000)
commit0ddb66efba61c4be6301ee42c8fa9376e3351acc
tree50635df824eb462e29ba43a94646baa48f175d40
parentb8a7da0133247d2de4d1ee5f245b60f050ffc574
Add --pvmetadatacopies as a synonym for --metadatacopies in various commands.

Going forward, we would like to allow users to specify the total
number of metadatacopies in a VG rather than on a per-PV basis.  In
order to facilitate that, introduce --pvmetadatacopes to replace
--metadatacopies everywhere.  We still allow --metadatacopies for
pv commands, but require --pvmetadatacopies for vg commands.
Eventually we will introduce --vgmetadatacopies.  Once we do that,
we should either deprecate --metadatacopies or make it a synonym based
on the command (pvmetadatacopies for pv commands, and vgmetadatacopies
for vg commands).  The latter option would likely just require a simple
'strncpy' check against cmd->command->name to qualify the merge_synonym
call.

Update nightly tests to cover the pvmetadatacopies synonym.

Note that this patch is the result of an eariler review comment for
the implicit pvcreate patches.  Should apply cleanly on top of the
implicit pvcreate patches (I applied after patch 10/10 in that series).

NOTE: This patch will require --pvmetadatacopies for vgconvert as
--metadatacopies is no longer accepted.
16 files changed:
WHATS_NEW
man/pvcreate.8.in
man/vgchange.8.in
man/vgconvert.8.in
man/vgcreate.8.in
man/vgextend.8.in
test/t-pvcreate-usage.sh
test/t-vgcreate-usage.sh
test/t-vgextend-usage.sh
tools/args.h
tools/commands.h
tools/lvmcmdline.c
tools/toollib.c
tools/vgconvert.c
tools/vgcreate.c
tools/vgextend.c
This page took 0.035246 seconds and 5 git commands to generate.