[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.4-testing] xend: little fix for tap



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1259310651 0
# Node ID e4697f0154161026dd1caecf33b402b249b57d5e
# Parent  0fe0f26b4ee046e860f9521e88cb111f5c2e5d5c
xend: little fix for tap

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

Signed-off-by: Wei Kong <weikong.cn@xxxxxxxxx>
xen-unstable changeset:   20501:285db3c26655
xen-unstable date:        Thu Nov 26 10:56:49 2009 +0000
---
 tools/python/xen/xend/XendDomainInfo.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 0fe0f26b4ee0 -r e4697f015416 tools/python/xen/xend/XendDomainInfo.py
--- a/tools/python/xen/xend/XendDomainInfo.py   Fri Nov 27 08:29:32 2009 +0000
+++ b/tools/python/xen/xend/XendDomainInfo.py   Fri Nov 27 08:30:51 2009 +0000
@@ -3659,7 +3659,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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.