From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjjEx-0007SK-4E for qemu-devel@nongnu.org; Fri, 22 Nov 2013 00:25:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjjEn-0004ZE-Vc for qemu-devel@nongnu.org; Fri, 22 Nov 2013 00:25:15 -0500 Received: from mx1.redhat.com ([209.132.183.28]:62798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjjEn-0004Xa-Nh for qemu-devel@nongnu.org; Fri, 22 Nov 2013 00:25:05 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rAM5P4b7032138 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 22 Nov 2013 00:25:05 -0500 From: Fam Zheng Date: Fri, 22 Nov 2013 13:24:48 +0800 Message-Id: <1385097894-1380-2-git-send-email-famz@redhat.com> In-Reply-To: <1385097894-1380-1-git-send-email-famz@redhat.com> References: <1385097894-1380-1-git-send-email-famz@redhat.com> Subject: [Qemu-devel] [PATCH v4 1/7] 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, hbrock@redhat.com, rjones@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 | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 83fa485..4656e8c 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1440,6 +1440,31 @@ 'data': ['commit', 'stream', 'mirror', 'backup'] } ## +# @BlockOperationType +# Type of a block operation. +# +# Since: 1.8 +## +{ 'enum': 'BlockOpType', + 'data': [ + 'backup', + 'change', + 'commit', + 'dataplane', + 'drive-del', + 'eject', + 'external-snapshot', + 'internal-snapshot', + 'internal-snapshot-delete', + 'mirror', + 'nbd-server-add', + 'passwd', + 'resize', + 'set-io-throttle', + 'stream' +] } + +## # @BlockJobInfo: # # Information about a long-running block device operation. -- 1.8.4.2