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

[PATCH] No need to special case ignoring of dmraid sets



device.raidSet.name == device.name, so there is no need to specially
add it to ignore disks, this will only lead to the raidset name being
in ignoredDisks twice.
---
 storage/devicetree.py |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 6e1eb98..0f5e4a8 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1394,9 +1394,6 @@ class DeviceTree(object):
                                    exists=False)
             else:
                 self._removeDevice(device)
-                if isinstance(device, DMRaidArrayDevice):
-                    # We should ignore the dmraid members as well
-                    self.addIgnoredDisk(device.raidSet.name)
                 self.addIgnoredDisk(device.name)
                 return
 
-- 
1.6.5.2


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