summaryrefslogtreecommitdiffstats
path: root/storage/deviceaction.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2009-08-28 00:36:16 +0200
committerHans de Goede <hdegoede@redhat.com>2009-08-28 08:25:36 +0200
commitc321fe18f899dfeac8c0a123d1b42eca9e4cdbfe (patch)
tree9ec5a04a3d02fb517144c5462853186bd2dd79d7 /storage/deviceaction.py
parent3c6c236af903f113ac9397625ee43211e3be9c38 (diff)
downloadanaconda-c321fe18f899dfeac8c0a123d1b42eca9e4cdbfe.tar.gz
anaconda-c321fe18f899dfeac8c0a123d1b42eca9e4cdbfe.tar.xz
anaconda-c321fe18f899dfeac8c0a123d1b42eca9e4cdbfe.zip
Use commitToDisk() instead of commit() when only changing flags
When only changing partition table flags, there is no reason to ask the kernel to rescan the partition table, this only slows us down.
Diffstat (limited to 'storage/deviceaction.py')
-rw-r--r--storage/deviceaction.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/deviceaction.py b/storage/deviceaction.py
index 2140b5267..4a06d222a 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