block: Introduce bdrv_driver_preadv()
commit166fe9605128e9dfa2b20dd7cc97c64cc98394e4
authorKevin Wolf <kwolf@redhat.com>
Mon, 25 Apr 2016 09:46:41 +0000 (25 11:46 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:07 +0000 (12 15:22 +0200)
treef4724023dff9aa8ed75a3b818b8b7a41bfdf1c8e
parentdd7f7ed10459d4ed9787ba464cebf8c459491d8c
block: Introduce bdrv_driver_preadv()

This is a function that simply calls into the block driver for doing a
read, providing the byte granularity interface we want to eventually
have everywhere, and using whatever interface that driver supports.

For now, this is just a wrapper for calling bs->drv->bdrv_co_readv().

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
block/io.c