ia64/xen-unstable

changeset 19409:2b61a1ee35ee

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@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Mar 20 08:42:59 2009 +0000 (2009-03-20)
parents b7f7fb22210e
children 3dcb5ad8be0c
files tools/python/xen/util/vscsi_util.py
line diff
     1.1 --- a/tools/python/xen/util/vscsi_util.py	Fri Mar 20 08:42:14 2009 +0000
     1.2 +++ b/tools/python/xen/util/vscsi_util.py	Fri Mar 20 08:42:59 2009 +0000
     1.3 @@ -112,7 +112,10 @@ def _vscsi_get_scsidevices_by_sysfs():
     1.4      """ get all scsi devices information by sysfs """
     1.5  
     1.6      devices = []
     1.7 -    sysfs_mnt = utils.find_sysfs_mount() 
     1.8 +    try:
     1.9 +        sysfs_mnt = utils.find_sysfs_mount() 
    1.10 +    except:
    1.11 +        return devices
    1.12  
    1.13      for dirpath, dirnames, files in os.walk(sysfs_mnt + SYSFS_SCSI_PATH):
    1.14          for hctl in dirnames: