]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuBlockReopenFormatMon: Adapt to new argument format of 'blockdev-reopen'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 22 Feb 2021 16:55:12 +0000 (17:55 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 26 Jul 2021 18:25:22 +0000 (20:25 +0200)
commitc1d17ca64b2979eb04ba589604dc0fa0d138d2c0
tree1381cd91d4109b05d6b1ed95803fab48570b9d62
parent6f5980ee3939f2df378cc625ace3e212d2e3bc95
qemuBlockReopenFormatMon: Adapt to new argument format of 'blockdev-reopen'

This function was added prior 'blockdev-reopen' being stable and qemu
changed the arguments to actually contain an array of block node
definitions to reopen.

In our case we are just changing between read-only and read-write modes
and thus we can keep operating on the nodes one-by-one.

Modify the code to add the wrapper array.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
src/qemu/qemu_block.c