LVM2 man/vgsplit.8.in tools/vgsplit.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at sourceware.org 2009-09-02 21:27:22
Modified files:
man : vgsplit.8.in
tools : vgsplit.c
Log message:
Refactor vgsplit - reorder _vgsplit_from and _vgsplit_to based on flag.
Slight functional change. If we open the destination first, we cannot know the 'fmt'. In this case we use the default metadata type unless the user has specified -M on the cmdline. If not, in most cases this is fine since we use the LVM2 default metadata type. However, if the user is specifying a non-default metadata type (e.g. lvm1) and the order of the names is such that we have to open the destination (vg_to) first, we have a problem. So in this case, we require the use of -M and vgsplit will fail with an error if not. I've updated the man page to recommend the usage of -M in this case.
Author: Dave Wysochanski <[email protected]>
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/man/vgsplit.8.in.diff?cvsroot=lvm2&r1=1.1&r2=1.2
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgsplit.c.diff?cvsroot=lvm2&r1=1.91&r2=1.92
man/vgsplit.8.in +3 -1
@@ -39,7 +39,9 @@ and \fB\-\-maxphysicalvolumes\fR (see \fBvgcreate(8)\fR for a description of these options). If any of these options are not given, default attribute(s) are taken from -.I SourceVolumeGroupName\fP. +.I SourceVolumeGroupName\fP. If a non-LVM2 metadata type (e.g. lvm1) is +being used, you should use the -M option to specify the metadata type +directly. If .I DestinationVolumeGroupName
tools/vgsplit.c +31 -17
57 lines not on this page · raw message