Received: from eggs.gnu.org ([2001:4830:134:3::10]:50347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLuw6-0004tM-8s for qemu-devel@nongnu.org; Wed, 20 Jan 2016 10:44:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLuw1-00061u-8i for qemu-devel@nongnu.org; Wed, 20 Jan 2016 10:44:42 -0500 From: Alberto Garcia In-Reply-To: <1451035376-7252-3-git-send-email-xiecl.fnst@cn.fujitsu.com> References: <1451035376-7252-1-git-send-email-xiecl.fnst@cn.fujitsu.com> <1451035376-7252-3-git-send-email-xiecl.fnst@cn.fujitsu.com> Date: Wed, 20 Jan 2016 16:43:45 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH v9 2/3] quorum: implement bdrv_add_child() and bdrv_del_child() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Changlong Xie , qemu devel , Eric Blake , Kevin Wolf , Stefan Hajnoczi Cc: qemu block , Jiang Yunhong , Dong Eddie , Markus Armbruster , "Dr. David Alan Gilbert" , Gonglei , zhanghailiang On Fri 25 Dec 2015 10:22:55 AM CET, Changlong Xie wrote: > @@ -875,9 +878,9 @@ static int quorum_open(BlockDriverState *bs, QDict *options, int flags, > ret = -EINVAL; > goto exit; > } > - if (s->num_children < 2) { > + if (s->num_children < 1) { > error_setg(&local_err, > - "Number of provided children must be greater than 1"); > + "Number of provided children must be 1 or more"); > ret = -EINVAL; > goto exit; > } I have a question: if you have a Quorum with just one member and you add a new one, how do you know if it has the same data as the existing one? In general, what do you do to make sure that the data in a new Quorum child is consistent with that of the rest of the array? Berto