summaryrefslogtreecommitdiffstats
path: root/tools/pvscan.c
diff options
context:
space:
mode:
authorAlasdair Kergon <agk@redhat.com>2003-12-09 22:32:47 +0000
committerAlasdair Kergon <agk@redhat.com>2003-12-09 22:32:47 +0000
commit607131b624b4a8305523e2d26a2c692e353640a9 (patch)
tree429a2a584e301b2f473432825cef921be65a0d98 /tools/pvscan.c
parentace13d2ca499fc839a49d599b6310b58614ca2d1 (diff)
downloadlvm2-607131b624b4a8305523e2d26a2c692e353640a9.tar.gz
lvm2-607131b624b4a8305523e2d26a2c692e353640a9.tar.xz
lvm2-607131b624b4a8305523e2d26a2c692e353640a9.zip
Change pvscan to show total of usable device size (instead of free data space).
Diffstat (limited to 'tools/pvscan.c')
-rw-r--r--tools/pvscan.c3
1 files changed, 1 insertions, 2 deletions
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 */