Merge tag 'for-upstream-rust' of https://gitlab.com/bonzini/qemu into staging
[qemu/kevin.git] / tests / qemu-iotests / 260.out
blob2f0d98d03654c00e2e1d3cdb73c1033bd43b2fd3
2 Testcase non-persistent without restart
4 {"execute": "block-dirty-bitmap-add", "arguments": {"name": "bitmap0", "node": "drive0", "persistent": false}}
5 {"return": {}}
6 initial bitmap: name=bitmap0 dirty-clusters=1
7 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
8 {"return": {}}
9 check that no bitmaps are in snapshot: not found
10 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
11 {"return": {}}
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"}}
14 {"return": {}}
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}}
22 {"return": {}}
23 initial bitmap: name=bitmap0 dirty-clusters=1
24 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
25 {"return": {}}
26 check that no bitmaps are in snapshot: not found
27 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
28 {"return": {}}
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"}}
31 {"return": {}}
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}}
39 {"return": {}}
40 initial bitmap: name=bitmap0 dirty-clusters=1
41 {"execute": "blockdev-snapshot-sync", "arguments": {"device": "drive0", "format": "qcow2", "snapshot-file": "TEST_DIR/PID-top"}}
42 {"return": {}}
43 check that no bitmaps are in snapshot: not found
44 ... Restart ...
45 {"execute": "block-commit", "arguments": {"device": "drive0", "top": "TEST_DIR/PID-top"}}
46 {"return": {}}
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"}}
49 {"return": {}}
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