]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: checkpoint: Track and relabel images for bitmap merging
authorPeter Krempa <pkrempa@redhat.com>
Thu, 9 Jan 2020 16:34:29 +0000 (17:34 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 4 Feb 2020 12:45:32 +0000 (13:45 +0100)
commit8e94e290104ffb5d9db051ab0b0ff36f58dbc943
treeebccccce7d978cf55b2a3bb50a323df7cd76c9a0
parent065e548ebf0e39c8f9d30d0637ecfa84803d8f98
qemu: checkpoint: Track and relabel images for bitmap merging

Allow qemu access to modify backing files in case when we want to delete
a checkpoint.

This patch adds tracking of which images need to be relabelled when
calculating the transaction, the code to relabel them and rollback.

To verify that stuff works we also output the list of images to relabel
into the test case output files in qemublocktest.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_checkpoint.c
src/qemu/qemu_checkpoint.h
tests/qemublocktest.c
tests/qemublocktestdata/checkpointdelete/snapshots-intermediate1-out.json
tests/qemublocktestdata/checkpointdelete/snapshots-intermediate2-out.json
tests/qemublocktestdata/checkpointdelete/snapshots-intermediate3-out.json
tests/qemublocktestdata/checkpointdelete/snapshots-noparent-out.json
tests/qemublocktestdata/checkpointdelete/snapshots-synthetic-checkpoint-intermediate1-out.json
tests/qemublocktestdata/checkpointdelete/snapshots-synthetic-checkpoint-intermediate2-out.json
tests/qemublocktestdata/checkpointdelete/snapshots-synthetic-checkpoint-intermediate3-out.json
tests/qemublocktestdata/checkpointdelete/snapshots-synthetic-checkpoint-noparent-out.json