[PATCH] Don't schedule a format resize if reformat scheduled. (#500991)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iw/lvm_dialog_gui.py       |    3 ++-
 iw/partition_dialog_gui.py |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 5102588..733b776 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -1078,7 +1078,8 @@ class VolumeGroupEditor:
                     # check the lv's format also, explicitly, in case it is
                     # encrypted. in this case we must check them both.
                     if format.resizable and lv.format.resizable and \
-                       lv.targetSize != format.currentSize:
+                       lv.targetSize != format.currentSize and \
+                       usedev.format.exists:
                         new_size = lv.targetSize
                         actions.append(ActionResizeFormat(usedev, new_size))
                 elif lv.format.type:
diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 8a098a4..45748c2 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -291,7 +291,7 @@ class PartitionEditor:
 
                     try:
                         actions.append(ActionResizeDevice(request, size))
-                        if request.format.type:
+                        if request.format.type and request.format.exists:
                             actions.append(ActionResizeFormat(request, size))
                     except ValueError:
                         pass
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux