mirror of
https://github.com/qemu/qemu.git
synced 2024-11-25 20:03:37 +08:00
3f7b2fa8cd
Test persistent bitmap copying with and without removal of original bitmap. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-id: 20190708220502.12977-4-jsnow@redhat.com [Edited comment "bitmap1" --> "bitmap2" as per review. --js] Signed-off-by: John Snow <jsnow@redhat.com>
135 lines
2.7 KiB
Plaintext
135 lines
2.7 KiB
Plaintext
{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0"}}
|
|
{"return": {}}
|
|
{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap1", "node": "drive0", "persistent": true}}
|
|
{"return": {}}
|
|
{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap2", "node": "drive0", "persistent": true}}
|
|
{"return": {}}
|
|
{
|
|
"execute": "transaction",
|
|
"arguments": {
|
|
"actions": [
|
|
{
|
|
"data": {
|
|
"device": "drive0",
|
|
"snapshot-file": "TEST_DIR/PID-top",
|
|
"snapshot-node-name": "snap"
|
|
},
|
|
"type": "blockdev-snapshot-sync"
|
|
},
|
|
{
|
|
"data": {
|
|
"name": "bitmap0",
|
|
"node": "snap"
|
|
},
|
|
"type": "block-dirty-bitmap-add"
|
|
},
|
|
{
|
|
"data": {
|
|
"bitmaps": [
|
|
{
|
|
"name": "bitmap0",
|
|
"node": "base"
|
|
}
|
|
],
|
|
"node": "snap",
|
|
"target": "bitmap0"
|
|
},
|
|
"type": "block-dirty-bitmap-merge"
|
|
},
|
|
{
|
|
"data": {
|
|
"name": "bitmap1",
|
|
"node": "snap",
|
|
"persistent": true
|
|
},
|
|
"type": "block-dirty-bitmap-add"
|
|
},
|
|
{
|
|
"data": {
|
|
"bitmaps": [
|
|
{
|
|
"name": "bitmap1",
|
|
"node": "base"
|
|
}
|
|
],
|
|
"node": "snap",
|
|
"target": "bitmap1"
|
|
},
|
|
"type": "block-dirty-bitmap-merge"
|
|
},
|
|
{
|
|
"data": {
|
|
"name": "bitmap2",
|
|
"node": "snap",
|
|
"persistent": true
|
|
},
|
|
"type": "block-dirty-bitmap-add"
|
|
},
|
|
{
|
|
"data": {
|
|
"bitmaps": [
|
|
{
|
|
"name": "bitmap2",
|
|
"node": "base"
|
|
}
|
|
],
|
|
"node": "snap",
|
|
"target": "bitmap2"
|
|
},
|
|
"type": "block-dirty-bitmap-merge"
|
|
},
|
|
{
|
|
"data": {
|
|
"name": "bitmap2",
|
|
"node": "base"
|
|
},
|
|
"type": "block-dirty-bitmap-remove"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
{
|
|
"return": {}
|
|
}
|
|
query-block: device = drive0, node-name = snap, dirty-bitmaps:
|
|
[
|
|
{
|
|
"busy": false,
|
|
"count": 524288,
|
|
"granularity": 65536,
|
|
"name": "bitmap2",
|
|
"persistent": true,
|
|
"recording": true,
|
|
"status": "active"
|
|
},
|
|
{
|
|
"busy": false,
|
|
"count": 524288,
|
|
"granularity": 65536,
|
|
"name": "bitmap1",
|
|
"persistent": true,
|
|
"recording": true,
|
|
"status": "active"
|
|
},
|
|
{
|
|
"busy": false,
|
|
"count": 524288,
|
|
"granularity": 65536,
|
|
"name": "bitmap0",
|
|
"persistent": false,
|
|
"recording": true,
|
|
"status": "active"
|
|
}
|
|
]
|
|
|
|
bitmaps in backing image:
|
|
[
|
|
{
|
|
"flags": [
|
|
"auto"
|
|
],
|
|
"granularity": 65536,
|
|
"name": "bitmap1"
|
|
}
|
|
]
|