mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
8e94e29010
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>
62 lines
1.0 KiB
JSON
62 lines
1.0 KiB
JSON
[
|
|
{
|
|
"type": "block-dirty-bitmap-add",
|
|
"data": {
|
|
"node": "libvirt-1-format",
|
|
"name": "c",
|
|
"persistent": true,
|
|
"disabled": true,
|
|
"granularity": 65536
|
|
}
|
|
},
|
|
{
|
|
"type": "block-dirty-bitmap-merge",
|
|
"data": {
|
|
"node": "libvirt-1-format",
|
|
"target": "c",
|
|
"bitmaps": [
|
|
{
|
|
"node": "libvirt-1-format",
|
|
"name": "d"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "block-dirty-bitmap-remove",
|
|
"data": {
|
|
"node": "libvirt-1-format",
|
|
"name": "d"
|
|
}
|
|
},
|
|
{
|
|
"type": "block-dirty-bitmap-enable",
|
|
"data": {
|
|
"node": "libvirt-2-format",
|
|
"name": "c"
|
|
}
|
|
},
|
|
{
|
|
"type": "block-dirty-bitmap-merge",
|
|
"data": {
|
|
"node": "libvirt-2-format",
|
|
"target": "c",
|
|
"bitmaps": [
|
|
{
|
|
"node": "libvirt-2-format",
|
|
"name": "d"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "block-dirty-bitmap-remove",
|
|
"data": {
|
|
"node": "libvirt-2-format",
|
|
"name": "d"
|
|
}
|
|
}
|
|
]
|
|
reopen nodes:
|
|
libvirt-2-format
|