diff options
author | Chris Lumens <clumens@redhat.com> | 2005-05-25 18:15:53 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2005-05-25 18:15:53 +0000 |
commit | c694fbcc425f5aa8eb693061bba5cc0f3895654f (patch) | |
tree | fca81468dc8de529085a6548161777ececfcfb9b | |
parent | 8b848d935c23d9a96120470cc0561f9dd101c9a2 (diff) | |
download | anaconda-c694fbcc425f5aa8eb693061bba5cc0f3895654f.tar.gz anaconda-c694fbcc425f5aa8eb693061bba5cc0f3895654f.tar.xz anaconda-c694fbcc425f5aa8eb693061bba5cc0f3895654f.zip |
Use sizes of PV requests instead of preexisting PVs on volume group editor
screen.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | iw/lvm_dialog_gui.py | 13 |
2 files changed, 16 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2005-05-25 Chris Lumens <clumens@redhat.com> + + * iw/lvm_dialog_gui.py: Use sizes of PV requests instead of + preexisting PVs on volume group editor screen. + 2005-05-25 Jeremy Katz <katzj@redhat.com> * anaconda.spec: Bump version. 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) |