WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] xend: little fix for tap
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Nov 2009 00:40:54 -0800
Delivery-date: Fri, 27 Nov 2009 00:42:16 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-3.4-testing] xend: little fix for tap, Xen patchbot-3.4-testing <=