1QA output created by 244 2 3=== Create and open image with external data file === 4 5With data file name in the image: 6Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 7No errors were found on the image. 8read 65536/65536 bytes at offset 0 964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 10read 65536/65536 bytes at offset 0 1164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 12qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory 13no file open, try 'help open' 14 15Data file required, but without data file name in the image: 16qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' is required for this image 17no file open, try 'help open' 18read 65536/65536 bytes at offset 0 1964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 20qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory 21no file open, try 'help open' 22 23Setting data-file for an image with internal data: 24Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 25qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' can only be set for images with an external data file 26no file open, try 'help open' 27qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory 28no file open, try 'help open' 29 30=== Conflicting features === 31 32Convert to compressed target with data file: 33Formatting 'TEST_DIR/t.IMGFMT.src', fmt=IMGFMT size=67108864 34wrote 1048576/1048576 bytes at offset 0 351 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 36qemu-img: error while writing at byte 0: Operation not supported 37 38Convert uncompressed, then write compressed data manually: 39Images are identical. 40write failed: Operation not supported 41No errors were found on the image. 42 43Take an internal snapshot: 44qemu-img: Could not create snapshot 'test': -95 (Operation not supported) 45No errors were found on the image. 46 47=== Standalone image with external data file (efficient) === 48 49Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 50qcow2 file size before I/O: 196616 51 52wrote 4194304/4194304 bytes at offset 1048576 534 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 54discard 2097152/2097152 bytes at offset 2097152 552 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 56wrote 3145728/3145728 bytes at offset 3145728 573 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 58No errors were found on the image. 59 60[{ "start": 0, "length": 1048576, "depth": 0, "zero": true, "data": false}, 61{ "start": 1048576, "length": 1048576, "depth": 0, "zero": false, "data": true, "offset": 1048576}, 62{ "start": 2097152, "length": 2097152, "depth": 0, "zero": true, "data": false}, 63{ "start": 4194304, "length": 1048576, "depth": 0, "zero": true, "data": false, "offset": 4194304}, 64{ "start": 5242880, "length": 61865984, "depth": 0, "zero": true, "data": false}] 65 66read 1048576/1048576 bytes at offset 0 671 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 68read 1048576/1048576 bytes at offset 1048576 691 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 70read 4194304/4194304 bytes at offset 2097152 714 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 72 73read 1048576/1048576 bytes at offset 0 741 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 75read 1048576/1048576 bytes at offset 1048576 761 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 77read 1048576/1048576 bytes at offset 4194304 781 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 79read 1048576/1048576 bytes at offset 5242880 801 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 81qcow2 file size after I/O: 327680 82 83=== Standalone image with external data file (valid raw) === 84 85Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 86qcow2 file size before I/O: 327680 87 88wrote 4194304/4194304 bytes at offset 1048576 894 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 90discard 2097152/2097152 bytes at offset 2097152 912 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 92wrote 3145728/3145728 bytes at offset 3145728 933 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 94No errors were found on the image. 95 96[{ "start": 0, "length": 2097152, "depth": 0, "zero": false, "data": true, "offset": 0}, 97{ "start": 2097152, "length": 2097152, "depth": 0, "zero": true, "data": false}, 98{ "start": 4194304, "length": 2097152, "depth": 0, "zero": true, "data": false, "offset": 4194304}, 99{ "start": 6291456, "length": 60817408, "depth": 0, "zero": false, "data": true, "offset": 6291456}] 100 101read 1048576/1048576 bytes at offset 0 1021 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 103read 1048576/1048576 bytes at offset 1048576 1041 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 105read 4194304/4194304 bytes at offset 2097152 1064 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 107 108read 1048576/1048576 bytes at offset 0 1091 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 110read 1048576/1048576 bytes at offset 1048576 1111 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 112read 3145728/3145728 bytes at offset 3145728 1133 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 114qcow2 file size after I/O: 327680 115 116=== bdrv_co_block_status test for file and offset=0 === 117 118Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 119wrote 1048576/1048576 bytes at offset 0 1201 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 121read 1048576/1048576 bytes at offset 0 1221 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 123Offset Length Mapped to File 1240 0x100000 0 TEST_DIR/t.qcow2.data 125[{ "start": 0, "length": 1048576, "depth": 0, "zero": false, "data": true, "offset": 0}, 126{ "start": 1048576, "length": 66060288, "depth": 0, "zero": true, "data": false}] 127 128=== Copy offloading === 129 130Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 131Images are identical. 132Images are identical. 133 134=== Flushing should flush the data file === 135 136wrote 512/512 bytes at offset 0 137512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 138 139Success: qemu-io failed, so the data file was flushed 140 141=== Preallocation with data-file-raw === 142 143--- Using a non-zeroed data file --- 144wrote 1048576/1048576 bytes at offset 0 1451 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 146{ "execute": "qmp_capabilities" } 147{"return": {}} 148{ "execute": "blockdev-create", 149 "arguments": { 150 "job-id": "create", 151 "options": { 152 "driver": "IMGFMT", 153 "size": 1048576, 154 "file": "meta", 155 "data-file": "data", 156 "data-file-raw": true 157 } } } 158{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "created", "id": "create"}} 159{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "running", "id": "create"}} 160{"return": {}} 161{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "waiting", "id": "create"}} 162{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "pending", "id": "create"}} 163{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "concluded", "id": "create"}} 164{ "execute": "job-dismiss", "arguments": { "id": "create" } } 165{"timestamp": {"seconds": TIMESTAMP, "microseconds": TIMESTAMP}, "event": "JOB_STATUS_CHANGE", "data": {"status": "null", "id": "create"}} 166{"return": {}} 167 168Comparing pattern: 169read 1048576/1048576 bytes at offset 0 1701 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 171read 1048576/1048576 bytes at offset 0 1721 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 173Images are identical. 174 175--- Truncation (growing) --- 176wrote 1048576/1048576 bytes at offset 1048576 1771 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 178Image resized. 179 180Comparing pattern: 181read 1048576/1048576 bytes at offset 0 1821 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 183read 1048576/1048576 bytes at offset 1048576 1841 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 185read 1048576/1048576 bytes at offset 0 1861 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 187read 1048576/1048576 bytes at offset 1048576 1881 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 189Images are identical. 190 191--- Giving a backing file at runtime --- 192Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 193Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=1048576 194wrote 1048576/1048576 bytes at offset 0 1951 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 196 197Comparing qcow2 image and raw data file: 198Images are identical. 199*** done 200