commit | df26a35025427f34c1d4e5a8e51152371a5e231e | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Wed Jul 16 17:48:17 2014 +0200 |
committer | Stefan Hajnoczi <stefanha@redhat.com> | Fri Jul 18 13:18:43 2014 +0100 |
tree | ef98a74d356dc8ca383023ea902fbb0d32f9d277 | |
parent | 3baca891391afba154e250f5a108c6bab6c92cf9 [diff] |
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>