From patchwork Tue Oct 8 09:29:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fam Zheng X-Patchwork-Id: 281379 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB32C2C00B3 for ; Tue, 8 Oct 2013 20:30:49 +1100 (EST) Received: from localhost ([::1]:35458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTTct-0008OU-Fc for incoming@patchwork.ozlabs.org; Tue, 08 Oct 2013 05:30:47 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTTcA-00089E-Gc for qemu-devel@nongnu.org; Tue, 08 Oct 2013 05:30:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTTc3-0007dH-Qx for qemu-devel@nongnu.org; Tue, 08 Oct 2013 05:30:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:15774) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTTc3-0007d9-JQ for qemu-devel@nongnu.org; Tue, 08 Oct 2013 05:29:55 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r989Ts4T031409 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 8 Oct 2013 05:29:55 -0400 Received: from T430s.nay.redhat.com ([10.66.6.118]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r989Tftq007590; Tue, 8 Oct 2013 05:29:51 -0400 From: Fam Zheng To: qemu-devel@nongnu.org Date: Tue, 8 Oct 2013 17:29:39 +0800 Message-Id: <1381224580-14950-3-git-send-email-famz@redhat.com> In-Reply-To: <1381224580-14950-1-git-send-email-famz@redhat.com> References: <1381224580-14950-1-git-send-email-famz@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, stefanha@redhat.com Subject: [Qemu-devel] [PATCH 2/3] qapi: Introduce enum BlockJobType X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This will replace the open coded block job type string for mirror, commit and backup. Signed-off-by: Fam Zheng --- qapi-schema.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index 145eca8..381ffbf 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -1366,6 +1366,24 @@ 'data': ['top', 'full', 'none'] } ## +# @BlockJobType: +# +# Type of a block job. +# +# @commit: block commit job type, see "block-commit" +# +# @stream: block stream job type, see "block-stream" +# +# @mirror: drive mirror job type, see "drive-mirror" +# +# @backup: drive backup job type, see "drive-backup" +# +# Since: 1.7 +## +{ 'enum': 'BlockJobType', + 'data': ['commit', 'stream', 'mirror', 'backup'] } + +## # @BlockJobInfo: # # Information about a long-running block device operation.