All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: Kevin Wolf <kwolf@redhat.com>, Luiz Capitulino <lcapitulino@redhat.com>
Cc: fromani@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com
Subject: Re: [Qemu-devel] [PATCH] block: extend BLOCK_IO_ERROR event with nospace indicator
Date: Tue, 09 Sep 2014 06:37:31 -0600	[thread overview]
Message-ID: <540EF48B.5090705@redhat.com> (raw)
In-Reply-To: <20140909082733.GD4847@noname.str.redhat.com>

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

On 09/09/2014 02:27 AM, Kevin Wolf wrote:

>>>
>>> What was our conclusion wrt the human-readable strerror() string for
>>> debugging? Didn't we want to add that as well?
>>
>> I can do it on top of this patch. So, just adding a new field for this
>> is fine?
> 
> I think so. Perhaps we should give it an 'x-' name to make clear that
> it's a debugging help and not supposed to be parsed by management tools.
> Or would that be abuse of that namespace?

I think using x- would be okay for the namespace, but am not sure we
need to go that far.  We already have other fields without x- that are
documented as human-readable only; for example, CommandLineParameterInfo
has:

# @help: #optional human readable text string, not suitable for parsing.

or in our events, QUORUM_REPORT_BAD has:

# @error: #optional, error message. Only present on failure. This field
#         contains a human-readable error message. There are no
semantics other
#         than that the block layer reported an error and clients should not
#         try to interpret the error string.

So I'd be fine with something as simple as 'message' or 'error'.

> 
> The alternative solution (or actually we could do both) would be to
> store it somewhere in bs and put it into query-block.

Enhancing query-block in addition to the event makes sense, if it is
easy enough to do.  At this point, we are talking about debugging aids,
so as long as they are documented appropriately, I won't be too fussy.

-- 
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 --]

  reply	other threads:[~2014-09-09 12:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-29 20:07 [Qemu-devel] [PATCH] block: extend BLOCK_IO_ERROR event with nospace indicator Luiz Capitulino
2014-08-29 20:33 ` Eric Blake
2014-09-08 14:42 ` Luiz Capitulino
2014-09-08 15:33   ` Kevin Wolf
2014-09-08 16:57     ` Luiz Capitulino
2014-09-09  8:27       ` Kevin Wolf
2014-09-09 12:37         ` Eric Blake [this message]
2014-09-09 12:43           ` Luiz Capitulino
2014-09-09 12:53             ` Eric Blake
2014-09-09 13:23               ` Kevin Wolf
2014-09-09 13:42                 ` Luiz Capitulino

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=540EF48B.5090705@redhat.com \
    --to=eblake@redhat.com \
    --cc=armbru@redhat.com \
    --cc=fromani@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=lcapitulino@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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.