Received: from eggs.gnu.org ([2001:4830:134:3::10]:54371) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrUG4-0001C3-AX for qemu-devel@nongnu.org; Mon, 02 Jun 2014 11:34:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrUFy-0005Bz-Bp for qemu-devel@nongnu.org; Mon, 02 Jun 2014 11:34:44 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:57238) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrUFx-0005Bt-VD for qemu-devel@nongnu.org; Mon, 02 Jun 2014 11:34:38 -0400 Received: by mail-wi0-f179.google.com with SMTP id bs8so4903010wib.6 for ; Mon, 02 Jun 2014 08:34:37 -0700 (PDT) Date: Mon, 2 Jun 2014 17:34:31 +0200 From: Stefan Hajnoczi Message-ID: <20140602153431.GI3049@stefanha-thinkpad.redhat.com> References: <1401448724-27851-1-git-send-email-benoit.canet@irqsave.net> <1401448724-27851-2-git-send-email-benoit.canet@irqsave.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1401448724-27851-2-git-send-email-benoit.canet@irqsave.net> Subject: Re: [Qemu-devel] [PATCH v5 1/3] quorum: Add the rewrite-corrupted parameter to quorum. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Beno=EEt?= Canet Cc: kwolf@redhat.com, mreitz@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, Benoit Canet On Fri, May 30, 2014 at 01:18:42PM +0200, Benoît Canet wrote: > On read operations when this parameter is set and some replicas are corrupted > while quorum can be reached quorum will proceed to rewrite the correct version > of the data to fix the corrupted replicas. > > This will shine with SSD where the FTL will remap the same block at another > place on rewrite. > > Signed-off-by: Benoit Canet > Reviewed-by: Max Reitz > --- > block/quorum.c | 97 +++++++++++++++++++++++++++++++++++++++++++--- > qapi-schema.json | 5 ++- > tests/qemu-iotests/081 | 15 ++++++- > tests/qemu-iotests/081.out | 10 +++++ > 4 files changed, 119 insertions(+), 8 deletions(-) Reviewed-by: Stefan Hajnoczi