]> git.proxmox.com Git - qemu.git/commit
block: Add special error code for wrong format
authorStefan Weil <sw@weilnetz.de>
Thu, 17 Jan 2013 20:45:24 +0000 (21:45 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 25 Jan 2013 17:18:35 +0000 (18:18 +0100)
commit02582abd48aa3d860015e9a8fcd0d7ec1c34ec62
treec943fd4b33d7a1fec2854086c00bbd29f7617159
parent884fea4e87fbc6daf4e6df618bb3cadc188dcc6b
block: Add special error code for wrong format

The block drivers need a special error code for "wrong format".
From the available error codes EMEDIUMTYPE fits best.
It is not available on all platforms, so a definition in
qemu-common.h and a specific error report are needed.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c
include/qemu-common.h