From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFozW-0003Tt-1s for qemu-devel@nongnu.org; Tue, 18 Feb 2014 13:02:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WFozQ-0007g8-Sl for qemu-devel@nongnu.org; Tue, 18 Feb 2014 13:01:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WFozQ-0007g2-Ji for qemu-devel@nongnu.org; Tue, 18 Feb 2014 13:01:52 -0500 Message-ID: <5303A031.1060302@redhat.com> Date: Tue, 18 Feb 2014 19:02:25 +0100 From: Max Reitz MIME-Version: 1.0 References: <1392725487-18330-1-git-send-email-benoit.canet@irqsave.net> <1392725487-18330-7-git-send-email-benoit.canet@irqsave.net> In-Reply-To: <1392725487-18330-7-git-send-email-benoit.canet@irqsave.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH V18 06/12] quorum: Add quorum mechanism. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?QmVub8OudCBDYW5ldA==?= , qemu-devel@nongnu.org Cc: kwolf@redhat.com, famz@redhat.com, =?UTF-8?B?QmVub8OudCBDYW5ldA==?= , stefanha@redhat.com On 18.02.2014 13:11, Beno=C3=AEt Canet wrote: > From: Beno=C3=AEt Canet > > This patchset enables the core of the quorum mechanism. > The num_children reads are compared to get the majority version and if = this > version exists more than threshold times the guest won't see the error = at all. > > If a block is corrupted or if an error occurs during an IO or if the qu= orum > cannot be established QMP events are used to report to the management. > > Use gnutls's SHA-256 to compare versions. > > --enable-quorum must be used to enable the feature. > > Signed-off-by: Benoit Canet > --- > block/Makefile.objs | 2 +- > block/quorum.c | 391 +++++++++++++++++++++++++++++++++++++= ++++++++- > configure | 36 +++++ > docs/qmp/qmp-events.txt | 36 +++++ > include/monitor/monitor.h | 2 + > monitor.c | 2 + > 6 files changed, 467 insertions(+), 2 deletions(-) Reviewed-by: Max Reitz