[lvm-devel] LVM2/tools vgchange.c

zkabelac at sourceware.org zkabelac at sourceware.org
Sat Oct 22 16:47:23 UTC 2011


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	zkabelac at sourceware.org	2011-10-22 16:47:23

Modified files:
	tools          : vgchange.c 

Log message:
	Ensure thin LVs take an exclusive activation

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgchange.c.diff?cvsroot=lvm2&r1=1.123&r2=1.124

--- LVM2/tools/vgchange.c	2011/09/14 18:20:04	1.123
+++ LVM2/tools/vgchange.c	2011/10/22 16:47:23	1.124
@@ -145,7 +145,10 @@
 				stack;
 				continue;
 			}
-		} else if (lv_is_origin(lv) || (activate == CHANGE_AE)) {
+		} else if (lv_is_origin(lv) ||
+			   lv_is_thin_pool(lv) ||
+			   lv_is_thin_volume(lv) ||
+			   (activate == CHANGE_AE)) {
 			if (!activate_lv_excl(cmd, lv)) {
 				stack;
 				continue;




More information about the lvm-devel mailing list