From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34166) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZ6wx-0001lH-Vb for qemu-devel@nongnu.org; Sun, 14 Aug 2016 21:44:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZ6ww-00033G-UZ for qemu-devel@nongnu.org; Sun, 14 Aug 2016 21:44:23 -0400 Message-ID: <57B11FC1.2070000@cn.fujitsu.com> Date: Mon, 15 Aug 2016 09:49:53 +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> In-Reply-To: <20160809090807.GB5030@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/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. > given there. > >> +# >> +# Since: 2.8 >> +## >> +{ 'struct': 'BlockdevOptionsReplication', >> + 'base': 'BlockdevOptionsGenericFormat', >> + 'data': { 'mode': 'ReplicationMode', >> + '*top-id': 'str' } } > > Kevin > > > . >