[lvm-devel] LVM2/tools vgsplit.c
wysochanski at sourceware.org
wysochanski at sourceware.org
Thu Apr 10 02:15:56 UTC 2008
CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: wysochanski at 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--;
More information about the lvm-devel
mailing list