Received: from eggs.gnu.org ([2001:4830:134:3::10]:60600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz2EF-0000gv-0L for qemu-devel@nongnu.org; Mon, 02 Oct 2017 11:02:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz2EB-0000xN-8Z for qemu-devel@nongnu.org; Mon, 02 Oct 2017 11:01:55 -0400 Date: Mon, 2 Oct 2017 17:01:27 +0200 From: Kashyap Chamarthy Message-ID: <20171002150127.gbodv4jwdlin7s53@eukaryote> References: <20170926175942.GE14717@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170926175942.GE14717@localhost.localdomain> Subject: Re: [Qemu-devel] [Qemu-block] blockdev-commit design List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-block@nongnu.org, qemu-devel@nongnu.org, stefanha@redhat.com, mreitz@redhat.com List-ID: On Tue, Sep 26, 2017 at 07:59:42PM +0200, Kevin Wolf wrote: [...] > In comparison with the old command, the important changes are: > > * top/base are node names instead of file names. > > * You don't need to specify the active layer any more (not the least > because there could very well be more than one of them), but top > becomes mandatory instead. As a user of 'block-commit', I'm a bit confused on your above point. Two questions: (1) During active block commit, isn't "active layer" == "top"? With the existing QMP `block-commit`, given: A <- B <- C <- D (active) To merge B, C, and D (the active layer) into A, I _have_ to specify the active layer, which is "D", as a 'top' parameter: { "execute": "block-commit", "arguments": { "device": "node-D", "job-id": "job0", "top": "d.qcow2", "base": "a.qcow2" } } So when merging the top-most layer (D), there's at least one scenario where we _are_ specifying the "active layer". And 'top' _is_ mandatory as seen above. So I wonder if I'm misinterpreting your wording. (2) Also, just for my own education, can you mind expanding a bit more about the "there can be more than one active layer" scenario? Thanks. [...] -- /kashyap