2 Testcase non-persistent without restart
4 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": false}}
6 initial bitmap: name=bitmap0 dirty-clusters=1
7 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
9 check that no bitmaps are in snapshot: not found
10 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
12 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
13 {"execute": "block-job-complete", "arguments": {"device": "drive0"}}
15 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
16 check bitmap after commit: name=bitmap0 dirty-clusters=2
17 check updated bitmap: name=bitmap0 dirty-clusters=3
19 Testcase persistent without restart
21 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": true}}
23 initial bitmap: name=bitmap0 dirty-clusters=1
24 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
26 check that no bitmaps are in snapshot: not found
27 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
29 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
30 {"execute": "block-job-complete", "arguments": {"device": "drive0"}}
32 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
33 check bitmap after commit: name=bitmap0 dirty-clusters=2
34 check updated bitmap: name=bitmap0 dirty-clusters=3
36 Testcase persistent with restart
38 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": true}}
40 initial bitmap: name=bitmap0 dirty-clusters=1
41 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
43 check that no bitmaps are in snapshot: not found
45 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
47 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_READY", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
48 {"execute": "block-job-complete", "arguments": {"device": "drive0"}}
50 {"data": {"device": "drive0", "len": 65536, "offset": 65536, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}}
51 check bitmap after commit: name=bitmap0 dirty-clusters=2
52 check updated bitmap: name=bitmap0 dirty-clusters=3