aboutsummaryrefslogtreecommitdiff
path: root/include/qemu/iov.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2019-06-04 19:15:14 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2019-08-27 14:58:42 +0100
commit5396234b96a2ac743f48644529771498e036e698 (patch)
tree23744dbb57772a28809c6da3eb55a344563a445e /include/qemu/iov.h
parentdf893d25ceea3c0dcbe6d6b425309317fab6b22e (diff)
downloadqemu-5396234b96a2ac743f48644529771498e036e698.zip
qemu-5396234b96a2ac743f48644529771498e036e698.tar.gz
qemu-5396234b96a2ac743f48644529771498e036e698.tar.bz2
block/qcow2: implement .bdrv_co_pwritev(_compressed)_part
Implement and use new interface to get rid of hd_qiov. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Message-id: 20190604161514.262241-13-vsementsov@virtuozzo.com Message-Id: <20190604161514.262241-13-vsementsov@virtuozzo.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'include/qemu/iov.h')
-rw-r--r--include/qemu/iov.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/qemu/iov.h b/include/qemu/iov.h
index 29957c8..bffc151 100644
--- a/include/qemu/iov.h
+++ b/include/qemu/iov.h
@@ -206,6 +206,7 @@ void qemu_iovec_init_extended(
void *tail_buf, size_t tail_len);
void qemu_iovec_init_slice(QEMUIOVector *qiov, QEMUIOVector *source,
size_t offset, size_t len);
+int qemu_iovec_subvec_niov(QEMUIOVector *qiov, size_t offset, size_t len);
void qemu_iovec_add(QEMUIOVector *qiov, void *base, size_t len);
void qemu_iovec_concat(QEMUIOVector *dst,
QEMUIOVector *src, size_t soffset, size_t sbytes);