2018-12-21 12:35:29 +03:00
|
|
|
--- Preparing image & VM ---
|
|
|
|
|
|
|
|
|
|
|
|
--- Adding preliminary bitmaps A & B ---
|
|
|
|
|
|
|
|
{"execute": "block-dirty-bitmap-add", "arguments": {"granularity": 65536, "name": "bitmapA", "node": "drive0"}}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute": "block-dirty-bitmap-add", "arguments": {"granularity": 65536, "name": "bitmapB", "node": "drive0"}}
|
|
|
|
{"return": {}}
|
|
|
|
|
|
|
|
--- Emulating writes ---
|
|
|
|
|
|
|
|
write -P0x5d 0 64k
|
|
|
|
{"return": ""}
|
|
|
|
write -P0xd5 1M 64k
|
|
|
|
{"return": ""}
|
|
|
|
write -P0xdc 32M 64k
|
|
|
|
{"return": ""}
|
|
|
|
write -P0xcd 0x3ff0000 64k
|
|
|
|
{"return": ""}
|
|
|
|
{
|
|
|
|
"bitmaps": {
|
|
|
|
"drive0": [
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 262144,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapB",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": true,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "active"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 262144,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapA",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": true,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "active"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--- Submitting & Aborting Transaction ---
|
|
|
|
|
|
|
|
{
|
|
|
|
"execute": "transaction",
|
|
|
|
"arguments": {
|
|
|
|
"actions": [
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"name": "bitmapB",
|
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-disable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"granularity": 65536,
|
2018-12-21 12:35:29 +03:00
|
|
|
"name": "bitmapC",
|
2019-01-31 05:26:48 +03:00
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-add"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"name": "bitmapA",
|
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-clear"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {},
|
|
|
|
"type": "abort"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"error": {
|
|
|
|
"class": "GenericError",
|
|
|
|
"desc": "Transaction aborted using Abort action"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"bitmaps": {
|
|
|
|
"drive0": [
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 262144,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapB",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": true,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "active"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 262144,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapA",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": true,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "active"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--- Disabling B & Adding C ---
|
|
|
|
|
|
|
|
{
|
|
|
|
"execute": "transaction",
|
|
|
|
"arguments": {
|
|
|
|
"actions": [
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"name": "bitmapB",
|
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-disable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"granularity": 65536,
|
2018-12-21 12:35:29 +03:00
|
|
|
"name": "bitmapC",
|
2019-01-31 05:26:48 +03:00
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-add"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"name": "bitmapC",
|
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-disable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"name": "bitmapC",
|
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-enable"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"return": {}
|
|
|
|
}
|
|
|
|
|
|
|
|
--- Emulating further writes ---
|
|
|
|
|
|
|
|
write -P0xab 0 64k
|
|
|
|
{"return": ""}
|
|
|
|
write -P0xad 0x00f8000 64k
|
|
|
|
{"return": ""}
|
|
|
|
write -P0x1d 0x2008000 64k
|
|
|
|
{"return": ""}
|
|
|
|
write -P0xea 0x3fe0000 64k
|
|
|
|
{"return": ""}
|
|
|
|
|
|
|
|
--- Disabling A & C ---
|
|
|
|
|
|
|
|
{
|
|
|
|
"execute": "transaction",
|
|
|
|
"arguments": {
|
|
|
|
"actions": [
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"name": "bitmapA",
|
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-disable"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
2019-01-31 05:26:48 +03:00
|
|
|
"name": "bitmapC",
|
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-disable"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"return": {}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"bitmaps": {
|
|
|
|
"drive0": [
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 393216,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapC",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 262144,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapB",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 458752,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapA",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--- Submitting & Aborting Merge Transaction ---
|
|
|
|
|
|
|
|
{
|
|
|
|
"execute": "transaction",
|
|
|
|
"arguments": {
|
|
|
|
"actions": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"disabled": true,
|
2019-01-31 05:26:48 +03:00
|
|
|
"granularity": 65536,
|
2018-12-21 12:35:29 +03:00
|
|
|
"name": "bitmapD",
|
2019-01-31 05:26:48 +03:00
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-add"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"bitmaps": [
|
|
|
|
"bitmapB",
|
|
|
|
"bitmapC"
|
2019-01-31 05:26:48 +03:00
|
|
|
],
|
|
|
|
"node": "drive0",
|
|
|
|
"target": "bitmapD"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-merge"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {},
|
|
|
|
"type": "abort"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"error": {
|
|
|
|
"class": "GenericError",
|
|
|
|
"desc": "Transaction aborted using Abort action"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"bitmaps": {
|
|
|
|
"drive0": [
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 393216,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapC",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 262144,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapB",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 458752,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapA",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--- Creating D as a merge of B & C ---
|
|
|
|
|
|
|
|
{
|
|
|
|
"execute": "transaction",
|
|
|
|
"arguments": {
|
|
|
|
"actions": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"disabled": true,
|
2019-01-31 05:26:48 +03:00
|
|
|
"granularity": 65536,
|
2018-12-21 12:35:29 +03:00
|
|
|
"name": "bitmapD",
|
2019-01-31 05:26:48 +03:00
|
|
|
"node": "drive0"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-add"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"bitmaps": [
|
|
|
|
"bitmapB",
|
|
|
|
"bitmapC"
|
2019-01-31 05:26:48 +03:00
|
|
|
],
|
|
|
|
"node": "drive0",
|
|
|
|
"target": "bitmapD"
|
2018-12-21 12:35:29 +03:00
|
|
|
},
|
|
|
|
"type": "block-dirty-bitmap-merge"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"return": {}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
"bitmaps": {
|
|
|
|
"drive0": [
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 458752,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapD",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 393216,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapC",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 262144,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapB",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
},
|
|
|
|
{
|
2019-03-12 19:05:48 +03:00
|
|
|
"busy": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"count": 458752,
|
|
|
|
"granularity": 65536,
|
|
|
|
"name": "bitmapA",
|
2019-02-20 01:49:43 +03:00
|
|
|
"persistent": false,
|
2019-03-12 19:05:48 +03:00
|
|
|
"recording": false,
|
2018-12-21 12:35:29 +03:00
|
|
|
"status": "disabled"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--- Removing bitmaps A, B, C, and D ---
|
|
|
|
|
|
|
|
{"execute": "block-dirty-bitmap-remove", "arguments": {"name": "bitmapA", "node": "drive0"}}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute": "block-dirty-bitmap-remove", "arguments": {"name": "bitmapB", "node": "drive0"}}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute": "block-dirty-bitmap-remove", "arguments": {"name": "bitmapC", "node": "drive0"}}
|
|
|
|
{"return": {}}
|
|
|
|
{"execute": "block-dirty-bitmap-remove", "arguments": {"name": "bitmapD", "node": "drive0"}}
|
|
|
|
{"return": {}}
|
|
|
|
|
|
|
|
--- Final Query ---
|
|
|
|
|
|
|
|
{
|
|
|
|
"bitmaps": {
|
|
|
|
"drive0": []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
--- Done ---
|
|
|
|
|