From: Vratislav Podzimek <vpodzime(a)redhat.com>
The result is the same, but it just makes more sense.
---
blivet/devicefactory.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/blivet/devicefactory.py b/blivet/devicefactory.py
index 78c34d6..440355c 100644
--- a/blivet/devicefactory.py
+++ b/blivet/devicefactory.py
@@ -1276,7 +1276,7 @@ def _get_total_space(self):
# since that's the basis for the current device's disk space
# usage.
# XXX: should respect the real extent size
- space -= blockdev.lvm.get_lv_physical_size(self.device.size,
lvm.LVM_PE_SIZE)
+ space -= blockdev.lvm.round_size_to_pe(self.device.size,
lvm.LVM_PE_SIZE)
log.debug("size cut to %s to omit old device space", space)
if self.container_encrypted:
--
To view this commit on github, visit
https://github.com/rhinstaller/blivet/commit/1e5005c1e0543ccc6ee9a6edb82f...