Received: from eggs.gnu.org ([2001:4830:134:3::10]:36061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDEad-0001Zd-SC for qemu-devel@nongnu.org; Tue, 11 Feb 2014 09:45:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDEaR-000547-Fz for qemu-devel@nongnu.org; Tue, 11 Feb 2014 09:45:35 -0500 Received: from paradis.irqsave.net ([62.212.105.220]:49685) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDEaQ-00053Y-Ow for qemu-devel@nongnu.org; Tue, 11 Feb 2014 09:45:23 -0500 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Tue, 11 Feb 2014 15:45:07 +0100 Message-Id: <1392129919-7764-1-git-send-email-benoit.canet@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH V16 00/12] Quorum block filter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, =?UTF-8?q?Beno=C3=AEt=20Canet?= , famz@redhat.com, jcody@redhat.com, armbru@redhat.com, mreitz@redhat.com, stefanha@redhat.com I post this for review in prevision of 2.0 feature freeze. Even if the series look correct please wait before merging because: -I want to do further testing -Using blockdev_add by reference leads to a crash on quorum's exit (double free ?) The QMP events definitively needs to be reviewed by Eric. since v15: fix unaligned comment [Beno=C3=AEt] s/QuorumSingleAIOCB/QuorumChildRequest/ [Kevin] s/total/num_children/ [Kevin] Remove QuourmAIOCB finished field as bdrv_aio_cancel is now used [Beno=C3= =AEt] fix typedef struct [Kevin] Document blkverify mode [Kevin] s/callback/callbacks/ [Kevin] free data structures on quorum_aio_cancel [Kevin] drop bqs [Kevin] replace acb->bqs usage by acb->common.bs->opaque [Kevin] fix compilation error on patch 3 [Kevin] better document qemu_iovec_compare [Kevin] don't zero structure intended to be freed [Kevin] Do simple if [Kevin] merge for loops [Kevin] s/bs->file/s->bs[i]/ [Kevin] pass individual qiov to read one patch sooner [Kevin] remove uneeded forward declaration [Kevin] simplify compare function [Kevin] initialize vote list at the right place [Kevin] node_name should not be NULL assert it [Kevin] s/i/max/g in get_vote_winner [Kevin] document why quorum_iovec_compare exists [Kevin] convert comment into assert [Kevin] set quorum default to true [Kevin] simplify quorum success condition after max addition quorum_vote test [Be= no=C3=AEt] remove uneeded test after vote [Kevin] change comment on quorum failure searching [Beno=C3=AEt] introduce reference in QUORUM_FAILURE [Kevin] remove unneeded KEY_ defines =C2=A0[Beno=C3=AEt] Use QemuOptList to shorten code [Kevin] remove uneeded includes [Beno=C3=AEt] fill authorization table [Beno=C3=AEt] extract quorum_has_too_much_io_failed [Beno=C3=AEt] call this function when not reading [Beno=C3=AEt] report error on io failure [Beno=C3=AEt] !! need Eric review don't flush on exit [Kevin] Beno=C3=AEt Canet (12): quorum: Create quorum.c, add QuorumChildRequest and QuorumAIOCB. quorum: Create BDRVQuorumState and BlkDriver and do init. quorum: Add quorum_aio_writev and its dependencies. blkverify: Extract qemu_iovec_clone() and qemu_iovec_compare() from blkverify. quorum: Add quorum_aio_readv. quorum: Add quorum mechanism. quorum: Add quorum_getlength(). quorum: Add quorum_invalidate_cache(). quorum: Add quorum_co_flush(). quorum: Implement recursive .bdrv_recurse_is_first_non_filter in quorum. quorum: Add quorum_open() and quorum_close(). quorum: Add unit test. block/Makefile.objs | 1 + block/blkverify.c | 108 +----- block/quorum.c | 863 +++++++++++++++++++++++++++++++++++++++= ++++++ configure | 36 ++ docs/qmp/qmp-events.txt | 36 ++ include/monitor/monitor.h | 2 + include/qemu-common.h | 2 + monitor.c | 4 + qapi-schema.json | 21 +- tests/qemu-iotests/081 | 95 +++++ tests/qemu-iotests/081.out | 34 ++ tests/qemu-iotests/group | 1 + util/iov.c | 106 ++++++ 13 files changed, 1202 insertions(+), 107 deletions(-) create mode 100644 block/quorum.c create mode 100755 tests/qemu-iotests/081 create mode 100644 tests/qemu-iotests/081.out --=20 1.8.3.2