]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: block: Ensure that <dataStore> is in appropriate state
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Nov 2024 08:12:01 +0000 (09:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 28 Nov 2024 09:27:56 +0000 (10:27 +0100)
commit754ca45c454d16ba56b5457fcf7ab42804f6ba8c
tree263e64845b61598e106abf6968b4538e2cb87a00
parented656f4c8fdd4e156127c4c2bf40d14f50dcc6a0
qemu: block: Ensure that <dataStore> is in appropriate state

In contrast to normal backing chain members where qemu does honour the
'auto-read-only' property the 'data-file' nodes are not automatically
reopened by qemu. Libvirt now has the infrastructure to reopen them
explicitly so use it for all transitions of the 'commit' block job.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_block.c
src/qemu/qemu_blockjob.c