From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33531) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0jGJ-0002x5-HD for qemu-devel@nongnu.org; Tue, 07 Jan 2014 21:53:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0jGC-0005FK-Ni for qemu-devel@nongnu.org; Tue, 07 Jan 2014 21:52:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0jGC-0005FG-F6 for qemu-devel@nongnu.org; Tue, 07 Jan 2014 21:52:48 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s082qlBL031219 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 7 Jan 2014 21:52:47 -0500 From: Fam Zheng Date: Wed, 8 Jan 2014 10:52:11 +0800 Message-Id: <1389149541-9829-2-git-send-email-famz@redhat.com> In-Reply-To: <1389149541-9829-1-git-send-email-famz@redhat.com> References: <1389149541-9829-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v9 01/11] qapi: Add BlockOperationType enum List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, rjones@redhat.com, armbru@redhat.com, imain@redhat.com, stefanha@redhat.com, pbonzini@redhat.com This adds the enum of all the operations that can be taken on a block device. Signed-off-by: Fam Zheng --- qapi-schema.json | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index c3c939c..288d024 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1440,6 +1440,56 @@ 'data': ['commit', 'stream', 'mirror', 'backup'] } ## +# @BlockOperationType +# +# Type of a block operation. (since 2.0) +# +# @backup-source: As a backup source. See the 'drive-backup' command. +# +# @backup-target: As a backup target. See the 'drive-backup' command. +# +# @change: See the 'change' command. +# +# @commit: See the 'block-commit' command. +# +# @dataplane: The virtio-blk dataplane feature. +# +# @drive-del: See the 'drive_del' HMP command. +# +# @eject: See the 'eject' command. +# +# @external-snapshot: See the 'blockdev-snapshot-sync' command. +# +# @internal-snapshot: See the 'blockdev-snapshot-internal-sync' command. +# +# @internal-snapshot-delete: See the 'blockdev-snapshot-delete-internal-sync' command. +# +# @mirror: See the 'drive-mirror' command. +# +# @resize: See the 'block-resize' command. +# +# @stream: See the 'block-stream' command. +# +# Since: 2.0 +## +{ 'enum': 'BlockOpType', + 'data': [ + 'backup-source', + 'backup-target', + 'change', + 'commit', + 'dataplane', + 'drive-del', + 'eject', + 'external-snapshot', + 'internal-snapshot', + 'internal-snapshot-delete', + 'mirror', + 'resize', + 'stream' +] } + +## # @BlockJobInfo: # # Information about a long-running block device operation. -- 1.8.5.1