]> sourceware.org Git - lvm2.git/commit
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)
commit4257485ff24cdaee6f6246a66c86f4c0f7cfcc25
tree50635df824eb462e29ba43a94646baa48f175d40
parentf69b7a58f20c7c1d71e4863adc35da33edf0e3b3
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.044381 seconds and 5 git commands to generate.