From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrcxi-0000tU-WE for qemu-devel@nongnu.org; Fri, 13 Dec 2013 19:20:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vrcxd-0007H2-0b for qemu-devel@nongnu.org; Fri, 13 Dec 2013 19:20:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vrcxc-0007Gw-OA for qemu-devel@nongnu.org; Fri, 13 Dec 2013 19:20:00 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rBE0Jxio022247 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 13 Dec 2013 19:19:59 -0500 Message-ID: <52ABA464.4020102@redhat.com> Date: Sat, 14 Dec 2013 01:20:52 +0100 From: Max Reitz MIME-Version: 1.0 References: <1386954633-28905-1-git-send-email-mreitz@redhat.com> <1386954633-28905-21-git-send-email-mreitz@redhat.com> <20131213205434.GH3916@dhcp-200-207.str.redhat.com> In-Reply-To: <20131213205434.GH3916@dhcp-200-207.str.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 20/22] qapi: QMP interface for blkdebug and blkverify List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Fam Zheng , qemu-devel@nongnu.org, Stefan Hajnoczi On 13.12.2013 21:54, Kevin Wolf wrote: > Am 13.12.2013 um 18:10 hat Max Reitz geschrieben: >> Add structures to support blkdebug and blkverify in blockdev-add. >> >> Signed-off-by: Max Reitz >> --- >> qapi-schema.json | 94 +++++++++++++++++++++++++++++++++++++++++++++++++++++--- >> 1 file changed, 90 insertions(+), 4 deletions(-) >> >> diff --git a/qapi-schema.json b/qapi-schema.json >> index c3c939c..6ce016c 100644 >> --- a/qapi-schema.json >> +++ b/qapi-schema.json >> @@ -4166,6 +4166,94 @@ >> '*pass-discard-other': 'bool' } } >> >> ## >> +# @BlkdebugInjectErrorOptions >> +# >> +# Describes a single error injection for blkdebug. >> +# >> +# @event: trigger event name >> +# >> +# @state: #optional the state identifier blkdebug needs to be in to >> +# actually trigger the event; defaults to "any" >> +# >> +# @error: #optional error identifier (errno) to be returned; defaults to >> +# EIO >> +# >> +# @sector: #optional specifies the sector index which has to be affected >> +# in order to actually trigger the event; defaults to "any >> +# sector" >> +# >> +# @once: #optional disables further events after this one has been >> +# triggered; defaults to false >> +# >> +# @immediately: #optional fail immediately; defaults to false >> +# >> +# Since: 2.0 >> +## >> +{ 'type': 'BlkdebugInjectErrorOptions', >> + 'data': { 'event': 'str', > I bet Eric will tell you that an enum for event would be much nicer. ;-) From my perspective, it isn't that nice, but I see where you are coming from, so I'll do it. ;-) Max