From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZDP8-0002CL-6g for qemu-devel@nongnu.org; Mon, 15 Aug 2016 04:37:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZDP6-0005mZ-9K for qemu-devel@nongnu.org; Mon, 15 Aug 2016 04:37:53 -0400 Date: Mon, 15 Aug 2016 10:37:39 +0200 From: Kevin Wolf Message-ID: <20160815083739.GA6024@noname.str.redhat.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <57B11FC1.2070000@cn.fujitsu.com> 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: Changlong Xie 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 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. Kevin > >given there. > > > >>+# > >>+# Since: 2.8 > >>+## > >>+{ 'struct': 'BlockdevOptionsReplication', > >>+ 'base': 'BlockdevOptionsGenericFormat', > >>+ 'data': { 'mode': 'ReplicationMode', > >>+ '*top-id': 'str' } } > > > >Kevin