[PATCH] Fix typo and set mpaths' sysfs path before querying udevdb. (#620712)

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

 



This is for rhel6-branch and for master. It's a follow-on to my recent set
of filtering/mpath patches.

---
 storage/devicetree.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index a077e93..b688391 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -2026,8 +2026,9 @@ 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.updateSysfsPath()
+            mp_info = udev_get_block_device(mp.sysfsPath)
+            if mp_info is None or self.isIgnored(mp_info):
                 mp.teardown()
                 continue
 
-- 
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