diff options
author | Mike Fulbright <msf@redhat.com> | 2002-06-11 20:53:20 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-06-11 20:53:20 +0000 |
commit | a660958cb61e4899770c198a6fe46c450a78f6cb (patch) | |
tree | ecc0fc7160456d9400ab501868640ffba6b99adb /partRequests.py | |
parent | ffe5bbdb35e0ed59df9fa4c3cad9abf3e1cec972 (diff) | |
download | anaconda-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.py | 10 |
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 |