From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49137) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zw4Ys-0006Xe-26 for qemu-devel@nongnu.org; Tue, 10 Nov 2015 03:45:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zw4Yr-0001TX-6W for qemu-devel@nongnu.org; Tue, 10 Nov 2015 03:45:53 -0500 References: <1444985866-12969-1-git-send-email-wency@cn.fujitsu.com> <1444985866-12969-5-git-send-email-wency@cn.fujitsu.com> From: Wen Congyang Message-ID: <5641AE72.9020603@cn.fujitsu.com> Date: Tue, 10 Nov 2015 16:44:34 +0800 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v6 4/4] hmp: add monitor command to add/remove a child List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alberto Garcia , qemu devel , Eric Blake , Markus Armbruster , Kevin Wolf , Stefan Hajnoczi Cc: zhanghailiang , qemu block , Jiang Yunhong , Dong Eddie , "Dr. David Alan Gilbert" , Luiz Capitulino , Gonglei , Yang Hongyang On 11/09/2015 10:54 PM, Alberto Garcia wrote: > On Fri 16 Oct 2015 10:57:46 AM CEST, Wen Congyang wrote: > >> + .name = "blockdev_change", >> + .args_type = "op:s,parent:B,child:B?,node:?", >> + .params = "operation parent [child] [node]", > [...] >> + /* >> + * FIXME: we must specify the parameter child, otherwise, >> + * we can't specify the parameter node. >> + */ >> + if (op == CHANGE_OPERATION_ADD) { >> + has_child = false; >> + } > > So if you want to perform the 'add' operation you must pass both 'child' > and 'node' but the former will be discarded. > > I don't think you really need to do this for the HMP interface, but it's > anyway one more good reason to merge 'child' and 'node'. Do you mean there is no need to implement the HMP interface? Thanks Wen Congyang > > Berto > . >