posix-aio-compat: Allow read after EOF
authorKevin Wolf <kwolf@redhat.com>
Mon, 25 Jul 2011 17:42:37 +0000 (19:42 +0200)
committerKevin Wolf <kwolf@redhat.com>
Tue, 2 Aug 2011 13:53:41 +0000 (15:53 +0200)
commit5bc7028db68fc03255dc1e5ca1f75aa3321d65ac
treeef588f40db43bf62d0ba098b6a99b4b69888d68e
parent3366427cacdb8b9c83772b1056fda06739fab500
posix-aio-compat: Allow read after EOF

In order to be able to transparently replace bdrv_read calls by bdrv_co_read,
reading beyond EOF must produce zeros instead of short reads for AIO, too.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
posix-aio-compat.c