aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2019-10-11 12:07:09 +0300
committerMax Reitz <mreitz@redhat.com>2019-10-28 11:22:30 +0100
commitb30168647fea0fc173a0e244d2943fc5575ca511 (patch)
treed4aecbc6291ddcd6575e99f625326e8ac07590c0 /include
parent5c511ac375a859dd12a4c82b56549791570442d3 (diff)
downloadqemu-b30168647fea0fc173a0e244d2943fc5575ca511.zip
qemu-b30168647fea0fc173a0e244d2943fc5575ca511.tar.gz
qemu-b30168647fea0fc173a0e244d2943fc5575ca511.tar.bz2
block/block-backend: add blk_co_pwritev_part
Add blk write function with qiov_offset parameter. It's needed for the following commit. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 20191011090711.19940-4-vsementsov@virtuozzo.com Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sysemu/block-backend.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sysemu/block-backend.h b/include/sysemu/block-backend.h
index 368d53a..73f2cef 100644
--- a/include/sysemu/block-backend.h
+++ b/include/sysemu/block-backend.h
@@ -121,6 +121,10 @@ void blk_set_dev_ops(BlockBackend *blk, const BlockDevOps *ops, void *opaque);
int coroutine_fn blk_co_preadv(BlockBackend *blk, int64_t offset,
unsigned int bytes, QEMUIOVector *qiov,
BdrvRequestFlags flags);
+int coroutine_fn blk_co_pwritev_part(BlockBackend *blk, int64_t offset,
+ unsigned int bytes,
+ QEMUIOVector *qiov, size_t qiov_offset,
+ BdrvRequestFlags flags);
int coroutine_fn blk_co_pwritev(BlockBackend *blk, int64_t offset,
unsigned int bytes, QEMUIOVector *qiov,
BdrvRequestFlags flags);