Skip to contentSkip to conversation

LVM2/tools vgchange.c

PATCH [email protected] 1 participant 1 message Oct 22, 2011

lore
Share & tools
lore
#0 lore raw

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

tools/vgchange.c +4 -1
@@ -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;