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

2013-01-17 Thread Kevin Wolf
Am 15.12.2012 15:09, schrieb Stefan Weil: > 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. > > Signed-off-by: Stefan Weil > --- > block.h |7

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

2012-12-18 Thread Stefan Hajnoczi
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

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

2012-12-15 Thread Stefan Weil
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. Signed-off-by: Stefan Weil --- block.h |7 +++ 1 file changed, 7 insertions(+) diff --git a/bl