raw-posix: Better error return values for hdev_create
commit57e69b7d4e270883c7b7adb9c5993bb42e13a5ea
authorKevin Wolf <kwolf@redhat.com>
Fri, 12 Mar 2010 12:52:31 +0000 (12 13:52 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 27 Mar 2010 11:00:35 +0000 (27 12:00 +0100)
tree60b540eed75cd84f9a567403991eb163ccf5e486
parent8d533561f6a6f78b00caf138062f174ca6cd55a2
raw-posix: Better error return values for hdev_create

Now that we output an error message according to the returned error code in
qemu-img, let's return the real error codes. "Input/output error" for
everything isn't helpful.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
block/raw-posix.c