summaryrefslogtreecommitdiffstats
path: root/tools/pvscan.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2010-05-07 15:24:17 +0000
committerAlasdair Kergon <agk@redhat.com>2010-05-07 15:24:17 +0000
commit1641fdf90c815e32e7ab7acd17685038b14d47c9 (patch)
treeacffa6702e2a4a7fffd3c46bbd71c40ce8c2cc1e /tools/pvscan.c
parent0b0caec5f6d232ef4dfe3ed57fc550b50c00efdf (diff)
downloadlvm2-1641fdf90c815e32e7ab7acd17685038b14d47c9.tar.gz
lvm2-1641fdf90c815e32e7ab7acd17685038b14d47c9.tar.xz
lvm2-1641fdf90c815e32e7ab7acd17685038b14d47c9.zip
Fix truncated total size displayed by pvscan.
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r--tools/pvscan.c2
1 files changed, 1 insertions, 1 deletions
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 */