Skip to content

RFC Qorum disk image corruption resiliency

Benoît Canet qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest12 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12qorum: Add GPL v2+ header file.block/qorum.c+15 -04 replies
2/12qorum: Add QorumSingleAIOCB and QorumAIOCB.block/qorum.c+30 -00 replies
3/12qorum: Create BDRVQorumState and BlkDriver and do init.block/qorum.c+18 -00 replies
4/12qorum: Add qorum_open().block/qorum.c+62 -00 replies
5/12qorum: Add qorum_close().block/qorum.c+12 -00 replies
6/12qorum: Add qorum_getlength().block/qorum.c+17 -00 replies
7/12qorum: Add qorum_aio_writev and its dependencies.block/qorum.c+112 -00 replies
8/12blkverify: Make blkverify_iovec_clone() and blkverify_iovec_compare() publicblock/blkverify.c+6 -20 replies
9/12qorum: Add qorum_co_flush().block/qorum.c+20 -00 replies
10/12qorum: Add qorum_aio_readv.block/qorum.c+35 -00 replies
11/12qorum: Add qorum mechanism.block/qorum.c+78 -60 replies
12/12qorum: build feature into QEMU.block/Makefile.objs+1 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 00/12] Qorum disk image corruption resiliency

This patchset create a block driver implementing a qorum using three qemu disk images. Writes are mirrored on the three files.
For the reading part the three files are read at the same time and a vote is done to determine which is the majoritary qiov version. It then return this majoritary version to the upper layers.
When three differents versions of the data are returned by the lower layer the qorum is broken and the read return -EIO.

The goal of this patchset is to be turned in a QEMU block filter living just above raw-*.c and below qcow2/qed when the required infrastructure will be done.

Main use of this feature will be people using NFS appliances which can be subjected to bitflip errors.

usage: -drive file=qorum:image1.raw:image2.raw:image3.raw,if=virtio,cache=none

Benoît Canet (12):
qorum: Add GPL v2+ header file.
qorum: Add QorumSingleAIOCB and QorumAIOCB.
qorum: Create BDRVQorumState and BlkDriver and do init.
qorum: Add qorum_open().
qorum: Add qorum_close().
qorum: Add qorum_getlength().
qorum: Add qorum_aio_writev and its dependencies.
blkverify: Make blkverify_iovec_clone() and blkverify_iovec_compare()
public
qorum: Add qorum_co_flush().
qorum: Add qorum_aio_readv.
qorum: Add qorum mechanism.
qorum: build feature into QEMU.

 block/Makefile.objs |    1 +
 block/blkverify.c   |    8 +-
 block/qorum.c       |  393 +++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 400 insertions(+), 2 deletions(-)
 create mode 100644 block/qorum.c
Signature · 1 line
1.7.9.5