Skip to contentSkip to conversation

LVM2 ./WHATS_NEW tools/pvscan.c

PATCH [email protected] 1 participant 1 message May 7, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: agk at sourceware.org 2010-05-07 15:24:18

Modified files:
. : WHATS_NEW
tools : pvscan.c

Log message:
Fix truncated total size displayed by pvscan.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/WHATS_NEW.diff?cvsroot=lvm2&r1=1.1549&r2=1.1550
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/tools/pvscan.c.diff?cvsroot=lvm2&r1=1.50&r2=1.51

WHATS_NEW +1 -0
@@ -1,5 +1,6 @@
 Version 2.02.65 - 
 =================================
+  Fix truncated total size displayed by pvscan.
   Add new --sysinit option for vgchange and lvchange.
   Suppress duplicate error messages about read failures and missing devices.
   Install plugins to $(libdir)/device-mapper and $(libdir)/lvm2.
tools/pvscan.c +1 -1
@@ -166,7 +166,7 @@
 			size_new += pv_size(pv);
 			size_total += pv_size(pv);
 		} else
-			size_total += pv_pe_count(pv) * pv_pe_size(pv);
+			size_total += (uint64_t) pv_pe_count(pv) * pv_pe_size(pv);
 	}
 
 	/* find maximum pv name length */