|
|
![](http://www.xen.org/images/globals/pixel.gif) |
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xend: fix vscsi error path
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1237538579 0
# Node ID 2b61a1ee35eec234545413c0027ff0347daba0eb
# Parent b7f7fb22210e3707d456731a4b0c2cc843221a2b
xend: fix vscsi error path
Fix xend start problem on non-Linux Dom0 where /proc/mount doesn't exist.
Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx>
---
tools/python/xen/util/vscsi_util.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletion(-)
diff -r b7f7fb22210e -r 2b61a1ee35ee tools/python/xen/util/vscsi_util.py
--- a/tools/python/xen/util/vscsi_util.py Fri Mar 20 08:42:14 2009 +0000
+++ b/tools/python/xen/util/vscsi_util.py Fri Mar 20 08:42:59 2009 +0000
@@ -112,7 +112,10 @@ def _vscsi_get_scsidevices_by_sysfs():
""" get all scsi devices information by sysfs """
devices = []
- sysfs_mnt = utils.find_sysfs_mount()
+ try:
+ sysfs_mnt = utils.find_sysfs_mount()
+ except:
+ return devices
for dirpath, dirnames, files in os.walk(sysfs_mnt + SYSFS_SCSI_PATH):
for hctl in dirnames:
_______________________________________________
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] xend: fix vscsi error path,
Xen patchbot-unstable <=
|
|
|
|
|