summaryrefslogtreecommitdiffstats
path: root/partRequests.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-06-11 20:53:20 +0000
committerMike Fulbright <msf@redhat.com>2002-06-11 20:53:20 +0000
commita660958cb61e4899770c198a6fe46c450a78f6cb (patch)
treeecc0fc7160456d9400ab501868640ffba6b99adb /partRequests.py
parentffe5bbdb35e0ed59df9fa4c3cad9abf3e1cec972 (diff)
downloadanaconda-a660958cb61e4899770c198a6fe46c450a78f6cb.tar.gz
anaconda-a660958cb61e4899770c198a6fe46c450a78f6cb.tar.xz
anaconda-a660958cb61e4899770c198a6fe46c450a78f6cb.zip
added method for setting size of LV
Diffstat (limited to 'partRequests.py')
-rw-r--r--partRequests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/partRequests.py b/partRequests.py
index 49642ab01..9c9497a10 100644
--- a/partRequests.py
+++ b/partRequests.py
@@ -767,3 +767,13 @@ class LogicalVolumeRequestSpec(RequestSpec):
return int(self.percent * 0.01 * vgreq.size)
else:
return self.size
+
+ def setSize(self, size):
+ """Set the size (in MB) of request (does not clamp to PE however)
+
+ size - size in MB
+ """
+ if self.percent:
+ self.percent = None
+
+ self.size = size