From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akvvR-0005dJ-CF for qemu-devel@nongnu.org; Tue, 29 Mar 2016 11:51:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akvvQ-0003Oz-9p for qemu-devel@nongnu.org; Tue, 29 Mar 2016 11:51:25 -0400 Date: Tue, 29 Mar 2016 17:51:18 +0200 From: Kevin Wolf Message-ID: <20160329155118.GF4600@noname.redhat.com> References: <1458846438-28573-1-git-send-email-mreitz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1458846438-28573-1-git-send-email-mreitz@redhat.com> Subject: Re: [Qemu-devel] [RFC for-2.7 0/1] block/qapi: Add query-block-node-tree List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, Markus Armbruster Am 24.03.2016 um 20:07 hat Max Reitz geschrieben: > As I responded to: > - http://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg04464.html > - http://lists.nongnu.org/archive/html/qemu-devel/2016-03/msg05680.html > > I think a general solution for querying the block node tree would be > nice (I don't think we actually have one). The single patch in this > series implements such a command. > > However, this is an RFC because I'm not sure whether we really want this > and thus I didn't want to write the necessary tests for something we may > be going to discard anyway. I think we do want to have a way to query the tree structure in QMP. The part that I'm so sure about is whether we want a recursive command or one that just covers the children of a single node. If we want the latter, just adding a children field (which maps role names to node names) to query-block might be enough. Kevin