mirror of
git://sourceware.org/git/lvm2.git
synced 2025-02-22 09:57:47 +03:00
lvcreate: %FREE -> %PVS
This is hotfix for RHBZ: https://bugzilla.redhat.com/1324537 However already the %FREE is not a good fit and we need something better. Meanwhile make -l%PVS work at least as good as %FREE for thin-pool. TODO: this needs rework - it should be allocator to do all the size decisions at one place.
This commit is contained in:
parent
e2d4f53c82
commit
097a724bda
@ -1,5 +1,6 @@
|
||||
Version 2.02.150 -
|
||||
=================================
|
||||
Reuse %FREE size aproximation with lvcreate -l%PVS thin-pool.
|
||||
Allow the lvmdump directory to exist already provided it is empty.
|
||||
Show lvconverted percentage with 2 decimal digits.
|
||||
Fix regression in suspend when repairing --type mirror (2.02.133).
|
||||
|
@ -368,7 +368,7 @@ static int _update_extents_params(struct volume_group *vg,
|
||||
&lp->discards, &lp->zero))
|
||||
return_0;
|
||||
|
||||
if (lcp->percent == PERCENT_FREE) {
|
||||
if (lcp->percent == PERCENT_FREE || lcp->percent == PERCENT_PVS) {
|
||||
if (lp->extents <= (2 * lp->pool_metadata_extents)) {
|
||||
log_error("Not enough space for thin pool creation.");
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user