block: Introduce bdrv_co_do_preadv()
authorKevin Wolf <kwolf@redhat.com>
Mon, 2 Dec 2013 15:09:46 +0000 (16:09 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 24 Jan 2014 16:40:02 +0000 (17:40 +0100)
commit1b0288ae7fc695a8e652973f75e92464bbc13416
treeea5c8c95ed48aa5de2f967e13187b03779970804
parentd0c7f642f5eb2cb21d0c3acf766cb375eaaf4666
block: Introduce bdrv_co_do_preadv()

Similar to bdrv_pread(), which aligns byte-aligned request to 512 byte
sectors, bdrv_co_do_preadv() takes a byte-aligned request and aligns it
to the alignment specified in bs->request_alignment.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
block.c