diff options
author | Chris Lumens <clumens@redhat.com> | 2009-10-29 10:49:34 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-11-04 10:23:50 -0500 |
commit | 346da398074b7dff2b1ebba187655fda4a9c5bfe (patch) | |
tree | 99ef618c254961703a8d464c8e30c072378e956d /storage/partitioning.py | |
parent | 1c113246af4daa882dab5d7488232620eb80b344 (diff) | |
download | anaconda-346da398074b7dff2b1ebba187655fda4a9c5bfe.tar.gz anaconda-346da398074b7dff2b1ebba187655fda4a9c5bfe.tar.xz anaconda-346da398074b7dff2b1ebba187655fda4a9c5bfe.zip |
Take the spec's requiredSpace into account when creating LVs.
This allows us to disregard certain requests when there's not enough
space in the VG for the request to make any sense.
Diffstat (limited to 'storage/partitioning.py')
-rw-r--r-- | storage/partitioning.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/partitioning.py b/storage/partitioning.py index 1e2ee40c3..f785b0e88 100644 --- a/storage/partitioning.py +++ b/storage/partitioning.py @@ -129,6 +129,8 @@ def _scheduleLVs(anaconda, devs): vg = anaconda.id.storage.newVG(pvs=pvs) anaconda.id.storage.createDevice(vg) + initialVGSize = vg.size + # # Convert storage.autoPartitionRequests into Device instances and # schedule them for creation. @@ -138,6 +140,9 @@ def _scheduleLVs(anaconda, devs): if not request.asVol: continue + if request.requiredSpace and request.requiredSpace > initialVGSize: + continue + if request.fstype is None: request.fstype = anaconda.id.storage.defaultFSType |