From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZEAG-0006gm-5I for qemu-devel@nongnu.org; Mon, 15 Aug 2016 05:26:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZEAF-00065V-5L for qemu-devel@nongnu.org; Mon, 15 Aug 2016 05:26:36 -0400 Message-ID: <57B18C23.50200@cn.fujitsu.com> Date: Mon, 15 Aug 2016 17:32:19 +0800 From: Changlong Xie MIME-Version: 1.0 References: <1469602913-20979-1-git-send-email-xiecl.fnst@cn.fujitsu.com> <1469602913-20979-12-git-send-email-xiecl.fnst@cn.fujitsu.com> <20160809090807.GB5030@noname.str.redhat.com> <57B11FC1.2070000@cn.fujitsu.com> <20160815083739.GA6024@noname.str.redhat.com> In-Reply-To: <20160815083739.GA6024@noname.str.redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v24 11/12] support replication driver in blockdev-add List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu devel , qemu block , Stefan Hajnoczi , Fam Zheng , Max Reitz , Jeff Cody , Paolo Bonzini , John Snow , Eric Blake , Markus Armbruster , "Dr. David Alan Gilbert" , Dong Eddie , Jiang Yunhong , zhanghailiang , Gonglei , Wen Congyang , Wang Weiwei On 08/15/2016 04:37 PM, Kevin Wolf wrote: > Am 15.08.2016 um 03:49 hat Changlong Xie geschrieben: >> On 08/09/2016 05:08 PM, Kevin Wolf wrote: >>> Am 27.07.2016 um 09:01 hat Changlong Xie geschrieben: >>>> From: Wen Congyang >>>> >>>> Signed-off-by: Wen Congyang >>>> Signed-off-by: Changlong Xie >>>> Signed-off-by: Wang WeiWei >>>> Signed-off-by: zhanghailiang >>>> Signed-off-by: Gonglei >>>> Reviewed-by: Eric Blake >>> >>>> @@ -2078,6 +2079,23 @@ >>>> { 'enum' : 'ReplicationMode', 'data' : [ 'primary', 'secondary' ] } >>>> >>>> ## >>>> +# @BlockdevOptionsReplication >>>> +# >>>> +# Driver specific block device options for replication >>>> +# >>>> +# @mode: the replication mode >>>> +# >>>> +# @top-id: #optional In secondary mode, node name or device ID of the root >>>> +# node who owns the replication node chain. Ignored in primary mode. >>> >>> Can we change this to "Must not be given in primary mode"? Not sure what >>> the code currently does, but I think it should error out if top-id is >> >> Replication driver will ignore "top-id" parameter in Primary mode. > > This is not good behaviour, which is why I requested a change. > Hi stefan Would you like me send another [PATCH v25] based your block-next? Or a separate patch until your tree is merged. Thanks -Xie > Kevin > >>> given there. >>> >>>> +# >>>> +# Since: 2.8 >>>> +## >>>> +{ 'struct': 'BlockdevOptionsReplication', >>>> + 'base': 'BlockdevOptionsGenericFormat', >>>> + 'data': { 'mode': 'ReplicationMode', >>>> + '*top-id': 'str' } } >>> >>> Kevin > > > . >