From: Vratislav Podzimek <vpodzime(a)redhat.com>
This fixes an issue with growing thin pool requests where the thin pools don't
have their size set but their req_size is set to the sum of their thin LVs.
---
blivet/partitioning.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/blivet/partitioning.py b/blivet/partitioning.py
index 37a19e1..d2aff6b 100644
--- a/blivet/partitioning.py
+++ b/blivet/partitioning.py
@@ -1976,6 +1976,7 @@ def grow_lvm(storage):
if lv in vg.thinpools:
# make sure the pool's base size is at least the sum of its lvs'
lv.req_size = max(lv.req_size, lv.used_space)
+ lv.size = lv.req_size
# add the required padding to the requested pool size
lv.req_size += Size(blockdev.lvm.get_thpool_padding(lv.req_size,
vg.pe_size))
--
To view this commit on github, visit
https://github.com/rhinstaller/blivet/commit/8380e8ceda95f67d03ae228a2ab6...