From: "Daniel P. Berrange" Subject: PATCH: Fix SrvDomain.op_save Date: Tue, 1 May 2007 13:06:58 +0100 Message-ID: <20070501120658.GB27924@redhat.com> Reply-To: "Daniel P. Berrange" Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MW5yreqqjyrRcusr" Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The xen.xend.server.SrvDomain class provides an op_save method for saving guests. This just calls into the domain_save method on xen.xend.XenDomain The latter recently gained an extra 'checkpoint' argument, but the SrvDomain class is not providing this. The attached patch simply makes the 'checkpoint' arg default to 'False' if not provided by the caller which makes old calling convention. Signed-off-by: Daniel P. Berrange Regards, Dan. -- |=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=| |=- Perl modules: http://search.cpan.org/~danberr/ -=| |=- Projects: http://freshmeat.net/~danielpb/ -=| |=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=| --MW5yreqqjyrRcusr Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="xen-checkpoint-default.patch" diff -rup xen-3.0.5-testing.hg-rc4/tools/python/xen/xend/XendDomain.py xen-3.0.5-testing.hg-rc4.new/tools/python/xen/xend/XendDomain.py --- xen-3.0.5-testing.hg-rc4/tools/python/xen/xend/XendDomain.py 2007-05-01 08:03:14.000000000 -0400 +++ xen-3.0.5-testing.hg-rc4.new/tools/python/xen/xend/XendDomain.py 2007-05-01 08:03:44.000000000 -0400 @@ -1236,7 +1236,7 @@ class XendDomain: XendCheckpoint.save(sock.fileno(), dominfo, True, live, dst) sock.close() - def domain_save(self, domid, dst, checkpoint): + def domain_save(self, domid, dst, checkpoint=False): """Start saving a domain to file. @param domid: Domain ID or Name --MW5yreqqjyrRcusr Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --MW5yreqqjyrRcusr--