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] [xen-unstable] The legacy HTTP entry point for Xend remo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] The legacy HTTP entry point for Xend remote access didn't hook the
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 22 Nov 2006 11:10:12 +0000
Delivery-date: Wed, 22 Nov 2006 03:09:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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 Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Node ID b80f00215bbaf2050765e557f1a017a71e1e8529
# Parent  08007423788ab86753515756b8142b075162c336
The legacy HTTP entry point for Xend remote access didn't hook the
dump operation for a domain, this patch adds it.

Signed-off-by: Daniel Veillard <veillard@xxxxxxxxxx>
---
 tools/python/xen/xend/server/SrvDomain.py |   12 ++++++++++++
 1 files changed, 12 insertions(+)

diff -r 08007423788a -r b80f00215bba tools/python/xen/xend/server/SrvDomain.py
--- a/tools/python/xen/xend/server/SrvDomain.py Tue Nov 21 16:14:53 2006 +0000
+++ b/tools/python/xen/xend/server/SrvDomain.py Tue Nov 21 17:34:17 2006 +0000
@@ -81,6 +81,18 @@ class SrvDomain(SrvDir):
 
     def do_save(self, _, req):
         return self.xd.domain_save(self.dom.domid, req.args['file'][0])
+
+    def op_dump(self, op, req):
+        self.acceptCommand(req)
+        return req.threadRequest(self.do_dump, op, req)
+
+    def do_dump(self, _, req):
+        fn = FormFn(self.xd.domain_dump,
+                   [['dom',         'int'],
+                    ['file',        'str'],
+                    ['live',        'int'],
+                    ['crash',       'int']])
+        return fn(req.args, {'dom': self.dom.domid})
 
     def op_migrate(self, op, req):
         return req.threadRequest(self.do_migrate, op, req)

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] The legacy HTTP entry point for Xend remote access didn't hook the, Xen patchbot-unstable <=