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