blob: dbab7359a9a8adb6f1514503a2da1da9747e1f28 [file] [log] [blame]
Kevin Wolf76b90e22019-02-22 11:45:50 +01001QA 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)
Thomas Huth36b99862019-04-28 17:54:44 +020012qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory
Kevin Wolf76b90e22019-02-22 11:45:50 +010013no file open, try 'help open'
14
15Data file required, but without data file name in the image:
Thomas Huth36b99862019-04-28 17:54:44 +020016qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' is required for this image
Kevin Wolf76b90e22019-02-22 11:45:50 +010017no 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)
Thomas Huth36b99862019-04-28 17:54:44 +020020qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory
Kevin Wolf76b90e22019-02-22 11:45:50 +010021no file open, try 'help open'
22
23Setting data-file for an image with internal data:
24Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
Thomas Huth36b99862019-04-28 17:54:44 +020025qemu-io: can't open device TEST_DIR/t.qcow2: 'data-file' can only be set for images with an external data file
Kevin Wolf76b90e22019-02-22 11:45:50 +010026no file open, try 'help open'
Thomas Huth36b99862019-04-28 17:54:44 +020027qemu-io: can't open device TEST_DIR/t.qcow2: Could not open 'inexistent': No such file or directory
Kevin Wolf76b90e22019-02-22 11:45:50 +010028no 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)
Eric Blake39f77cb2020-04-02 08:57:17 -050036qemu-img: error while writing at byte 0: Operation not supported
Kevin Wolf76b90e22019-02-22 11:45:50 +010037
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)
Kevin Wolf76b90e22019-02-22 11:45:50 +010077read 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: 196616
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": 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
102read 1048576/1048576 bytes at offset 0
1031 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
104read 1048576/1048576 bytes at offset 1048576
1051 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
106read 4194304/4194304 bytes at offset 2097152
1074 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108
Paolo Bonzini3fb61082020-04-09 15:10:06 -0400109read 1048576/1048576 bytes at offset 0
1101 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
111read 1048576/1048576 bytes at offset 1048576
1121 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
113read 3145728/3145728 bytes at offset 3145728
1143 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Kevin Wolf76b90e22019-02-22 11:45:50 +0100115qcow2 file size after I/O: 327680
116
117=== bdrv_co_block_status test for file and offset=0 ===
118
119Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
120wrote 1048576/1048576 bytes at offset 0
1211 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
122read 1048576/1048576 bytes at offset 0
1231 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
124Offset Length Mapped to File
1250 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}]
Kevin Wolfa0cf8da2020-02-11 10:49:00 +0100128
129=== Copy offloading ===
130
131Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data
132Images are identical.
133Images are identical.
Kevin Wolf76b90e22019-02-22 11:45:50 +0100134*** done