diff options
author | Eric Blake | 2018-06-28 22:15:25 +0200 |
---|---|---|
committer | Kevin Wolf | 2018-06-29 14:20:56 +0200 |
commit | 583c99d39368526dfb57a715b04a6ceea27dbe1e (patch) | |
tree | 4431bb5520ab334dc6eaa758ac5f5b49ad0fbcb8 /include/block/block.h | |
parent | vhdx: Switch to byte-based calls (diff) | |
download | qemu-583c99d39368526dfb57a715b04a6ceea27dbe1e.tar.gz qemu-583c99d39368526dfb57a715b04a6ceea27dbe1e.tar.xz qemu-583c99d39368526dfb57a715b04a6ceea27dbe1e.zip |
block: Remove unused sector-based vectored I/O
We are gradually moving away from sector-based interfaces, towards
byte-based. Now that all callers of vectored I/O have been converted
to use our preferred byte-based bdrv_co_p{read,write}v(), we can
delete the unused bdrv_co_{read,write}v().
Furthermore, this gets rid of the signature difference between the
public bdrv_co_writev() and the callback .bdrv_co_writev (the
latter still exists, because some drivers still need more work
before they are fully byte-based).
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include/block/block.h')
-rw-r--r-- | include/block/block.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/block/block.h b/include/block/block.h index 42e59ff585..2ffc1c64c6 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -285,10 +285,6 @@ int bdrv_pwrite(BdrvChild *child, int64_t offset, const void *buf, int bytes); int bdrv_pwritev(BdrvChild *child, int64_t offset, QEMUIOVector *qiov); int bdrv_pwrite_sync(BdrvChild *child, int64_t offset, const void *buf, int count); -int coroutine_fn bdrv_co_readv(BdrvChild *child, int64_t sector_num, - int nb_sectors, QEMUIOVector *qiov); -int coroutine_fn bdrv_co_writev(BdrvChild *child, int64_t sector_num, - int nb_sectors, QEMUIOVector *qiov); /* * Efficiently zero a region of the disk image. Note that this is a regular * I/O request like read or write and should have a reasonable size. This |