qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v5 20/22] qapi: QMP interface for blkdebug and b


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCH v5 20/22] qapi: QMP interface for blkdebug and blkverify
Date: Sat, 14 Dec 2013 01:20:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1

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 <address@hidden>
---
  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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]