[master 4/4] Use lvm.round_size_to_pe() instead of get_lv_physical_size() with the VG size

vpodzime installerbot-noreply at redhat.com
Thu Nov 5 15:47:32 UTC 2015


From: Vratislav Podzimek <vpodzime at 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 92aa2ff..7cd6df8 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/d92963ad094fef563d5c946e8e24f81ac5199837


More information about the anaconda-patches mailing list