From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZyjI-0001vL-GP for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:05:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZyjD-0005fO-37 for qemu-devel@nongnu.org; Thu, 10 Sep 2015 06:05:20 -0400 Date: Thu, 10 Sep 2015 11:04:58 +0100 From: "Daniel P. Berrange" Message-ID: <20150910100458.GJ11366@redhat.com> References: <1441878905-5272-1-git-send-email-wency@cn.fujitsu.com> <1441878905-5272-5-git-send-email-wency@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1441878905-5272-5-git-send-email-wency@cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH v3 4/5] qmp: add monitor command to add/remove a child Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wen Congyang Cc: Kevin Wolf , Alberto Garcia , zhanghailiang , qemu block , Jiang Yunhong , Dong Eddie , qemu devel , Markus Armbruster , Gonglei , Stefan Hajnoczi , Yang Hongyang , "Dr. David Alan Gilbert" On Thu, Sep 10, 2015 at 05:55:04PM +0800, Wen Congyang wrote: > Signed-off-by: Wen Congyang > Signed-off-by: zhanghailiang > Signed-off-by: Gonglei > --- > blockdev.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++ > qapi/block-core.json | 34 +++++++++++++++++++++++++++++++++ > qmp-commands.hx | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 134 insertions(+) > > diff --git a/qapi/block-core.json b/qapi/block-core.json > index e68a59f..b959577 100644 > --- a/qapi/block-core.json > +++ b/qapi/block-core.json > @@ -2272,3 +2272,37 @@ > ## > { 'command': 'block-set-write-threshold', > 'data': { 'node-name': 'str', 'write-threshold': 'uint64' } } > + > +## > +# @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' } } > + > +## > +# @child-del > +# > +# Remove a child from the parent BDS. Currently only the Quorum driver > +# implements this feature. This is useful to fix a broken quorum child. > +# Note, you can't remove a child if it would bring the quorum below its > +# threshold. > +# > +# @parent: graph node name or id from which the child will removed. > +# > +# @child: graph node name that will be removed. > +# > +# Since: 2.5 > +## > +{ 'command': 'child-del', > + 'data' : { 'parent': 'str', 'child': 'str' } } These command names are faaaar too generic. If this only applies to block devices, then I'd expect something like 'block' as a prefix for the command names. Likewise with your next hmp patch Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|