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

Re: [PATCH 1/3] No need to special case ignoring of dmraid sets



ACK.

On 12/16/2009 10:31 AM, Hans de Goede wrote:
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 9f1f0b4..6c956fc 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1384,9 +1384,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



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