Received: from eggs.gnu.org ([2001:4830:134:3::10]:44488) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5oBJ-0001qk-MN for qemu-devel@nongnu.org; Fri, 11 Jul 2014 23:41:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X5oBE-0004HB-RA for qemu-devel@nongnu.org; Fri, 11 Jul 2014 23:41:01 -0400 Received: from mail-pd0-x22e.google.com ([2607:f8b0:400e:c02::22e]:59281) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X5oBE-0004GZ-MJ for qemu-devel@nongnu.org; Fri, 11 Jul 2014 23:40:56 -0400 Received: by mail-pd0-f174.google.com with SMTP id y10so2366462pdj.19 for ; Fri, 11 Jul 2014 20:40:56 -0700 (PDT) Date: Sat, 12 Jul 2014 11:40:50 +0800 From: Liu Yuan Message-ID: <20140712034050.GB23778@ubuntu-trusty> References: <1405047682-26102-1-git-send-email-namei.unix@gmail.com> <53BFEF6C.9070606@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <53BFEF6C.9070606@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block/quorum: add simple read pattern support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Blake Cc: Kevin Wolf , qemu-devel@nongnu.org, Stefan Hajnoczi , Benoit Canet On Fri, Jul 11, 2014 at 08:06:36AM -0600, Eric Blake wrote: > On 07/10/2014 09:01 PM, Liu Yuan wrote: > > This patch adds single read pattern to quorum driver and quorum vote is default > > pattern. > > > > For now we do a quorum vote on all the reads, it is designed for unreliable > > underlying storage such as non-redundant NFS to make sure data integrity at the > > cost of the read performance. > > > > > E.g, Enable single read pattern on 2 children, > > > > -drive driver=quorum,children.0.file.filename=0.qcow2,\ > > children.1.file.filename=1.qcow2,read-pattern=single,vote-threshold=1 > > > > [1] http://en.wikipedia.org/wiki/Distributed_Replicated_Block_Device > > > > Cc: Benoit Canet > > Cc: Kevin Wolf > > Cc: Stefan Hajnoczi > > Signed-off-by: Liu Yuan > > --- > > block/quorum.c | 174 +++++++++++++++++++++++++++++++++++++++++---------------- > > 1 file changed, 125 insertions(+), 49 deletions(-) > > That covers the command line, but what about the *.json changes to allow > QMP to select this mode when hot-plugging? Good catch, thanks for reminding. Yuan