Skip to contentSkip to conversation

Fix CS15435: duplication definition check for devices

PATCH Applied Masaki Kanno 2 participants 2 messages Jul 2, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix CS15435: duplication definition check for devices

Hi,

I fixed the cdrom problem included in changeset 15435. The changeset did not consider about ":cdrom" and "ioemu:" of a disk definition.

Best regards,
Kan

tools/python/xen/xend/XendConfig.py +7 -0
diff -r 713bac7cba46 tools/python/xen/xend/XendConfig.py
@@ -936,6 +936,13 @@ class XendConfig(dict):
         return sxpr    
     
     def _blkdev_name_to_number(self, dev):
+        if 'ioemu:' in dev:
+            _, dev = dev.split(':', 1)
+        try:
+            dev, _ = dev.split(':', 1)
+        except ValueError:
+            pass
+        
         try:
             devid = int(dev)
         except ValueError:

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

Applied
#1 lore raw
Quoted 3 lines · Masaki Kanno

I fixed the cdrom problem included in changeset 15435. The changeset did not consider about ":cdrom" and "ioemu:" of a disk definition.

Applied, thanks.

Ian.