summaryrefslogtreecommitdiffstats
path: root/lvm.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-08-14 04:42:23 +0000
committerMike Fulbright <msf@redhat.com>2002-08-14 04:42:23 +0000
commite4bf92aa78fb29f708abdfc05c1c927e646921b8 (patch)
tree9fdf58ce112f71d7b44130a1fcb0cc274e7665b7 /lvm.py
parent432a4b0deb503183a9de446e261d8769593a20e3 (diff)
downloadanaconda-e4bf92aa78fb29f708abdfc05c1c927e646921b8.tar.gz
anaconda-e4bf92aa78fb29f708abdfc05c1c927e646921b8.tar.xz
anaconda-e4bf92aa78fb29f708abdfc05c1c927e646921b8.zip
round down or else we will use too much space in ks --percent mode rounding up
Diffstat (limited to 'lvm.py')
-rw-r--r--lvm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lvm.py b/lvm.py
index 8082f0aed..6a0972ecc 100644
--- a/lvm.py
+++ b/lvm.py
@@ -142,7 +142,7 @@ def clampLVSizeRequest(size, pe):
if ((size*1024L) % pe) == 0:
return size
else:
- return ((long((size*1024L)/pe)+1L)*pe)/1024
+ return ((long((size*1024L)/pe))*pe)/1024
def clampPVSize(pvsize, pesize):
"""Given a PV size and a PE, returns the usable space of the PV.