|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] Exception in xen/util/vscsi_util.py while
# HG changeset patch
# User "Dube, Lutz" <lutz.dube@xxxxxxxxxxxxxx>
# Date 1281529085 -3600
# Node ID fffedd3d70e14abf2e487c109937d0090adcfebc
# Parent 3bbca5d4784055a470e110f6dcb632bdc5a40f17
Exception in xen/util/vscsi_util.py while starting xend
?
We have pscsi device with long scsi ids like 15:0:11:101.
In this case lsscsi prints no "blank" between id and type,
so the following split of the string returns wrong output.
The field physical_HCTL is set to 15:0:11:101]dis.
The patch replaces char "]" by "] ", so split() will return the right
physical_HTCL.
Signed-off-by: Lutz Dube Lutz.Dube@xxxxxxxxxxxxxx
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---
tools/python/xen/util/vscsi_util.py | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -r 3bbca5d47840 -r fffedd3d70e1 tools/python/xen/util/vscsi_util.py
--- a/tools/python/xen/util/vscsi_util.py Wed Aug 11 13:09:22 2010 +0100
+++ b/tools/python/xen/util/vscsi_util.py Wed Aug 11 13:18:05 2010 +0100
@@ -97,7 +97,7 @@ def _vscsi_get_scsidevices_by_lsscsi(opt
devices = []
for scsiinfo in os.popen('{ lsscsi -g %s; } 2>/dev/null' %
option).readlines():
- s = scsiinfo.split()
+Â Â Â Â Â Â Â s = scsiinfo.replace(']', '] ').split()
hctl = s[0][1:-1]
try:
devname = s[-2].split('/dev/')[1]
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] Exception in xen/util/vscsi_util.py while starting xend,
Xen patchbot-unstable <=
|
|
|
|
|