mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +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_new += pv->size;
|
||||||
size_total += pv->size;
|
size_total += pv->size;
|
||||||
} else
|
} else
|
||||||
size_total += (pv->pe_count - pv->pe_alloc_count)
|
size_total += pv->pe_count * pv->pe_size;
|
||||||
* pv->pe_size;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* find maximum pv name length */
|
/* find maximum pv name length */
|
||||||
|
Loading…
Reference in New Issue
Block a user