Fix CS15435: duplication definition check for devices
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.
Signed-off-by Masaki Kanno <[email protected]>
Best regards,
Kan
tools/python/xen/xend/XendConfig.py +7 -0
@@ -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
Ian Campbell
AppliedQuoted 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.