summaryrefslogtreecommitdiffstats
path: root/iw
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-05-25 18:06:18 +0000
committerChris Lumens <clumens@redhat.com>2005-05-25 18:06:18 +0000
commite279c670fd12ae89bde06b4b7db50784f7acdde0 (patch)
treefdfb01f4fa8d8f76460f17dd1e9a6663992b7025 /iw
parent12fc99003eda93c468c56e4896cdaf8981d5ec16 (diff)
downloadanaconda-e279c670fd12ae89bde06b4b7db50784f7acdde0.tar.gz
anaconda-e279c670fd12ae89bde06b4b7db50784f7acdde0.tar.xz
anaconda-e279c670fd12ae89bde06b4b7db50784f7acdde0.zip
Use sizes of PV requests instead of preexisting PVs on volume group editor
screen.
Diffstat (limited to 'iw')
-rw-r--r--iw/lvm_dialog_gui.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index fc5a504a8..8ea593143 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -308,13 +308,18 @@ class VolumeGroupEditor:
sw.set_policy(gtk.POLICY_NEVER, gtk.POLICY_AUTOMATIC)
sw.set_shadow_type(gtk.SHADOW_IN)
- for uid, size, used in alllvmparts:
+ for part in alllvmparts:
+ uid = part[0]
request = partitions.getRequestByID(uid)
+
if request.type != REQUEST_RAID:
partname = "%s" % (request.device,)
else:
partname = "md%d" % (request.raidminor,)
+ size = request.getActualSize (partitions, self.diskset)
+ used = part[2]
+
# clip size to current PE
pesize = int(self.peCombo.get_active_value())
size = lvm.clampPVSize(size, pesize)
@@ -338,7 +343,11 @@ class VolumeGroupEditor:
"""
row = 0
- for uid, size, used in alllvmparts:
+ for part in alllvmparts:
+ uid = part[0]
+ request = partitions.getRequestByID(uid)
+ size = request.getActualSize(partitions, self.diskset)
+
# clip size to current PE
pesize = int(self.peCombo.get_active_value())
size = lvm.clampPVSize(size, pesize)