On Thu, 2014-11-27 at 13:46 +0100, Vratislav Podzimek wrote:
If we were to process the actions, we would prune them first because
some
actions just annihilate with some others. We can do the same before cancelling
scheduled actions which may save us from cancelling actions that would be
eliminated by cancelling other actions. This speeds things up and save us from
doing many potentially dangerous things caused by cancelling actions.
Related: rhbz#1165714
Related: rhbz#1166598
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
blivet/devicetree.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/blivet/devicetree.py b/blivet/devicetree.py
index 98b1251..de67b16 100644
--- a/blivet/devicetree.py
+++ b/blivet/devicetree.py
@@ -1956,6 +1956,7 @@ class DeviceTree(object):
if device in self._hidden:
return
+ self.pruneActions()
# cancel actions first thing so that we hide the correct set of devices
if device.isDisk:
# Cancel all actions on this disk and any disk related by way of an
ACK!