On 30.06.25 16:06, Fiona Ebner wrote:
In combination with using a throttle filter to enforce IO limits for
a guest device, knowing the 'file' child of a block device can be
useful. If the throttle filter is only intended for guest IO, block
jobs should not also be limited by the throttle filter, so the
block operations need to be done with the 'file' child of the top
throttle node as the target. In combination with mirroring, the name
of that child is not fixed.
Another scenario is when unplugging a guest device after mirroring
below a top throttle node, where the mirror target is added explicitly
via blockdev-add. After mirroring, the target becomes the new 'file'
child of the throttle node. For unplugging, both the top throttle node
and the mirror target need to be deleted, because only implicitly
added child nodes are deleted automatically, and the current 'file'
child of the throttle node was explicitly added (as the mirror
target).
Why not return a map of all children?
Hanna
Signed-off-by: Fiona Ebner <f.eb...@proxmox.com>
---
block/qapi.c | 4 ++++
qapi/block-core.json | 4 ++++
tests/qemu-iotests/184.out | 1 +
tests/qemu-iotests/191.out | 8 ++++++++
tests/qemu-iotests/273.out | 2 ++
5 files changed, 19 insertions(+)