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] Force the devid given to destroyDevice to an integer. Th

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Force the devid given to destroyDevice to an integer. This means that that
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sun, 30 Oct 2005 22:34:16 +0000
Delivery-date: Sun, 30 Oct 2005 22:33:00 +0000
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/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/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 emellor@xxxxxxxxxxxxxxxxxxxxxx
# Node ID e0ea9320c3513b78c3aca003ba904cb9d1798d41
# Parent  1ce76b214ce2c1a420ebd2b38052939400e20a1b
Force the devid given to destroyDevice to an integer.  This means that that
method copes with the values given to xm network-detach without netif.py having
to intervene. 

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>

diff -r 1ce76b214ce2 -r e0ea9320c351 
tools/python/xen/xend/server/DevController.py
--- a/tools/python/xen/xend/server/DevController.py     Sun Oct 30 15:35:06 2005
+++ b/tools/python/xen/xend/server/DevController.py     Sun Oct 30 15:43:52 2005
@@ -74,6 +74,8 @@
         other tasks on destruction.
         """
 
+        devid = int(devid)
+        
         frontpath = self.frontendPath(devid)
         backpath = xstransact.Read(frontpath, "backend")
 

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Force the devid given to destroyDevice to an integer. This means that that, Xen patchbot -unstable <=