direct-io.hg

changeset 13684:5b973d94bc00

Fix bootloader handling.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sun Jan 28 18:38:47 2007 +0000 (2007-01-28)
parents a7fc9cc9a51f
children 044c57d0fef2
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Sun Jan 28 18:37:42 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Sun Jan 28 18:38:47 2007 +0000
     1.3 @@ -1661,7 +1661,9 @@ class XendDomainInfo:
     1.4                  log.error(msg)
     1.5                  raise VmError(msg)
     1.6  
     1.7 -            disk = disks[0]
     1.8 +            devinfo = self.info['devices'][disks[0]]
     1.9 +            devtype = devinfo[0]
    1.10 +            disk = devinfo[1]['uname']
    1.11  
    1.12              fn = blkdev_uname_to_file(disk)
    1.13              mounted = devtype == 'tap' and not os.stat(fn).st_rdev