| 1 | Finishing a commit job with background reads |
| 2 | ============================================ |
| 3 | |
| 4 | === Create backing chain and start VM === |
| 5 | |
| 6 | === Start background read requests === |
| 7 | |
| 8 | === Run a commit job === |
| 9 | |
| 10 | {"execute": "block-commit", "arguments": {"auto-finalize": false, "device": "overlay", "job-id": "job0", "top-node": "mid"}} |
| 11 | {"return": {}} |
| 12 | {"execute": "job-finalize", "arguments": {"id": "job0"}} |
| 13 | {"return": {}} |
| 14 | {"data": {"id": "job0", "type": "commit"}, "event": "BLOCK_JOB_PENDING", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} |
| 15 | {"data": {"device": "job0", "len": 134217728, "offset": 134217728, "speed": 0, "type": "commit"}, "event": "BLOCK_JOB_COMPLETED", "timestamp": {"microseconds": "USECS", "seconds": "SECS"}} |
| 16 | |
| 17 | Closing the VM while a job is being cancelled |
| 18 | ============================================= |
| 19 | |
| 20 | === Create images and start VM === |
| 21 | |
| 22 | wrote 1048576/1048576 bytes at offset 0 |
| 23 | 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 24 | |
| 25 | === Start a mirror job === |
| 26 | |
| 27 | {"execute": "blockdev-mirror", "arguments": {"device": "src-throttled", "job-id": "job0", "sync": "full", "target": "dst"}} |
| 28 | {"return": {}} |
| 29 | {"execute": "block-job-cancel", "arguments": {"device": "job0"}} |
| 30 | {"return": {}} |
| 31 | {"execute": "quit", "arguments": {}} |
| 32 | {"return": {}} |