From aa88a7e3fcab2b9b46f69762c10fe75f92366b78 Mon Sep 17 00:00:00 2001 From: Cristian Ciupitu Date: Sun, 3 May 2009 17:03:57 +0300 Subject: 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. --- iw/lvm_dialog_gui.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'iw') 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) -- cgit