All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Stefan Hajnoczi <stefanha@redhat.com>, qemu-devel@nongnu.org
Cc: Kevin Wolf <kwolf@redhat.com>, John Snow <jsnow@redhat.com>,
	Max Reitz <mreitz@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] docs: add blkdebug block driver documentation
Date: Mon, 22 Sep 2014 11:05:42 -0600	[thread overview]
Message-ID: <542056E6.2000300@redhat.com> (raw)
In-Reply-To: <1411377623-11420-1-git-send-email-stefanha@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1917 bytes --]

On 09/22/2014 03:20 AM, Stefan Hajnoczi wrote:
> The blkdebug block driver is undocumented.  Documenting it is worthwhile
> since it offers powerful error injection features that are used by
> qemu-iotests test cases.
> 
> This document will make it easier for people to learn about and use
> blkdebug.
> 
> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
> ---
>  docs/blkdebug.txt | 142 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 142 insertions(+)
>  create mode 100644 docs/blkdebug.txt
> 
> diff --git a/docs/blkdebug.txt b/docs/blkdebug.txt
> new file mode 100644
> index 0000000..7e616e0
> --- /dev/null
> +++ b/docs/blkdebug.txt
> @@ -0,0 +1,142 @@

No worse than many other files in this directory for omitting copyright
and license information (which means it inherits the default of GPLv2+
from the top-level).

> +
> +Rules can be placed in a .ini file:

Choice of article depends on whether you pronounce it "a dot-innie" or
"an eye-en-eye" file.

> +
> +  $ cat blkdebug.conf

This file suffix is not '.ini'.  So the idea is more that it is a
configuration file that uses '.ini' style parsing, and not that it is an
actual '.ini' file.

> +  [inject-error]
> +  event = "read_aio"
> +  errno = "28"
> +
> +This rule fails all aio read requests with ENOSPC (28).

Eeesh - we are really tying things to host-dependent errno values?
Might be worth a paragraph explaining that ENOSPC is not always 28.  Or
a design improvement to the setup to allow symbolic naming of the
desired actions. Or both.

> +
> +  errno - the POSIX errno value to return when a request matches this rule
> +

Again, POSIX doesn't proscribe errno values, just symbolic names; and
those names differ in values across different OS.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 539 bytes --]

      parent reply	other threads:[~2014-09-22 17:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22  9:20 [Qemu-devel] [PATCH] docs: add blkdebug block driver documentation Stefan Hajnoczi
2014-09-22 10:16 ` Paolo Bonzini
2014-09-22 17:05 ` Eric Blake [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=542056E6.2000300@redhat.com \
    --to=eblake@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mreitz@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.