]> git.proxmox.com Git - mirror_qemu.git/commit - block/qapi.c
block: Use child access functions for QAPI queries
authorMax Reitz <mreitz@redhat.com>
Wed, 12 Jun 2019 16:23:25 +0000 (18:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 7 Sep 2020 10:31:31 +0000 (12:31 +0200)
commit0a7585dbba2bd28f3797ca414c82e526d9814ab1
treeefc808e9320e57e3d3161a09d3565e25fde634a2
parent3f26191c7350c28d9c17b5eba253bff367b6cb2e
block: Use child access functions for QAPI queries

query-block, query-named-block-nodes, and query-blockstats now return
any filtered child under "backing", not just bs->backing or COW
children.  This is so that filters do not interrupt the reported backing
chain.  This changes the output for iotest 184, as the throttled node
now appears as a backing child.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Andrey Shinkevich <andrey.shinkevich@virtuozzo.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
block/qapi.c
tests/qemu-iotests/184.out