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:
parent
ace13d2ca4
commit
607131b624
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user