From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrNIQ-0005P2-0e for qemu-devel@nongnu.org; Fri, 13 Dec 2013 02:36:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VrNIJ-0005ek-W1 for qemu-devel@nongnu.org; Fri, 13 Dec 2013 02:36:25 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55675) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VrNIJ-0005eg-Nj for qemu-devel@nongnu.org; Fri, 13 Dec 2013 02:36:19 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rBD7ZpYD024879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 Dec 2013 02:35:54 -0500 From: Fam Zheng Date: Fri, 13 Dec 2013 15:35:10 +0800 Message-Id: <1386920120-2651-3-git-send-email-famz@redhat.com> In-Reply-To: <1386920120-2651-1-git-send-email-famz@redhat.com> References: <1386920120-2651-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v8 02/12] 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 d6f8615..8e982a2 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