[lvm-devel] LVM2/lib/metadata lv_manip.c

zkabelac at sourceware.org zkabelac at sourceware.org
Fri Sep 16 11:59:23 UTC 2011


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

--- LVM2/lib/metadata/lv_manip.c	2011/09/16 09:59:42	1.286
+++ LVM2/lib/metadata/lv_manip.c	2011/09/16 11:59:22	1.287
@@ -3028,6 +3028,8 @@
 
 	dm_list_del(&lvl->list);
 
+	lv->status = 0;   /* Reset */
+
 	return 1;
 }
 




More information about the lvm-devel mailing list