qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 1/4] block: Add special error code for wrong for


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH 1/4] block: Add special error code for wrong format
Date: Tue, 18 Dec 2012 15:34:23 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Dec 15, 2012 at 03:09:30PM +0100, Stefan Weil wrote:
> The block drivers normally return -errno for typical errors.
> There is no appropriate error code for "wrong format", so
> use a special error code which does not conflict with system
> error codes.

ENOTTY is used when something is of the wrong type.  Since the name
"ENOTTY" is not clear, defining a new error code makes sense though.

Stefan



reply via email to

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