FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 08-04-2010, 03:56 PM
David Lehman
 
Default Fix typo and set mpaths' sysfs path before querying udevdb. (#620712)

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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:47 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org