From: john.levon@sun.com Subject: [PATCH] Allow libvirt to specify force, rm_cfg Date: Tue, 11 Mar 2008 14:30:42 -0700 Message-ID: <0e070c63a5ce10cc6743.1205271042@hatchback> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: 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 # HG changeset patch # User john.levon@sun.com # Date 1205267286 25200 # Node ID 0e070c63a5ce10cc67431b6c239d085676ce2258 # Parent af2f196422b6d9d90aa1b37da7f4bc699cee7dd9 Allow libvirt to specify force, rm_cfg When doing a 'virsh detach-disk' on a running domain, the disk is not removed from the configuration file. Allow a caller to specify whether or not to change the file. Signed-off-by: Ryan Scott diff --git a/tools/python/xen/xend/server/SrvDomain.py b/tools/python/xen/xend/server/SrvDomain.py --- a/tools/python/xen/xend/server/SrvDomain.py +++ b/tools/python/xen/xend/server/SrvDomain.py @@ -186,7 +186,9 @@ class SrvDomain(SrvDir): def op_device_destroy(self, _, req): return self.call(self.dom.destroyDevice, [['type', 'str'], - ['dev', 'str']], + ['dev', 'str'], + ['force', 'int'], + ['rm_cfg', 'int']], req) def op_device_configure(self, _, req):