1QA output created by 223 2 3=== Create partially sparse image, then add dirty bitmaps === 4 5Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4194304 6wrote 2097152/2097152 bytes at offset 1048576 72 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 8Testing: 9QMP_VERSION 10{"return": {}} 11{"return": {}} 12{"return": {}} 13{"return": {}} 14{"return": {}} 15{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "SHUTDOWN", "data": {"guest": false, "reason": "host-qmp-quit"}} 16 17 18=== Write part of the file under active bitmap === 19 20wrote 512/512 bytes at offset 512 21512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 22wrote 2097152/2097152 bytes at offset 2097152 232 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 24 25=== End dirty bitmaps, and start serving image over NBD === 26 27{"return": {}} 28{"return": {}} 29{"return": {}} 30{"error": {"class": "GenericError", "desc": "NBD server not running"}} 31{"return": {}} 32{"error": {"class": "GenericError", "desc": "NBD server already running"}} 33{"return": {}} 34{"error": {"class": "GenericError", "desc": "Cannot find device=nosuch nor node_name=nosuch"}} 35{"error": {"class": "GenericError", "desc": "NBD server already has export named 'n'"}} 36{"error": {"class": "GenericError", "desc": "Enabled bitmap 'b2' incompatible with readonly export"}} 37{"error": {"class": "GenericError", "desc": "Bitmap 'b3' is not found"}} 38{"return": {}} 39 40=== Contrast normal status to large granularity dirty-bitmap === 41 42read 512/512 bytes at offset 512 43512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 44read 524288/524288 bytes at offset 524288 45512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 46read 1048576/1048576 bytes at offset 1048576 471 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 48read 2097152/2097152 bytes at offset 2097152 492 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 50[{ "start": 0, "length": 4096, "depth": 0, "zero": false, "data": true}, 51{ "start": 4096, "length": 1044480, "depth": 0, "zero": true, "data": false}, 52{ "start": 1048576, "length": 3145728, "depth": 0, "zero": false, "data": true}] 53[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": false}, 54{ "start": 65536, "length": 2031616, "depth": 0, "zero": false, "data": true}, 55{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}] 56 57=== Contrast to small granularity dirty-bitmap === 58 59[{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true}, 60{ "start": 512, "length": 512, "depth": 0, "zero": false, "data": false}, 61{ "start": 1024, "length": 2096128, "depth": 0, "zero": false, "data": true}, 62{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}] 63 64=== End qemu NBD server === 65 66{"return": {}} 67{"return": {}} 68{"error": {"class": "GenericError", "desc": "Export 'n2' is not found"}} 69{"return": {}} 70{"error": {"class": "GenericError", "desc": "NBD server not running"}} 71{"return": {}} 72 73=== Use qemu-nbd as server === 74 75[{ "start": 0, "length": 65536, "depth": 0, "zero": false, "data": false}, 76{ "start": 65536, "length": 2031616, "depth": 0, "zero": false, "data": true}, 77{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}] 78[{ "start": 0, "length": 512, "depth": 0, "zero": false, "data": true}, 79{ "start": 512, "length": 512, "depth": 0, "zero": false, "data": false}, 80{ "start": 1024, "length": 2096128, "depth": 0, "zero": false, "data": true}, 81{ "start": 2097152, "length": 2097152, "depth": 0, "zero": false, "data": false}] 82*** done 83