ia64/xen-unstable

changeset 11904:f5321161c649

[XEND] Two small fixes/improvements from Glauber de Oliveira Costa.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Oct 19 15:53:12 2006 +0100 (2006-10-19)
parents a855c7d3a536
children a77e38f63785
files tools/python/xen/xend/XendDomainInfo.py tools/python/xen/xend/server/blkif.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Thu Oct 19 15:49:16 2006 +0100
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Thu Oct 19 15:53:12 2006 +0100
     1.3 @@ -392,6 +392,8 @@ def parseConfig(config):
     1.4              log.warn("Ignoring malformed and deprecated config option "
     1.5                       "restart = %s", restart)
     1.6  
     1.7 +    result['start_time'] = get_cfg('start_time', float)
     1.8 +
     1.9      log.debug("parseConfig: result is %s", result)
    1.10      return result
    1.11  
     2.1 --- a/tools/python/xen/xend/server/blkif.py	Thu Oct 19 15:49:16 2006 +0100
     2.2 +++ b/tools/python/xen/xend/server/blkif.py	Thu Oct 19 15:53:12 2006 +0100
     2.3 @@ -81,6 +81,9 @@ class BlkifController(DevController):
     2.4                           'acm_policy' : policy})
     2.5  
     2.6          devid = blkif.blkdev_name_to_number(dev)
     2.7 +        if not devid:
     2.8 +            raise VmError('Unable to find number for device (%s)' % (dev))
     2.9 +
    2.10          front = { 'virtual-device' : "%i" % devid,
    2.11                    'device-type' : dev_type
    2.12                  }