All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Test tap devices in testDeviceComplete()
@ 2009-03-10  9:19 Jiri Denemark
  2009-03-10  9:31 ` Christoph Egger
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Denemark @ 2009-03-10  9:19 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

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 <jdenemar@redhat.com>

[-- Attachment #2: xend-check-released-tap-devices.patch --]
[-- Type: text/plain, Size: 673 bytes --]

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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-10 10:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-10  9:19 [PATCH] Test tap devices in testDeviceComplete() Jiri Denemark
2009-03-10  9:31 ` Christoph Egger
2009-03-10  9:57   ` Jiri Denemark
2009-03-10 10:01   ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.