summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--iw/lvm_dialog_gui.py5
-rw-r--r--storage/deviceaction.py2
2 files changed, 3 insertions, 4 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index f1c25968b..a24e1ee11 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -729,7 +729,6 @@ class VolumeGroupEditor:
if self.fsoptionsDict.has_key("resizecb") and self.fsoptionsDict["resizecb"].get_active():
targetSize = self.fsoptionsDict["resizesb"].get_value_as_int()
templv.targetSize = targetSize
- format.targetSize = targetSize
templv.format = format
@@ -1071,8 +1070,8 @@ class VolumeGroupEditor:
actions.append(ActionMigrateFormat(origlv))
if lv.format.resizable and \
- lv.format.targetSize != lv.format.currentSize:
- new_size = lv.format.targetSize
+ lv.targetSize != lv.format.currentSize:
+ new_size = lv.targetSize
actions.append(ActionResizeFormat(origlv, new_size))
elif lv.format.type:
log.debug("new format: %s" % lv.format.type)
diff --git a/storage/deviceaction.py b/storage/deviceaction.py
index b462108bb..61e9aa4e2 100644
--- a/storage/deviceaction.py
+++ b/storage/deviceaction.py
@@ -342,7 +342,7 @@ class ActionResizeFormat(DeviceAction):
obj = ACTION_OBJECT_FORMAT
def __init__(self, device, newsize):
- if device.targetSize == newsize:
+ if device.format.targetSize == newsize:
raise ValueError("new size same as old size")
DeviceAction.__init__(self, device)