summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBenoƮt Canet <benoit@irqsave.net>2014-02-21 22:21:13 +0100
committerKevin Wolf <kwolf@redhat.com>2014-02-21 22:29:49 +0100
commitf70d7f7e4d05b7a7797815afdcb83f4375740838 (patch)
tree6669fa46bb6c9b145846739ba3408a2b68905d41 /include
parent13e7956e3190b51f02e75374bb9dfdcacfd08829 (diff)
blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify.
qemu_iovec_compare() will be used to compare IOs vectors in quorum blkverify mode. The patch extracts these functions in order to factorize the code. Signed-off-by: Benoit Canet <benoit@irqsave.net> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/qemu-common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/qemu-common.h b/include/qemu-common.h
index b0e34b2e15..20ace93098 100644
--- a/include/qemu-common.h
+++ b/include/qemu-common.h
@@ -338,6 +338,8 @@ size_t qemu_iovec_from_buf(QEMUIOVector *qiov, size_t offset,
const void *buf, size_t bytes);
size_t qemu_iovec_memset(QEMUIOVector *qiov, size_t offset,
int fillc, size_t bytes);
+ssize_t qemu_iovec_compare(QEMUIOVector *a, QEMUIOVector *b);
+void qemu_iovec_clone(QEMUIOVector *dest, const QEMUIOVector *src, void *buf);
bool buffer_is_zero(const void *buf, size_t len);