diff options
| author | Kevin Wolf | 2016-06-09 16:36:00 +0200 |
|---|---|---|
| committer | Kevin Wolf | 2016-06-16 15:19:55 +0200 |
| commit | f1e8474115d6be7eda14092050ffa2b031afb729 (patch) | |
| tree | 7b400c277f4c9369c712b0c9ab82010bc8295e7c /include/block | |
| parent | doc: Fix mailing list address in tests/qemu-iotests/README (diff) | |
| download | qemu-f1e8474115d6be7eda14092050ffa2b031afb729.tar.gz qemu-f1e8474115d6be7eda14092050ffa2b031afb729.tar.xz qemu-f1e8474115d6be7eda14092050ffa2b031afb729.zip | |
block: Introduce bdrv_preadv()
We already have a byte-based bdrv_pwritev(), but the read counterpart
was still missing. This commit adds it.
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/block')
| -rw-r--r-- | include/block/block.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/block/block.h b/include/block/block.h index 9c3a62cc0a..9c63d07765 100644 --- a/include/block/block.h +++ b/include/block/block.h @@ -235,6 +235,7 @@ int bdrv_pwrite_zeroes(BlockDriverState *bs, int64_t offset, int bdrv_make_zero(BlockDriverState *bs, BdrvRequestFlags flags); int bdrv_pread(BlockDriverState *bs, int64_t offset, void *buf, int count); +int bdrv_preadv(BlockDriverState *bs, int64_t offset, QEMUIOVector *qiov); int bdrv_pwrite(BlockDriverState *bs, int64_t offset, const void *buf, int count); int bdrv_pwritev(BlockDriverState *bs, int64_t offset, QEMUIOVector *qiov); |
