Received: from eggs.gnu.org ([2001:4830:134:3::10]:52765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDhxD-0005us-2b for qemu-devel@nongnu.org; Wed, 12 Feb 2014 17:06:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDhx4-00029l-PH for qemu-devel@nongnu.org; Wed, 12 Feb 2014 17:06:51 -0500 Received: from paradis.irqsave.net ([62.212.105.220]:49829) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDhx3-00028x-5Y for qemu-devel@nongnu.org; Wed, 12 Feb 2014 17:06:42 -0500 From: =?UTF-8?q?Beno=C3=AEt=20Canet?= Date: Wed, 12 Feb 2014 23:06:27 +0100 Message-Id: <1392242799-16364-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 V17 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, 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: The QMP events in the "Add quorum mechanism" definitively needs to be rev= iewed by Eric as they where changed. I did not found any bugs while testing this version but I am willing to t= est the code further before it's applied even it's reviewed by. Best regards Beno=C3=AEt v17: minor comment cleanup requested by kevin in quorum_open [Kevin] better handling of qdict in quorum_open (avoid a crash on exit) [Beno=C3= =AEt] remove uneeded NULL assigment on close [Beno=C3=AEt] rename QuorumChildRequest variables [Beno=C3=AEt] in v16: 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 = [Beno=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 | 867 +++++++++++++++++++++++++++++++++++++++= ++++++ 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, 1206 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