From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bX31H-0001Uq-PN for qemu-devel@nongnu.org; Tue, 09 Aug 2016 05:08:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bX31G-0006T9-G7 for qemu-devel@nongnu.org; Tue, 09 Aug 2016 05:08:19 -0400 Date: Tue, 9 Aug 2016 11:08:07 +0200 From: Kevin Wolf Message-ID: <20160809090807.GB5030@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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1469602913-20979-12-git-send-email-xiecl.fnst@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 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 given there. > +# > +# Since: 2.8 > +## > +{ 'struct': 'BlockdevOptionsReplication', > + 'base': 'BlockdevOptionsGenericFormat', > + 'data': { 'mode': 'ReplicationMode', > + '*top-id': 'str' } } Kevin