1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Change pvscan to show total of usable device size (instead of free data space).

This commit is contained in:
Alasdair Kergon 2003-12-09 22:32:47 +00:00
parent ace13d2ca4
commit 607131b624

View File

@ -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 */