All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Add dump entry point to Xend via HTTP
@ 2006-11-21 17:28 Daniel Veillard
  2006-11-21 17:34 ` Ewan Mellor
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Veillard @ 2006-11-21 17:28 UTC (permalink / raw)
  To: xen-devel

  The legacy HTTP entry point for Xend remote access didn't hook the 
dump operation for a domain, this patch adds it,

Daniel

Signed-off-by: Daniel Veillard <veillard@redhat.com>

--------------------------------------------------------------
diff -r c677f4e75608 tools/python/xen/xend/server/SrvDomain.py
--- a/tools/python/xen/xend/server/SrvDomain.py	Thu Nov 16 11:11:17 2006 +0000
+++ b/tools/python/xen/xend/server/SrvDomain.py	Tue Nov 21 17:49:17 2006 +0100
@@ -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)
--------------------------------------------------------------

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

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

end of thread, other threads:[~2006-11-21 17:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-21 17:28 [PATCH] Add dump entry point to Xend via HTTP Daniel Veillard
2006-11-21 17:34 ` Ewan Mellor
2006-11-21 17:42   ` Daniel Veillard

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.