]> git.proxmox.com Git - mirror_qemu.git/commit
raw-posix: Fail gracefully if no working alignment is found
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 Jul 2014 15:48:17 +0000 (17:48 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 18 Jul 2014 12:18:43 +0000 (13:18 +0100)
commitdf26a35025427f34c1d4e5a8e51152371a5e231e
treeef98a74d356dc8ca383023ea902fbb0d32f9d277
parent3baca891391afba154e250f5a108c6bab6c92cf9
raw-posix: Fail gracefully if no working alignment is found

If qemu couldn't find out what O_DIRECT alignment to use with a given
file, it would run into assert(bdrv_opt_mem_align(bs) != 0); in block.c
and confuse users. This adds a more descriptive error message for such
cases.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/raw-posix.c