diff options
author | Cristian Ciupitu <cristian.ciupitu@yahoo.com> | 2009-05-03 17:03:57 +0300 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-05-05 11:25:04 -0400 |
commit | aa88a7e3fcab2b9b46f69762c10fe75f92366b78 (patch) | |
tree | 8acf5dd982bcdaa9093bcbc1812209fc2b0a86a8 /iw | |
parent | ae7e082b9ecb263fc5fe5544514e19433ff61d13 (diff) | |
download | anaconda-aa88a7e3fcab2b9b46f69762c10fe75f92366b78.tar.gz anaconda-aa88a7e3fcab2b9b46f69762c10fe75f92366b78.tar.xz anaconda-aa88a7e3fcab2b9b46f69762c10fe75f92366b78.zip |
Support LVM PE sizes > 128MB (#497733)
In createPEOptionMenu(...), store in the actualPE list only the physical
extents (PE) displayed by the combo-box, not all the possible physical
extents.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/lvm_dialog_gui.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py index a24e1ee11..e07abf32b 100644 --- a/iw/lvm_dialog_gui.py +++ b/iw/lvm_dialog_gui.py @@ -247,12 +247,13 @@ class VolumeGroupEditor: def createPEOptionMenu(self, default=4096): peCombo = datacombo.DataComboBox() - actualPE = lvm.getPossiblePhysicalExtents(floor=1024) - for curpe in actualPE: + actualPE = [] + for curpe in lvm.getPossiblePhysicalExtents(floor=1024): # don't show PE over 128M, unless it's the default if curpe > 131072 and curpe != default: continue + actualPE.append(curpe) val = self.prettyFormatPESize(curpe) peCombo.append(val, curpe) |