Received: from eggs.gnu.org ([2001:4830:134:3::10]:38018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmaQn-0007zT-MY for qemu-devel@nongnu.org; Mon, 19 May 2014 23:09:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmaQj-0005gh-5b for qemu-devel@nongnu.org; Mon, 19 May 2014 23:09:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmaQi-0005gW-UA for qemu-devel@nongnu.org; Mon, 19 May 2014 23:09:29 -0400 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 s4K39RMD021616 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 19 May 2014 23:09:27 -0400 Date: Tue, 20 May 2014 11:09:37 +0800 From: Fam Zheng Message-ID: <20140520030937.GB7688@T430.nay.redhat.com> References: <1399858555-9672-1-git-send-email-famz@redhat.com> <1399858555-9672-3-git-send-email-famz@redhat.com> <537A28FF.5040705@redhat.com> <8761l1lp77.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8761l1lp77.fsf@blackfin.pond.sub.org> Subject: Re: [Qemu-devel] [PATCH v19 02/16] block: Add BlockOpType enum List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster , eblake@redhat.com Cc: kwolf@redhat.com, jcody@redhat.com, hbrock@redhat.com, qemu-devel@nongnu.org, rjones@redhat.com, imain@redhat.com, stefanha@redhat.com, pbonzini@redhat.com On Mon, 05/19 18:15, Markus Armbruster wrote: > Eric Blake writes: > > > On 05/11/2014 07:35 PM, Fam Zheng wrote: > >> This adds the enum of all the operations that can be taken on a block > >> device. > >> > >> Signed-off-by: Fam Zheng > >> Reviewed-by: Benoit Canet > >> Reviewed-by: Jeff Cody > >> --- > >> include/block/block.h | 19 +++++++++++++++++++ > >> 1 file changed, 19 insertions(+) > > > > Is it worth making this a formal QAPI enum, documented in the .json > > file? If we ever add qapi introspection, it might be nice to know when > > new block op types are added as part of the formal qapi definition. > > Moving it into the schema when QAPI needs it shouldn't be hard. > Yes. It was a QAPI enum before v9. The previous discussion about this was in v8 series, where I decided to keep this internal only: http://patchwork.ozlabs.org/patch/300933/ Fam