| 1 | QA output created by 312 |
| 2 | |
| 3 | ### Create all images |
| 4 | |
| 5 | Formatting 'TEST_DIR/t.IMGFMT.0', fmt=IMGFMT size=10485760 |
| 6 | Formatting 'TEST_DIR/t.IMGFMT.1', fmt=IMGFMT size=10485760 |
| 7 | Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=10485760 |
| 8 | Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=10485760 |
| 9 | |
| 10 | ### Output of qemu-img map (empty quorum) |
| 11 | |
| 12 | Offset Length File |
| 13 | |
| 14 | ### Write data to the quorum |
| 15 | |
| 16 | wrote 65536/65536 bytes at offset 65536 |
| 17 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 18 | wrote 196608/196608 bytes at offset 65536 |
| 19 | 192 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 20 | wrote 131072/131072 bytes at offset 65536 |
| 21 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 22 | wrote 262144/262144 bytes at offset 1048576 |
| 23 | 256 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 24 | wrote 65536/65536 bytes at offset 1114112 |
| 25 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 26 | wrote 196608/196608 bytes at offset 1114112 |
| 27 | 192 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 28 | wrote 131072/131072 bytes at offset 1114112 |
| 29 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 30 | wrote 65536/65536 bytes at offset 1376256 |
| 31 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 32 | wrote 196608/196608 bytes at offset 1376256 |
| 33 | 192 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 34 | wrote 131072/131072 bytes at offset 1376256 |
| 35 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 36 | wrote 65536/65536 bytes at offset 2097152 |
| 37 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 38 | wrote 196608/196608 bytes at offset 2097152 |
| 39 | 192 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 40 | wrote 131072/131072 bytes at offset 2097152 |
| 41 | 128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 42 | wrote 65536/65536 bytes at offset 2424832 |
| 43 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 44 | read 65536/65536 bytes at offset 2424832 |
| 45 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 46 | wrote 65536/65536 bytes at offset 2424832 |
| 47 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 48 | read 65536/65536 bytes at offset 2424832 |
| 49 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 50 | |
| 51 | ### Launch the drive-mirror job |
| 52 | |
| 53 | { 'execute': 'qmp_capabilities' } |
| 54 | {"return": {}} |
| 55 | {'execute': 'drive-mirror', |
| 56 | 'arguments': {'device': 'virtio0', |
| 57 | 'format': 'IMGFMT', |
| 58 | 'target': 'TEST_DIR/t.IMGFMT.3', |
| 59 | 'sync': 'full', |
| 60 | 'mode': 'existing' }} |
| 61 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "virtio0"}} |
| 62 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "virtio0"}} |
| 63 | {"return": {}} |
| 64 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "ready", "id": "virtio0"}} |
| 65 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_READY", "data": {"device": "virtio0", "len": 10485760, "offset": 10485760, "speed": 0, "type": "mirror"}} |
| 66 | { 'execute': 'block-job-complete', |
| 67 | 'arguments': { 'device': 'virtio0' } } |
| 68 | {"return": {}} |
| 69 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "virtio0"}} |
| 70 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "virtio0"}} |
| 71 | {"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "BLOCK_JOB_COMPLETED", "data": {"device": "virtio0", "len": 10485760, "offset": 10485760, "speed": 0, "type": "mirror"}} |
| 72 | { 'execute': 'quit' } |
| 73 | |
| 74 | ### Output of qemu-img map (destination image) |
| 75 | |
| 76 | Offset Length File |
| 77 | 0x10000 0x30000 TEST_DIR/t.IMGFMT.3 |
| 78 | 0x100000 0x10000 TEST_DIR/t.IMGFMT.3 |
| 79 | 0x120000 0x20000 TEST_DIR/t.IMGFMT.3 |
| 80 | 0x200000 0x20000 TEST_DIR/t.IMGFMT.3 |
| 81 | *** done |