]> xenbits.xensource.com Git - libvirt.git/commit
qemu: monitor: Sanitize arguments of qemuMonitorBlockdevReopen
authorPeter Krempa <pkrempa@redhat.com>
Wed, 22 Nov 2023 13:42:26 +0000 (14:42 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 27 Nov 2023 09:14:20 +0000 (10:14 +0100)
commit7e66ff4fd1958606d50b6ef38968007fe151d644
tree1556805c96f6977cb85f72fb28259c5aad140ed3
parent24b667eeed78d2df0376a38a592ed9d8c2744bdc
qemu: monitor: Sanitize arguments of qemuMonitorBlockdevReopen

Take the virJSONValue array object which is passed to the
'blockdev-reopen' command as the 'options' argument rather than making
the caller wrap all the properties.

The code was a leftover from the time when the blockdev-reopen command
had a different syntax, and thus can be cleaned up.

Also note that the logging of the node name never worked as the top
level object didn't ever contain a 'node-name' property.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_block.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.h