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] If block-create didn't work, then chances are block-dest

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] If block-create didn't work, then chances are block-destroy doesn't work
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 13 Aug 2005 05:06:12 -0400
Delivery-date: Sat, 13 Aug 2005 09:07:05 +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 kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 058e8087d36ab686e3ea7a873edf66d094b986d9
# Parent  f056b0cc171e2dade56b40ca9e464f9103849b38
If block-create didn't work, then chances are block-destroy doesn't work 
either right :-)

In this case, XendDomain.py is just calling a function that doesn't 
exist (device_destroy instead of device_delete).

Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>

diff -r f056b0cc171e -r 058e8087d36a tools/python/xen/xend/server/controller.py
--- a/tools/python/xen/xend/server/controller.py        Sat Aug 13 09:06:20 2005
+++ b/tools/python/xen/xend/server/controller.py        Sat Aug 13 09:06:44 2005
@@ -325,7 +325,7 @@
         return self.destroyed
 
     def getDevice(self, id, error=False):
-        dev = self.devices.get(id)
+        dev = self.devices.get(int(id))
         if error and not dev:
             raise XendError("invalid device id: " + str(id))
         return dev

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] If block-create didn't work, then chances are block-destroy doesn't work, Xen patchbot -unstable <=