This is the mail archive of the
lvm2-cvs@sourceware.org
mailing list for the LVM2 project.
LVM2/tools vgsplit.c
- From: wysochanski at sourceware dot org
- To: lvm-devel at redhat dot com, lvm2-cvs at sourceware dot org
- Date: 22 Jan 2008 03:49:39 -0000
- Subject: LVM2/tools vgsplit.c
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski@sourceware.org 2008-01-22 03:49:39
Modified files:
tools : vgsplit.c
Log message:
Fix vgsplit test mode
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgsplit.c.diff?cvsroot=lvm2&r1=1.48&r2=1.49
--- LVM2/tools/vgsplit.c 2008/01/22 03:25:45 1.48
+++ LVM2/tools/vgsplit.c 2008/01/22 03:49:39 1.49
@@ -361,7 +361,8 @@
}
/* Remove EXPORTED flag from new VG */
- if (!(vg_to = vg_lock_and_read(cmd, vg_name_to, NULL, LCK_NONE, 0,
+ if (!test_mode() &&
+ !(vg_to = vg_lock_and_read(cmd, vg_name_to, NULL, LCK_NONE, 0,
CORRECT_INCONSISTENT | FAIL_INCONSISTENT))) {
log_error("Volume group \"%s\" became inconsistent: please "
"fix manually", vg_name_to);