This is the mail archive of the lvm2-cvs@sourceware.org mailing list for the LVM2 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

LVM2/tools vgsplit.c


CVSROOT:	/cvs/lvm2
Module name:	LVM2
Changes by:	wysochanski@sourceware.org	2008-04-10 02:15:56

Modified files:
	tools          : vgsplit.c 

Log message:
	Minor vgsplit cleanups.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/vgsplit.c.diff?cvsroot=lvm2&r1=1.59&r2=1.60

--- LVM2/tools/vgsplit.c	2008/04/10 01:30:22	1.59
+++ LVM2/tools/vgsplit.c	2008/04/10 02:15:56	1.60
@@ -33,7 +33,7 @@
 	vg_from->pv_count--;
 	vg_to->pv_count++;
 
-	pv = list_item(pvl, struct pv_list)->pv;
+	pv = pvl->pv;
 
 	vg_from->extent_count -= pv_pe_count(pv);
 	vg_to->extent_count += pv_pe_count(pv);
@@ -100,8 +100,7 @@
 	struct logical_volume *lv;
 
 	lv = list_item(lvh, struct lv_list)->lv;
-	list_del(lvh);
-	list_add(&vg_to->lvs, lvh);
+	list_move(lvh, &vg_to->lvs);
 	
 	if (lv->status & SNAPSHOT) {
 		vg_from->snapshot_count--;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]