[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] PATCH - LVM 0.9 CVS as of 12/14/00.



Hi,

Quick patch to fix issue with output of improper Totat PE's on vgdisplay
and so it will update Total PE's properly when doing a vgextend.  Think
somebody might have just added this line in the wrong spot. :)

--- lvm.c	Mon Dec 11 18:31:32 2000
+++ lvm.c.fix	Thu Dec 14 02:40:27 2000
@@ -2104,6 +2104,7 @@
 				ret = lvm_do_pv_create(arg, vg_ptr, p);
 				if ( ret != 0) return ret;
 				pv_ptr = vg_ptr->pv[p];
+				vg_ptr->pe_total += pv_ptr->pe_total;
 				lvm_do_create_proc_entry_of_pv ( vg_ptr, pv_ptr);
 				return 0;
 			}
@@ -2287,7 +2288,6 @@
 	pv_ptr->pv_status = PV_ACTIVE;
 	vg_ptr->pv_act++;
 	vg_ptr->pv_cur++;
-	vg_ptr->pe_total += pv_ptr->pe_total;
 
 	return 0;
 } /* lvm_do_pv_create() */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]