block: Introduce bdrv_driver_pwritev()
commit78a07294d51c6575441ab058ed56de5d364d2833
authorKevin Wolf <kwolf@redhat.com>
Mon, 25 Apr 2016 10:13:39 +0000 (25 12:13 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 12 May 2016 13:22:07 +0000 (12 15:22 +0200)
tree38c4c26c3ed9754e67d00768d7105ddde725bfd7
parent166fe9605128e9dfa2b20dd7cc97c64cc98394e4
block: Introduce bdrv_driver_pwritev()

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

This one is a bit more interesting than the version for reads: It adds
support for .bdrv_co_writev_flags() everywhere, so that drivers
implementing this function can drop .bdrv_co_writev() now.

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
block/iscsi.c
block/nbd.c
block/raw_bsd.c