diff options
author | Alasdair Kergon <agk@redhat.com> | 2003-12-09 22:32:47 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2003-12-09 22:32:47 +0000 |
commit | 607131b624b4a8305523e2d26a2c692e353640a9 (patch) | |
tree | 429a2a584e301b2f473432825cef921be65a0d98 | |
parent | ace13d2ca499fc839a49d599b6310b58614ca2d1 (diff) | |
download | lvm2-607131b624b4a8305523e2d26a2c692e353640a9.tar.gz lvm2-607131b624b4a8305523e2d26a2c692e353640a9.tar.xz lvm2-607131b624b4a8305523e2d26a2c692e353640a9.zip |
Change pvscan to show total of usable device size (instead of free data space).
-rw-r--r-- | tools/pvscan.c | 3 |
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 */ |