From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37018) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zbg51-0000uN-Ao for qemu-devel@nongnu.org; Mon, 14 Sep 2015 22:34:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zbg50-0004OK-Ea for qemu-devel@nongnu.org; Mon, 14 Sep 2015 22:34:47 -0400 References: <1441878905-5272-1-git-send-email-wency@cn.fujitsu.com> <1441878905-5272-5-git-send-email-wency@cn.fujitsu.com> <20150914153700.GE3550@noname.str.redhat.com> From: Wen Congyang Message-ID: <55F78392.3010202@cn.fujitsu.com> Date: Tue, 15 Sep 2015 10:33:54 +0800 MIME-Version: 1.0 In-Reply-To: <20150914153700.GE3550@noname.str.redhat.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 4/5] qmp: add monitor command to add/remove a child List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: Alberto Garcia , zhanghailiang , qemu block , Markus Armbruster , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , qemu devel , Gonglei , Stefan Hajnoczi , Yang Hongyang On 09/14/2015 11:37 PM, Kevin Wolf wrote: > Am 10.09.2015 um 11:55 hat Wen Congyang geschrieben: >> +## >> +# @x-child-add >> +# >> +# Add a new child to the parent BDS. Currently only the Quorum driver >> +# implements this feature. This is useful to fix a broken quorum child. >> +# >> +# @parent: graph node name or id which the child will be added to. >> +# >> +# @child: graph node name that will be added. >> +# >> +# Note: this command is experimental, and not a stable API. >> +# >> +# Since: 2.5 >> +## >> +{ 'command': 'x-child-add', >> + 'data' : { 'parent': 'str', 'child': 'str' } } > > This is probably not future-proof and only made for the special case of > quorum. Specifically, one thing I'm missing is some way to specfiy what > kind of child the new node is when a node can take different types of > children (e.g. bs->file and bs->backing_hd). Currently, we only add/remove quorum's child. We can add a new parameter to specify the type in the furture to support more things. Thanks Wen Congyang > > Kevin > . >