Skip to contentSkip to conversation

LVM2/lib/metadata lv_manip.c

PATCH [email protected] 1 participant 1 message Sep 16, 2011

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: zkabelac at sourceware.org 2011-09-16 11:59:22

Modified files:
lib/metadata : lv_manip.c

Log message:
Reset LV status when unlinking LV from VG

When LV is unlinked, we want to catch problem in vg_validate, that LV has changed.

i.e. catch LV has been removed and is no long thin_pool while still being referenced by some thin volume.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/lib/metadata/lv_manip.c.diff?cvsroot=lvm2&r1=1.286&r2=1.287

lib/metadata/lv_manip.c +2 -0
@@ -3028,6 +3028,8 @@
 
 	dm_list_del(&lvl->list);
 
+	lv->status = 0;   /* Reset */
+
 	return 1;
 }