diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-04-16 00:17:20 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-04-16 00:17:20 +0200 |
commit | 71466837dac557eea1fad9b4cddb6a428719cf50 (patch) | |
tree | 8136a008daf5641138692e4c25a5d60a28d5d6cd /iw | |
parent | 5fb5ab8d77581ac9d271a9ed606a5649645c3d5a (diff) | |
download | anaconda-71466837dac557eea1fad9b4cddb6a428719cf50.tar.gz anaconda-71466837dac557eea1fad9b4cddb6a428719cf50.tar.xz anaconda-71466837dac557eea1fad9b4cddb6a428719cf50.zip |
Use size instead of currentSize when comparing lv sizes
parted and lvm have a different idea of the exact size of an LV, so
when using currentSize to see if we need to resize, we will always
create a ResizeAction, which will later on fail as "lvm lvresize"
returns an error status if the requested resize is a nop.
So use size instead, this is safe as we never change the size of
existing lv's.
This fixes a traceback with a lvmresize exception when trying to use
an existing LV during install without changing its size.
Diffstat (limited to 'iw')
-rw-r--r-- | iw/lvm_dialog_gui.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py index 0089e96e3..ef52903c9 100644 --- a/iw/lvm_dialog_gui.py +++ b/iw/lvm_dialog_gui.py @@ -1057,7 +1057,7 @@ class VolumeGroupEditor: origlv = _lv break - if lv.resizable and lv.targetSize != origlv.currentSize: + if lv.resizable and lv.targetSize != origlv.size: actions.append(ActionResizeDevice(origlv, lv.targetSize)) if lv.format.exists: |