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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux