1 QA output created by 244 2 3 === Create and open image with external data file === 4 5 With data file name in the image: 6 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 7 No errors were found on the image. 8 read 65536/65536 bytes at offset 0 9 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 10 read 65536/65536 bytes at offset 0 11 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 12 qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory 13 no file open, try 'help open' 14 15 Data file required, but without data file name in the image: 16 qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' is required for this image 17 no file open, try 'help open' 18 read 65536/65536 bytes at offset 0 19 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 20 qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory 21 no file open, try 'help open' 22 23 Setting data-file for an image with internal data: 24 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 25 qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' can only be set for images with an external data file 26 no file open, try 'help open' 27 qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory 28 no file open, try 'help open' 29 30 === Conflicting features === 31 32 Convert to compressed target with data file: 33 Formatting 'TEST_DIR/t.IMGFMT.src', fmt=IMGFMT size=67108864 34 wrote 1048576/1048576 bytes at offset 0 35 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 36 qemu-img: error while writing at byte 0: Operation not supported 37 38 Convert uncompressed, then write compressed data manually: 39 Images are identical. 40 write failed: Operation not supported 41 No errors were found on the image. 42 43 Take an internal snapshot: 44 qemu-img: Could not create snapshot 'test': -95 (Operation not supported) 45 No errors were found on the image. 46 47 === Standalone image with external data file (efficient) === 48 49 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 50 qcow2 file size before I/O: 196616 51 52 wrote 4194304/4194304 bytes at offset 1048576 53 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 54 discard 2097152/2097152 bytes at offset 2097152 55 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 56 wrote 3145728/3145728 bytes at offset 3145728 57 3 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 58 No 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 66 read 1048576/1048576 bytes at offset 0 67 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 68 read 1048576/1048576 bytes at offset 1048576 69 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 70 read 4194304/4194304 bytes at offset 2097152 71 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 72 73 read 1048576/1048576 bytes at offset 0 74 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 75 read 1048576/1048576 bytes at offset 1048576 76 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 77 read 1048576/1048576 bytes at offset 4194304 78 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 79 read 1048576/1048576 bytes at offset 5242880 80 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 81 qcow2 file size after I/O: 327680 82 83 === Standalone image with external data file (valid raw) === 84 85 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 86 qcow2 file size before I/O: 196616 87 88 wrote 4194304/4194304 bytes at offset 1048576 89 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 90 discard 2097152/2097152 bytes at offset 2097152 91 2 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 92 wrote 3145728/3145728 bytes at offset 3145728 93 3 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 94 No errors were found on the image. 95 96 [{ "start": 0, "length": 1048576, "depth": 0, "zero": true, "data": false}, 97 { "start": 1048576, "length": 1048576, "depth": 0, "zero": false, "data": true, "offset": 1048576}, 98 { "start": 2097152, "length": 2097152, "depth": 0, "zero": true, "data": false}, 99 { "start": 4194304, "length": 1048576, "depth": 0, "zero": true, "data": false, "offset": 4194304}, 100 { "start": 5242880, "length": 61865984, "depth": 0, "zero": true, "data": false}] 101 102 read 1048576/1048576 bytes at offset 0 103 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 104 read 1048576/1048576 bytes at offset 1048576 105 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 106 read 4194304/4194304 bytes at offset 2097152 107 4 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 108 109 read 1048576/1048576 bytes at offset 0 110 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 111 read 1048576/1048576 bytes at offset 1048576 112 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 113 read 3145728/3145728 bytes at offset 3145728 114 3 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 115 qcow2 file size after I/O: 327680 116 117 === bdrv_co_block_status test for file and offset=0 === 118 119 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 120 wrote 1048576/1048576 bytes at offset 0 121 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 122 read 1048576/1048576 bytes at offset 0 123 1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 124 Offset Length Mapped to File 125 0 0x100000 0 TEST_DIR/t.qcow2.data 126 [{ "start": 0, "length": 1048576, "depth": 0, "zero": false, "data": true, "offset": 0}, 127 { "start": 1048576, "length": 66060288, "depth": 0, "zero": true, "data": false}] 128 129 === Copy offloading === 130 131 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 132 Images are identical. 133 Images are identical. 134 135 === Flushing should flush the data file === 136 137 wrote 512/512 bytes at offset 0 138 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 139 140 Success: qemu-io failed, so the data file was flushed 141 *** done 142