From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=33623 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PxLSa-0003cq-7Y for qemu-devel@nongnu.org; Wed, 09 Mar 2011 10:38:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PxLSY-00063Z-VA for qemu-devel@nongnu.org; Wed, 09 Mar 2011 10:38:00 -0500 Received: from mx1.redhat.com ([209.132.183.28]:2238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PxLSY-00063N-KM for qemu-devel@nongnu.org; Wed, 09 Mar 2011 10:37:58 -0500 From: Jes.Sorensen@redhat.com Date: Wed, 9 Mar 2011 16:37:41 +0100 Message-Id: <1299685061-24234-1-git-send-email-Jes.Sorensen@redhat.com> Subject: [Qemu-devel] [PATCH] QMP: add snapshot_blkdev_sync command List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: lcapitulino@redhat.com From: Jes Sorensen Add QMP bits for snapshot_blkdev_sync command. This is the same as snapshot_blkdev in the human monitor, but added _sync to the name to make it explicit that the command is synchronous and leave space for a future async version. Signed-off-by: Jes Sorensen --- qmp-commands.hx | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/qmp-commands.hx b/qmp-commands.hx index 9d3cc31..e32187e 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -667,6 +667,25 @@ Example: EQMP { + .name = "snapshot_blkdev_sync", + .args_type = "device:B,snapshot_file:s?,format:s?", + .params = "device [new-image-file] [format]", + .help = "initiates a live snapshot\n\t\t\t" + "of device. If a new image file is specified, the\n\t\t\t" + "new image file will become the new root image.\n\t\t\t" + "If format is specified, the snapshot file will\n\t\t\t" + "be created in that format. Otherwise the\n\t\t\t" + "snapshot will be internal! (currently unsupported)", + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_snapshot_blkdev, + }, + +SQMP +Synchronous snapshot of block device, using snapshot file as target +if provided. +EQMP + + { .name = "balloon", .args_type = "value:M", .params = "target", -- 1.7.4