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

[PATCH 4/4] Check if an mpath should be ignored before adding it to the devicetree.



Resolves: rhbz#596468
---
 storage/devicetree.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 7675582..b99d9b8 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -2033,6 +2033,11 @@ class DeviceTree(object):
         for mp in mpaths:
             log.info("adding mpath device %s" % mp.name)
             mp.setup()
+            mp_info = udev_get_block_device(mp.sysfs_path)
+            if self.isIgnored(mp_info):
+                mp.teardown()
+                continue
+
             whitelist.append(mp.name)
             for p in mp.parents:
                 whitelist.append(p.name)
-- 
1.7.1.1


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