[Top][All Lists]

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

Re: [Qemu-block] [PATCH v1 1/1] block: Add numeric errno field to BLOCK_

From: Kevin Wolf
Subject: Re: [Qemu-block] [PATCH v1 1/1] block: Add numeric errno field to BLOCK_IO_ERROR events
Date: Fri, 22 Dec 2017 14:52:08 +0100
User-agent: Mutt/1.9.1 (2017-09-22)

Am 22.12.2017 um 01:11 hat Jack Schwartz geschrieben:
> BLOCK_IO_ERROR events currently contain a "reason" string which is
> strerror(errno) of the error.  This enhancement provides those events with
> the numeric errno value as well, since it is easier to parse for error type
> than a string.
> Signed-off-by: Jack Schwartz <address@hidden>
> Reviewed-by: Konrad Rzeszutek Wilk <address@hidden>
> Reviewed-by: Karl Heubaum <address@hidden>

Apart from the technical details that Eric mentioed, I wonder what is
your use case for this?

Exposing errors in a machine readable form was discussed earlier, and
the result was that nobody had an actual use for error codes other than
presenting the right error message to the user - which the error string
already achieves.

The only exception so far was ENOSPC, which some management tools like
oVirt respond to by increasing the volume size, so this was mapped into
a bool.


reply via email to

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