diff --git a/WHATS_NEW b/WHATS_NEW index 48725f3d8..004f8f704 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -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. diff --git a/tools/pvscan.c b/tools/pvscan.c index ea4a3866d..57882f67c 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -166,7 +166,7 @@ int pvscan(struct cmd_context *cmd, int argc __attribute((unused)), 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 */