diff options
-rw-r--r-- | WHATS_NEW | 1 | ||||
-rw-r--r-- | tools/pvscan.c | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -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 ea4a3866..57882f67 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 */ |