2019-05-29 02:33:31 +03:00
|
|
|
{"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0"}}
|
|
|
|
{"return": {}}
|
2019-07-29 23:35:54 +03:00
|
|
|
{"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": {}}
|
2019-05-29 02:33:31 +03:00
|
|
|
{
|
|
|
|
"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"
|
2019-07-29 23:35:54 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"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"
|
2019-05-29 02:33:31 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"return": {}
|
|
|
|
}
|
|
|
|
query-block: device = drive0, node-name = snap, dirty-bitmaps:
|
|
|
|
[
|
2019-07-29 23:35:54 +03:00
|
|
|
{
|
|
|
|
"busy": false,
|
|
|
|
"count": 524288,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmap2",
|
|
|
|
"persistent": true,
|
2021-02-19 22:19:54 +03:00
|
|
|
"recording": true
|
2019-07-29 23:35:54 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"busy": false,
|
|
|
|
"count": 524288,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmap1",
|
|
|
|
"persistent": true,
|
2021-02-19 22:19:54 +03:00
|
|
|
"recording": true
|
2019-07-29 23:35:54 +03:00
|
|
|
},
|
2019-05-29 02:33:31 +03:00
|
|
|
{
|
|
|
|
"busy": false,
|
|
|
|
"count": 524288,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmap0",
|
|
|
|
"persistent": false,
|
2021-02-19 22:19:54 +03:00
|
|
|
"recording": true
|
2019-05-29 02:33:31 +03:00
|
|
|
}
|
|
|
|
]
|
2019-07-29 23:35:54 +03:00
|
|
|
|
|
|
|
bitmaps in backing image:
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"flags": [
|
|
|
|
"auto"
|
|
|
|
],
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmap1"
|
|
|
|
}
|
|
|
|
]
|