* [PATCH] xend: fix vscsi error path
@ 2009-03-19 16:24 Christoph Egger
0 siblings, 0 replies; only message in thread
From: Christoph Egger @ 2009-03-19 16:24 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 493 bytes --]
Hi,
attached patch fixes xend start problem on non-Linux Dom0 where
/proc/mount doesn't exist. The error path was obviously not tested.
Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
--
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Jochen Polster, Thomas M. McCoy, Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632
[-- Attachment #2: xend_vscsi.diff --]
[-- Type: text/x-diff, Size: 583 bytes --]
diff -r 633e08774dab tools/python/xen/util/vscsi_util.py
--- a/tools/python/xen/util/vscsi_util.py Thu Mar 19 14:01:56 2009 +0000
+++ b/tools/python/xen/util/vscsi_util.py Thu Mar 19 17:20:23 2009 +0100
@@ -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:
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-03-19 16:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-19 16:24 [PATCH] xend: fix vscsi error path Christoph Egger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.