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-devel

[Xen-devel] [PATCH][resend] xend: Fix regression when create_vbd for tap

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH][resend] xend: Fix regression when create_vbd for tap
From: Wei Kong <weikong.cn@xxxxxxxxx>
Date: Thu, 26 Nov 2009 10:10:56 +0800
Delivery-date: Wed, 25 Nov 2009 18:11:28 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=QnhHU0iIPCXQLlRP3VAfUAdyblSz3rGoBYej8n1dnow=; b=XgBBvXCr9J/vnU8/RywVqGhGnDrSDxOw++iElhTNdpEj0/IJfBIE1Nrz3cKRx1i+Un vliuFUZJSLVxUFu3oaKw2ZPwEV8dF6sqMbm+RP1IIdwN1bluTPH0ryndjMVkyznWWnWG J+4tP3H1zKROjXWMzGLInZM/IWLndB0RD9WtE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ekXI89HZP5ZGcsWu8m9nZ9bM4FkvpyP/5DoAQd0eZLDbuHQbjW0p/Nh876AlsvwNVk xKaC4EZJp1mUkYpRgyoo74S+cT1HCJhV7Jds5uzvvSRd++6Q4m3Rs6FiW65HWqdqvKBs /RnU9F+XXeeOUvYZWhYgcF0AUHDPfKHOZeMMY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH][resend] xend: Fix regression when create_vbd for tap, Wei Kong <=