From 230096f8fe835dc7814028643bb6feaa08bda5c5 Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Mon, 9 Sep 2013 14:28:06 +0200 Subject: [PATCH 15/38] qapi-schema: Use BlockdevSnapshot type for blockdev-snapshot-sync RH-Author: Kevin Wolf Message-id: <1378736903-18489-16-git-send-email-kwolf@redhat.com> Patchwork-id: 54202 O-Subject: [RHEL-7.0 qemu-kvm PATCH 15/32] qapi-schema: Use BlockdevSnapshot type for blockdev-snapshot-sync Bugzilla: 1005818 RH-Acked-by: Fam Zheng RH-Acked-by: Max Reitz RH-Acked-by: Miroslav Rezanina Bugzilla: 1005818 We don't have to duplicate the definition any more now that we may refer to a type instead. Signed-off-by: Kevin Wolf Reviewed-by: Michael Roth Signed-off-by: Luiz Capitulino (cherry picked from commit 852ad1a900a4ae23514e1a53c86632543592c31b) Signed-off-by: Kevin Wolf --- qapi-schema.json | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) Signed-off-by: Miroslav Rezanina --- qapi-schema.json | 14 ++------------ 1 files changed, 2 insertions(+), 12 deletions(-) diff --git a/qapi-schema.json b/qapi-schema.json index 8dca641..3936337 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1650,16 +1650,7 @@ # # Generates a synchronous snapshot of a block device. # -# @device: the name of the device to generate the snapshot from. -# -# @snapshot-file: the target of the new image. If the file exists, or if it -# is a device, the snapshot will be created in the existing -# file/device. If does not exist, a new file will be created. -# -# @format: #optional the format of the snapshot image, default is 'qcow2'. -# -# @mode: #optional whether and how QEMU should create a new image, default is -# 'absolute-paths'. +# For the arguments, see the documentation of BlockdevSnapshot. # # Returns: nothing on success # If @device is not a valid block device, DeviceNotFound @@ -1667,8 +1658,7 @@ # Since 0.14.0 ## { 'command': 'blockdev-snapshot-sync', - 'data': { 'device': 'str', 'snapshot-file': 'str', '*format': 'str', - '*mode': 'NewImageMode'} } + 'data': 'BlockdevSnapshot' } ## # @human-monitor-command: -- 1.7.1