direct-io.hg

changeset 15445:182446677b6b

Fix 15435:ab95b9764b20.

The changeset did not consider about ":cdrom" and "ioemu:"
of a disk definition.

Signed-off-by: Masaki Kanno <kanno.masaki@jp.fujitsu.com>
author Ian Campbell <ian.campbell@xensource.com>
date Mon Jul 02 08:42:13 2007 +0100 (2007-07-02)
parents 93b9161fc920
children f85252ce203e
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Mon Jul 02 00:24:59 2007 +0100
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Mon Jul 02 08:42:13 2007 +0100
     1.3 @@ -936,6 +936,13 @@ class XendConfig(dict):
     1.4          return sxpr    
     1.5      
     1.6      def _blkdev_name_to_number(self, dev):
     1.7 +        if 'ioemu:' in dev:
     1.8 +            _, dev = dev.split(':', 1)
     1.9 +        try:
    1.10 +            dev, _ = dev.split(':', 1)
    1.11 +        except ValueError:
    1.12 +            pass
    1.13 +        
    1.14          try:
    1.15              devid = int(dev)
    1.16          except ValueError: