Re: [PATCH] Only schedule implicit format destruction if there is formatting to destroy.

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

 



Ack

On 03/16/2009 12:54 PM, David Lehman wrote:
No need to schedule unneeded actions for devices that are initially
clean.
---
  storage/__init__.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index e4a7d43..943d2c3 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -575,7 +575,7 @@ class Storage(object):

      def destroyDevice(self, device):
          """ Schedule destruction of a device. """
-        if device.format.exists:
+        if device.format.exists and device.format.type:
              # schedule destruction of any formatting while we're at it
              self.devicetree.registerAction(ActionDestroyFormat(device))



--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
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