Wei Kong
2009-Nov-26 02:10 UTC
[Xen-devel] [PATCH][resend] xend: Fix regression when create_vbd for tap
Need get dev type after create tap device as device_create did. Signed-off-by: Wei Kong <weikong.cn@gmail.com> --- a/tools/python/xen/xend/XendDomainInfo.py 2009-11-25 19:10:51.000000000 +0800 +++ b/tools/python/xen/xend/XendDomainInfo.py 2009-11-25 19:20:26.000000000 +0800 @@ -3840,7 +3840,8 @@ class XendDomainInfo: try: devid = dev_control.createDevice(config) - dev_control.waitForDevice(devid) + dev_type = self.getBlockDeviceClass(devid) + self._waitForDevice(dev_type, devid) self.info.device_update(dev_uuid, cfg_xenapi = {''devid'': devid}) except Exception, exn: _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel