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 > Redhat > Red Hat Linux

 
 
LinkBack Thread Tools
 
Old 09-13-2008, 07:50 AM
Hans de Goede
 
Default Various iSCSI fixes : anaconda-driveIsIscsi.patch

Hi all,

On newer kernels the symlinks are arranged differently, causing
driveIsIscsi to fail to detect iscsi drives in current rawhide. This
patch fixes this, fixing rh 461839, rh 461841.


Regards,

Hans
On newer kernels the symlinks are arranged differently, causing driveIsIscsi
to fail to detect iscsi drives in current rawhide. This patch fixes this,
fixing rh 461839, rh 461841.

diff --git a/isys/isys.py b/isys/isys.py
index 88a6987..8cec02a 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -893,7 +893,7 @@ def driveIsIscsi(device):
# ewww. just ewww.
if not os.path.islink("/sys/block/%s/device" %(device,)):
return False
- target = os.readlink("/sys/block/%s/device" %(device,))
+ target = os.path.realpath("/sys/block/%s/device" %(device,))
if re.search("/platform/host[0-9]*/session[0-9]*/target[0-9]*:[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*:[0-9]*", target) is not None:
return True
return False
_______________________________________________
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 06:55 PM.

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