Skip to contentSkip to conversation

xend: Fix regression when create_vbd for tap

PATCH RESEND New Wei Kong 1 participant 1 message Nov 26, 2009

lore
Share & tools
lore

Wei Kong

author
#0 lore raw

PATCH RESEND 1/1 xend: Fix regression when create_vbd for tap

Need get dev type after create tap device as device_create did.

--- 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
[email protected]
http://lists.xensource.com/xen-devel