Description of problem: The output of query-named-block-nodes and query-block provides a lot of redundant data by nesting the backing chain information, but then providing it again for other layers in a linear way. This means that we get N+(N-1)+...(1) data entries instead of N. For a 200 layer backing chain this returns roughly 9MiB of json. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Created attachment 1392702 [details] To illustrate, for a disk image chain with depth 4, see the attached output of `query-named-block-nodes`
QEMU has been recently split into sub-components and as a one-time operation to avoid breakage of tools, we are setting the QEMU sub-component of this BZ to "General". Please review and change the sub-component if necessary the next time you review this BZ. Thanks
It looks like (I haven't tested it yet) this is fixed by this commit from Peter Krempa: https://git.qemu.org/?p=qemu.git;a=commit;h=facda5443f — qapi: Allow getting flat output from 'query-named-block-nodes'
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release. Therefore, it is being closed. If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.
According to https://bugzilla.redhat.com/show_bug.cgi?id=1793036#c6,set this bz to CURRENTRELEASE.Thanks.