[lvm-devel] LVM2/liblvm lvm_vg.c

prajnoha at sourceware.org prajnoha at sourceware.org
Fri Apr 1 13:44:52 UTC 2011


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	prajnoha at sourceware.org	2011-04-01 13:44:51

Modified files:
	liblvm         : lvm_vg.c 

Log message:
	Finalize PV format instances properly in lvm_vg_write fn.
	
	lvm_vg_write fn reinitializes the vg->removed_pvs list. We have to finalize
	all PV format instances attached to PVs found in the original list.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/liblvm/lvm_vg.c.diff?cvsroot=lvm2&r1=1.51&r2=1.52

--- LVM2/liblvm/lvm_vg.c	2011/02/18 14:47:30	1.51
+++ LVM2/liblvm/lvm_vg.c	2011/04/01 13:44:51	1.52
@@ -147,6 +147,7 @@
 	if (! dm_list_empty(&vg->removed_pvs)) {
 		dm_list_iterate_items(pvl, &vg->removed_pvs) {
 			pv_write_orphan(vg->cmd, pvl->pv);
+			pv_set_fid(pvl->pv, NULL);
 			/* FIXME: do pvremove / label_remove()? */
 		}
 		dm_list_init(&vg->removed_pvs);




More information about the lvm-devel mailing list