diff options
author | Kevin Wolf <kwolf@redhat.com> | 2014-07-16 17:48:17 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-07-18 13:18:43 +0100 |
commit | df26a35025427f34c1d4e5a8e51152371a5e231e (patch) | |
tree | ef98a74d356dc8ca383023ea902fbb0d32f9d277 /tests | |
parent | 3baca891391afba154e250f5a108c6bab6c92cf9 (diff) | |
download | qemu-df26a35025427f34c1d4e5a8e51152371a5e231e.zip qemu-df26a35025427f34c1d4e5a8e51152371a5e231e.tar.gz qemu-df26a35025427f34c1d4e5a8e51152371a5e231e.tar.bz2 |
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>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions