[lvm-devel] LVM2/tools vgsplit.c
wysochanski at sourceware.org
wysochanski at sourceware.org
Tue Jan 22 03:49:39 UTC 2008
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at 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);
More information about the lvm-devel
mailing list