From 607131b624b4a8305523e2d26a2c692e353640a9 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Tue, 9 Dec 2003 22:32:47 +0000 Subject: Change pvscan to show total of usable device size (instead of free data space). --- tools/pvscan.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tools/pvscan.c') diff --git a/tools/pvscan.c b/tools/pvscan.c index d862d58e..126259ea 100644 --- a/tools/pvscan.c +++ b/tools/pvscan.c @@ -167,8 +167,7 @@ int pvscan(struct cmd_context *cmd, int argc, char **argv) size_new += pv->size; size_total += pv->size; } else - size_total += (pv->pe_count - pv->pe_alloc_count) - * pv->pe_size; + size_total += pv->pe_count * pv->pe_size; } /* find maximum pv name length */ -- cgit