libvirt/tests/qemublocktestdata/bitmapblockcommit/snapshots-synthetic-broken-2-3
Peter Krempa cab3622119 qemublocktest: Add tests for re-enabling of bitmaps after commit
Some branches were not covered and thus we didn't catch that the bitmaps
are not re-enabled if nothing is merged into them. Two bitmaps are
necessary to reliably test the case due to hash table ordering.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Tested-by: Daniel P. Berrangé <berrange@redhat.com>
2020-03-17 16:32:13 +01:00

90 lines
1.5 KiB
Plaintext

pre job bitmap disable:
[
{
"type": "block-dirty-bitmap-disable",
"data": {
"node": "libvirt-3-format",
"name": "b"
}
}
]
merge bitmpas:
[
{
"type": "block-dirty-bitmap-enable",
"data": {
"node": "libvirt-3-format",
"name": "b"
}
},
{
"type": "block-dirty-bitmap-add",
"data": {
"node": "libvirt-3-format",
"name": "c",
"persistent": true,
"disabled": true,
"granularity": 65536
}
},
{
"type": "block-dirty-bitmap-merge",
"data": {
"node": "libvirt-3-format",
"target": "c",
"bitmaps": [
{
"node": "libvirt-2-format",
"name": "c"
}
]
}
},
{
"type": "block-dirty-bitmap-add",
"data": {
"node": "libvirt-3-format",
"name": "oa",
"persistent": true,
"disabled": false,
"granularity": 65536
}
},
{
"type": "block-dirty-bitmap-merge",
"data": {
"node": "libvirt-3-format",
"target": "oa",
"bitmaps": [
{
"node": "libvirt-2-format",
"name": "oa"
}
]
}
},
{
"type": "block-dirty-bitmap-add",
"data": {
"node": "libvirt-3-format",
"name": "ob",
"persistent": true,
"disabled": false,
"granularity": 65536
}
},
{
"type": "block-dirty-bitmap-merge",
"data": {
"node": "libvirt-3-format",
"target": "ob",
"bitmaps": [
{
"node": "libvirt-2-format",
"name": "ob"
}
]
}
}
]