On Fri, Jan 31, 2020 at 03:31:11PM +0100, Peter Krempa wrote:
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(a)redhat.com>
---
src/qemu/qemu_checkpoint.c | 35 ++++++++++++++++---
src/qemu/qemu_checkpoint.h | 3 +-
tests/qemublocktest.c | 19 ++++++++--
.../snapshots-intermediate1-out.json | 2 ++
.../snapshots-intermediate2-out.json | 3 ++
.../snapshots-intermediate3-out.json | 2 ++
.../snapshots-noparent-out.json | 4 +++
...ynthetic-checkpoint-intermediate1-out.json | 2 ++
...ynthetic-checkpoint-intermediate2-out.json | 2 ++
...ynthetic-checkpoint-intermediate3-out.json | 2 ++
...ots-synthetic-checkpoint-noparent-out.json | 4 +++
11 files changed, 70 insertions(+), 8 deletions(-)
Reviewed-by: Ján Tomko <jtomko(a)redhat.com>
Jano