From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Denemark Subject: [PATCH] Test tap devices in testDeviceComplete() Date: Tue, 10 Mar 2009 10:19:23 +0100 Message-ID: <20090310091923.GA6865@orkuz.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5mCyUwZo2JvN/JJP" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, XendDomainInfo.testDeviceComplete() should check block devices have shutdown correctly but it only considers vbd class devices and ignores tap devices. The attached patch changes testDeviceComplete() to wait for both vbd and tap devices to be shutdown correctly. Signed-off-by: Jiri Denemark --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xend-check-released-tap-devices.patch" diff -r b249f3e979a5 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Mon Mar 09 10:32:24 2009 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Tue Mar 10 09:59:16 2009 +0100 @@ -2888,7 +2888,9 @@ while True: test = 0 diff = time.time() - start - for i in self.getDeviceController('vbd').deviceIDs(): + vbds = self.getDeviceController('vbd').deviceIDs() + taps = self.getDeviceController('tap').deviceIDs() + for i in vbds + taps: test = 1 log.info("Dev %s still active, looping...", i) time.sleep(0.1) --5mCyUwZo2JvN/JJP Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --5mCyUwZo2JvN/JJP--