Signed-off-by: Benoit Canet <ben...@irqsave.net> --- block/blkverify.c | 8 ++++++-- block/quorum.c | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/block/blkverify.c b/block/blkverify.c index 9d5f1ec..9e15081 100644 --- a/block/blkverify.c +++ b/block/blkverify.c @@ -11,6 +11,10 @@ #include "qemu_socket.h" /* for EINPROGRESS on Windows */ #include "block_int.h" +ssize_t blkverify_iovec_compare(QEMUIOVector *a, QEMUIOVector *b); +void blkverify_iovec_clone(QEMUIOVector *dest, const QEMUIOVector *src, + void *buf); + typedef struct { BlockDriverState *test_file; } BDRVBlkverifyState; @@ -130,7 +134,7 @@ static int64_t blkverify_getlength(BlockDriverState *bs) * @b: I/O vector * @ret: Offset to first mismatching byte or -1 if match */ -static ssize_t blkverify_iovec_compare(QEMUIOVector *a, QEMUIOVector *b) +ssize_t blkverify_iovec_compare(QEMUIOVector *a, QEMUIOVector *b) { int i; ssize_t offset = 0; @@ -190,7 +194,7 @@ static int sortelem_cmp_src_index(const void *a, const void *b) * The relative relationships of overlapping iovecs are preserved. This is * necessary to ensure identical semantics in the cloned I/O vector. */ -static void blkverify_iovec_clone(QEMUIOVector *dest, const QEMUIOVector *src, +void blkverify_iovec_clone(QEMUIOVector *dest, const QEMUIOVector *src, void *buf) { IOVectorSortElem sortelems[src->niov]; diff --git a/block/quorum.c b/block/quorum.c index e6d2274..003fc3f 100644 --- a/block/quorum.c +++ b/block/quorum.c @@ -15,6 +15,10 @@ #include "block_int.h" +ssize_t blkverify_iovec_compare(QEMUIOVector *a, QEMUIOVector *b); +void blkverify_iovec_clone(QEMUIOVector *dest, const QEMUIOVector *src, + void *buf); + typedef struct { BlockDriverState * bs[3]; } BDRVQuorumState; -- 1.7.9.5