[PATCH 2/2] Use commitToDisk() instead of commit() when only changing flags

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

 



When only changing partition table flags, there is no reason to ask the
kernel to rescan the partition table, this only slows us down.
---
 storage/deviceaction.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/storage/deviceaction.py b/storage/deviceaction.py
index 2140b52..4a06d22 100644
--- a/storage/deviceaction.py
+++ b/storage/deviceaction.py
@@ -264,7 +264,7 @@ class ActionCreateFormat(DeviceAction):
         if isinstance(self.device, PartitionDevice):
             if self.format.partedFlag is not None:
                 self.device.setFlag(self.format.partedFlag)
-                self.device.disk.format.commit()
+                self.device.disk.format.commitToDisk()
 
         self.device.setup()
         self.device.format.create(intf=intf,
@@ -311,7 +311,7 @@ class ActionDestroyFormat(DeviceAction):
                self.origFormat.partedFlag is not None:
                 # unset partition flags and commit
                 self._device.unsetFlag(self.origFormat.partedFlag)
-                self._device.disk.format.commit()
+                self._device.disk.format.commitToDisk()
 
             # set up our copy of the original device stack since the
             # reference we got may have had any number of things changed
-- 
1.6.4

_______________________________________________
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