qemu

FORK: QEMU emulator
git clone https://git.neptards.moe/neptards/qemu.git
Log | Files | Refs | Submodules | LICENSE

271.out (29866B)


      1 QA output created by 271
      2 
      3 ### Standard write tests (backing file: yes) ###
      4 
      5 Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=1048576
      6 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=1048576
      7 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
      8 write -q -P PATTERN 0 1k
      9 L2 entry #0: 0x8000000000050000 0000000000000001
     10 write -q -P PATTERN 3k 512
     11 L2 entry #0: 0x8000000000050000 0000000000000003
     12 write -q -P PATTERN 5k 1k
     13 L2 entry #0: 0x8000000000050000 0000000000000007
     14 write -q -P PATTERN 6k 2k
     15 L2 entry #0: 0x8000000000050000 000000000000000f
     16 write -q -P PATTERN 8k 6k
     17 L2 entry #0: 0x8000000000050000 000000000000007f
     18 write -q -P PATTERN 15k 4k
     19 L2 entry #0: 0x8000000000050000 00000000000003ff
     20 write -q -P PATTERN 32k 1k
     21 L2 entry #0: 0x8000000000050000 00000000000103ff
     22 write -q -P PATTERN 63k 4k
     23 L2 entry #0: 0x8000000000050000 00000000800103ff
     24 L2 entry #1: 0x8000000000060000 0000000000000003
     25 write -q -z 2k 2k
     26 L2 entry #0: 0x8000000000050000 00000002800103fd
     27 write -q -z 0 64k
     28 L2 entry #0: 0x8000000000050000 ffffffff00000000
     29 write -q -P PATTERN 0 64k
     30 L2 entry #0: 0x8000000000050000 00000000ffffffff
     31 write -q -z -u 0 32k
     32 L2 entry #0: 0x8000000000050000 0000ffffffff0000
     33 write -q -z -u 0 64k
     34 L2 entry #0: 0x0000000000000000 ffffffff00000000
     35 write -q -P PATTERN 3k 512
     36 L2 entry #0: 0x8000000000050000 fffffffd00000002
     37 write -q -P PATTERN 0 64k
     38 L2 entry #0: 0x8000000000050000 00000000ffffffff
     39 discard -q 0 64k
     40 L2 entry #0: 0x0000000000000000 ffffffff00000000
     41 write -q -c -P PATTERN 0 64k
     42 L2 entry #0: 0x4000000000050000 0000000000000000
     43 write -q -P PATTERN 3k 512
     44 L2 entry #0: 0x8000000000070000 00000000ffffffff
     45 
     46 ### Standard write tests (backing file: no) ###
     47 
     48 Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=1048576
     49 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
     50 write -q -P PATTERN 0 1k
     51 L2 entry #0: 0x8000000000050000 0000000000000001
     52 write -q -P PATTERN 3k 512
     53 L2 entry #0: 0x8000000000050000 0000000000000003
     54 write -q -P PATTERN 5k 1k
     55 L2 entry #0: 0x8000000000050000 0000000000000007
     56 write -q -P PATTERN 6k 2k
     57 L2 entry #0: 0x8000000000050000 000000000000000f
     58 write -q -P PATTERN 8k 6k
     59 L2 entry #0: 0x8000000000050000 000000000000007f
     60 write -q -P PATTERN 15k 4k
     61 L2 entry #0: 0x8000000000050000 00000000000003ff
     62 write -q -P PATTERN 32k 1k
     63 L2 entry #0: 0x8000000000050000 00000000000103ff
     64 write -q -P PATTERN 63k 4k
     65 L2 entry #0: 0x8000000000050000 00000000800103ff
     66 L2 entry #1: 0x8000000000060000 0000000000000003
     67 write -q -z 2k 2k
     68 L2 entry #0: 0x8000000000050000 00000002800103fd
     69 write -q -z 0 64k
     70 L2 entry #0: 0x8000000000050000 ffffffff00000000
     71 write -q -P PATTERN 0 64k
     72 L2 entry #0: 0x8000000000050000 00000000ffffffff
     73 write -q -z -u 0 32k
     74 L2 entry #0: 0x8000000000050000 0000ffffffff0000
     75 write -q -z -u 0 64k
     76 L2 entry #0: 0x0000000000000000 ffffffff00000000
     77 write -q -P PATTERN 3k 512
     78 L2 entry #0: 0x8000000000050000 fffffffd00000002
     79 write -q -P PATTERN 0 64k
     80 L2 entry #0: 0x8000000000050000 00000000ffffffff
     81 discard -q 0 64k
     82 L2 entry #0: 0x0000000000000000 ffffffff00000000
     83 write -q -c -P PATTERN 0 64k
     84 L2 entry #0: 0x4000000000050000 0000000000000000
     85 write -q -P PATTERN 3k 512
     86 L2 entry #0: 0x8000000000070000 00000000ffffffff
     87 
     88 ### Overwriting several clusters without COW ###
     89 
     90 Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=1048576
     91 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
     92 write -q -P PATTERN 24k 40k
     93 L2 entry #0: 0x8000000000050000 00000000fffff000
     94 write -q -P PATTERN 90k 2k
     95 L2 entry #1: 0x8000000000060000 0000000000002000
     96 write -q -P PATTERN 156k 2k
     97 L2 entry #2: 0x8000000000070000 0000000000004000
     98 write -q -z 156k 2k
     99 L2 entry #2: 0x8000000000070000 0000400000000000
    100 write -q -P PATTERN 192k 34k
    101 L2 entry #3: 0x8000000000080000 000000000001ffff
    102 write -q -P PATTERN 24k 192k
    103 L2 entry #0: 0x8000000000050000 00000000fffff000
    104 L2 entry #1: 0x8000000000060000 00000000ffffffff
    105 L2 entry #2: 0x8000000000070000 00000000ffffffff
    106 L2 entry #3: 0x8000000000080000 000000000001ffff
    107 
    108 ### Writing zeroes 1: unallocated clusters (backing file: yes) ###
    109 
    110 Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
    111 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=2132992
    112 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    113 write -q -z 0 192k
    114 L2 entry #0: 0x0000000000000000 ffffffff00000000
    115 L2 entry #1: 0x0000000000000000 ffffffff00000000
    116 L2 entry #2: 0x0000000000000000 ffffffff00000000
    117 write -q -z 224k 128k
    118 L2 entry #3: 0x0000000000000000 ffff000000000000
    119 L2 entry #4: 0x0000000000000000 ffffffff00000000
    120 L2 entry #5: 0x0000000000000000 0000ffff00000000
    121 write -q -z 415k 128k
    122 L2 entry #6: 0x8000000000050000 ffff000000008000
    123 L2 entry #7: 0x0000000000000000 ffffffff00000000
    124 L2 entry #8: 0x8000000000060000 00007fff00008000
    125 
    126 ### Writing zeroes 2: allocated clusters (backing file: yes) ###
    127 
    128 write -q -P PATTERN 576k 576k
    129 L2 entry #9: 0x8000000000070000 00000000ffffffff
    130 L2 entry #10: 0x8000000000080000 00000000ffffffff
    131 L2 entry #11: 0x8000000000090000 00000000ffffffff
    132 L2 entry #12: 0x80000000000a0000 00000000ffffffff
    133 L2 entry #13: 0x80000000000b0000 00000000ffffffff
    134 L2 entry #14: 0x80000000000c0000 00000000ffffffff
    135 L2 entry #15: 0x80000000000d0000 00000000ffffffff
    136 L2 entry #16: 0x80000000000e0000 00000000ffffffff
    137 L2 entry #17: 0x80000000000f0000 00000000ffffffff
    138 write -q -z 576k 192k
    139 L2 entry #9: 0x8000000000070000 ffffffff00000000
    140 L2 entry #10: 0x8000000000080000 ffffffff00000000
    141 L2 entry #11: 0x8000000000090000 ffffffff00000000
    142 write -q -z 800k 128k
    143 L2 entry #12: 0x80000000000a0000 ffff00000000ffff
    144 L2 entry #13: 0x80000000000b0000 ffffffff00000000
    145 L2 entry #14: 0x80000000000c0000 0000ffffffff0000
    146 write -q -z 991k 128k
    147 L2 entry #15: 0x80000000000d0000 ffff00000000ffff
    148 L2 entry #16: 0x80000000000e0000 ffffffff00000000
    149 L2 entry #17: 0x80000000000f0000 00007fffffff8000
    150 
    151 ### Writing zeroes 3: compressed clusters (backing file: yes) ###
    152 
    153 write -q -c -P PATTERN 1152k 64k
    154 L2 entry #18: 0x4000000000100000 0000000000000000
    155 write -q -c -P PATTERN 1216k 64k
    156 L2 entry #19: 0x4000000000110000 0000000000000000
    157 write -q -c -P PATTERN 1280k 64k
    158 L2 entry #20: 0x4000000000120000 0000000000000000
    159 write -q -c -P PATTERN 1344k 64k
    160 L2 entry #21: 0x4000000000130000 0000000000000000
    161 write -q -c -P PATTERN 1408k 64k
    162 L2 entry #22: 0x4000000000140000 0000000000000000
    163 write -q -c -P PATTERN 1472k 64k
    164 L2 entry #23: 0x4000000000150000 0000000000000000
    165 write -q -c -P PATTERN 1536k 64k
    166 L2 entry #24: 0x4000000000160000 0000000000000000
    167 write -q -c -P PATTERN 1600k 64k
    168 L2 entry #25: 0x4000000000170000 0000000000000000
    169 write -q -c -P PATTERN 1664k 64k
    170 L2 entry #26: 0x4000000000180000 0000000000000000
    171 write -q -c -P PATTERN 1728k 64k
    172 L2 entry #27: 0x4000000000190000 0000000000000000
    173 write -q -c -P PATTERN 1792k 64k
    174 L2 entry #28: 0x40000000001a0000 0000000000000000
    175 write -q -z 1152k 192k
    176 L2 entry #18: 0x0000000000000000 ffffffff00000000
    177 L2 entry #19: 0x0000000000000000 ffffffff00000000
    178 L2 entry #20: 0x0000000000000000 ffffffff00000000
    179 write -q -z 1376k 128k
    180 L2 entry #21: 0x8000000000100000 00000000ffffffff
    181 L2 entry #22: 0x8000000000110000 00000000ffffffff
    182 L2 entry #23: 0x8000000000120000 00000000ffffffff
    183 write -q -z 1567k 129k
    184 L2 entry #24: 0x8000000000130000 00000000ffffffff
    185 L2 entry #25: 0x8000000000140000 00000000ffffffff
    186 L2 entry #26: 0x8000000000150000 00000000ffffffff
    187 write -q -z 1759k 128k
    188 L2 entry #27: 0x8000000000160000 ffff00000000ffff
    189 L2 entry #28: 0x0000000000000000 ffffffff00000000
    190 L2 entry #29: 0x8000000000170000 00007fff00008000
    191 
    192 ### Writing zeroes 4: other tests (backing file: yes) ###
    193 
    194 write -q -z 1951k 8k
    195 L2 entry #30: 0x8000000000180000 0007000000088000
    196 write -q -z 2048k 35k
    197 L2 entry #32: 0x0000000000000000 0003ffff00000000
    198 
    199 ### Writing zeroes 1: unallocated clusters (backing file: no) ###
    200 
    201 Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
    202 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992
    203 write -q -z 0 192k
    204 L2 entry #0: 0x0000000000000000 ffffffff00000000
    205 L2 entry #1: 0x0000000000000000 ffffffff00000000
    206 L2 entry #2: 0x0000000000000000 ffffffff00000000
    207 write -q -z 224k 128k
    208 L2 entry #3: 0x0000000000000000 ffff000000000000
    209 L2 entry #4: 0x0000000000000000 ffffffff00000000
    210 L2 entry #5: 0x0000000000000000 0000ffff00000000
    211 write -q -z 415k 128k
    212 L2 entry #6: 0x0000000000000000 ffff800000000000
    213 L2 entry #7: 0x0000000000000000 ffffffff00000000
    214 L2 entry #8: 0x0000000000000000 0000ffff00000000
    215 
    216 ### Writing zeroes 2: allocated clusters (backing file: no) ###
    217 
    218 write -q -P PATTERN 576k 576k
    219 L2 entry #9: 0x8000000000050000 00000000ffffffff
    220 L2 entry #10: 0x8000000000060000 00000000ffffffff
    221 L2 entry #11: 0x8000000000070000 00000000ffffffff
    222 L2 entry #12: 0x8000000000080000 00000000ffffffff
    223 L2 entry #13: 0x8000000000090000 00000000ffffffff
    224 L2 entry #14: 0x80000000000a0000 00000000ffffffff
    225 L2 entry #15: 0x80000000000b0000 00000000ffffffff
    226 L2 entry #16: 0x80000000000c0000 00000000ffffffff
    227 L2 entry #17: 0x80000000000d0000 00000000ffffffff
    228 write -q -z 576k 192k
    229 L2 entry #9: 0x8000000000050000 ffffffff00000000
    230 L2 entry #10: 0x8000000000060000 ffffffff00000000
    231 L2 entry #11: 0x8000000000070000 ffffffff00000000
    232 write -q -z 800k 128k
    233 L2 entry #12: 0x8000000000080000 ffff00000000ffff
    234 L2 entry #13: 0x8000000000090000 ffffffff00000000
    235 L2 entry #14: 0x80000000000a0000 0000ffffffff0000
    236 write -q -z 991k 128k
    237 L2 entry #15: 0x80000000000b0000 ffff00000000ffff
    238 L2 entry #16: 0x80000000000c0000 ffffffff00000000
    239 L2 entry #17: 0x80000000000d0000 00007fffffff8000
    240 
    241 ### Writing zeroes 3: compressed clusters (backing file: no) ###
    242 
    243 write -q -c -P PATTERN 1152k 64k
    244 L2 entry #18: 0x40000000000e0000 0000000000000000
    245 write -q -c -P PATTERN 1216k 64k
    246 L2 entry #19: 0x40000000000f0000 0000000000000000
    247 write -q -c -P PATTERN 1280k 64k
    248 L2 entry #20: 0x4000000000100000 0000000000000000
    249 write -q -c -P PATTERN 1344k 64k
    250 L2 entry #21: 0x4000000000110000 0000000000000000
    251 write -q -c -P PATTERN 1408k 64k
    252 L2 entry #22: 0x4000000000120000 0000000000000000
    253 write -q -c -P PATTERN 1472k 64k
    254 L2 entry #23: 0x4000000000130000 0000000000000000
    255 write -q -c -P PATTERN 1536k 64k
    256 L2 entry #24: 0x4000000000140000 0000000000000000
    257 write -q -c -P PATTERN 1600k 64k
    258 L2 entry #25: 0x4000000000150000 0000000000000000
    259 write -q -c -P PATTERN 1664k 64k
    260 L2 entry #26: 0x4000000000160000 0000000000000000
    261 write -q -c -P PATTERN 1728k 64k
    262 L2 entry #27: 0x4000000000170000 0000000000000000
    263 write -q -c -P PATTERN 1792k 64k
    264 L2 entry #28: 0x4000000000180000 0000000000000000
    265 write -q -z 1152k 192k
    266 L2 entry #18: 0x0000000000000000 ffffffff00000000
    267 L2 entry #19: 0x0000000000000000 ffffffff00000000
    268 L2 entry #20: 0x0000000000000000 ffffffff00000000
    269 write -q -z 1376k 128k
    270 L2 entry #21: 0x80000000000e0000 00000000ffffffff
    271 L2 entry #22: 0x80000000000f0000 00000000ffffffff
    272 L2 entry #23: 0x8000000000100000 00000000ffffffff
    273 write -q -z 1567k 129k
    274 L2 entry #24: 0x8000000000110000 00000000ffffffff
    275 L2 entry #25: 0x8000000000120000 00000000ffffffff
    276 L2 entry #26: 0x8000000000130000 00000000ffffffff
    277 write -q -z 1759k 128k
    278 L2 entry #27: 0x8000000000140000 ffff00000000ffff
    279 L2 entry #28: 0x0000000000000000 ffffffff00000000
    280 L2 entry #29: 0x0000000000000000 0000ffff00000000
    281 
    282 ### Writing zeroes 4: other tests (backing file: no) ###
    283 
    284 write -q -z 1951k 8k
    285 L2 entry #30: 0x0000000000000000 000f800000000000
    286 write -q -z 2048k 35k
    287 L2 entry #32: 0x0000000000000000 0003ffff00000000
    288 
    289 ### Zero + unmap 1: allocated clusters (backing file: yes) ###
    290 
    291 Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
    292 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=2132992
    293 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    294 write -q -P PATTERN 576k 576k
    295 L2 entry #9: 0x8000000000050000 00000000ffffffff
    296 L2 entry #10: 0x8000000000060000 00000000ffffffff
    297 L2 entry #11: 0x8000000000070000 00000000ffffffff
    298 L2 entry #12: 0x8000000000080000 00000000ffffffff
    299 L2 entry #13: 0x8000000000090000 00000000ffffffff
    300 L2 entry #14: 0x80000000000a0000 00000000ffffffff
    301 L2 entry #15: 0x80000000000b0000 00000000ffffffff
    302 L2 entry #16: 0x80000000000c0000 00000000ffffffff
    303 L2 entry #17: 0x80000000000d0000 00000000ffffffff
    304 write -q -z -u 576k 192k
    305 L2 entry #9: 0x0000000000000000 ffffffff00000000
    306 L2 entry #10: 0x0000000000000000 ffffffff00000000
    307 L2 entry #11: 0x0000000000000000 ffffffff00000000
    308 write -q -z -u 800k 128k
    309 L2 entry #12: 0x8000000000080000 ffff00000000ffff
    310 L2 entry #13: 0x0000000000000000 ffffffff00000000
    311 L2 entry #14: 0x80000000000a0000 0000ffffffff0000
    312 write -q -z -u 991k 128k
    313 L2 entry #15: 0x80000000000b0000 ffff00000000ffff
    314 L2 entry #16: 0x0000000000000000 ffffffff00000000
    315 L2 entry #17: 0x80000000000d0000 00007fffffff8000
    316 
    317 ### Zero + unmap 2: compressed clusters (backing file: yes) ###
    318 
    319 write -q -c -P PATTERN 1152k 64k
    320 L2 entry #18: 0x4000000000050000 0000000000000000
    321 write -q -c -P PATTERN 1216k 64k
    322 L2 entry #19: 0x4000000000060000 0000000000000000
    323 write -q -c -P PATTERN 1280k 64k
    324 L2 entry #20: 0x4000000000070000 0000000000000000
    325 write -q -c -P PATTERN 1344k 64k
    326 L2 entry #21: 0x4000000000090000 0000000000000000
    327 write -q -c -P PATTERN 1408k 64k
    328 L2 entry #22: 0x40000000000c0000 0000000000000000
    329 write -q -c -P PATTERN 1472k 64k
    330 L2 entry #23: 0x40000000000e0000 0000000000000000
    331 write -q -c -P PATTERN 1536k 64k
    332 L2 entry #24: 0x40000000000f0000 0000000000000000
    333 write -q -c -P PATTERN 1600k 64k
    334 L2 entry #25: 0x4000000000100000 0000000000000000
    335 write -q -c -P PATTERN 1664k 64k
    336 L2 entry #26: 0x4000000000110000 0000000000000000
    337 write -q -c -P PATTERN 1728k 64k
    338 L2 entry #27: 0x4000000000120000 0000000000000000
    339 write -q -c -P PATTERN 1792k 64k
    340 L2 entry #28: 0x4000000000130000 0000000000000000
    341 write -q -z -u 1152k 192k
    342 L2 entry #18: 0x0000000000000000 ffffffff00000000
    343 L2 entry #19: 0x0000000000000000 ffffffff00000000
    344 L2 entry #20: 0x0000000000000000 ffffffff00000000
    345 write -q -z -u 1376k 128k
    346 L2 entry #21: 0x8000000000050000 00000000ffffffff
    347 L2 entry #22: 0x8000000000060000 00000000ffffffff
    348 L2 entry #23: 0x8000000000070000 00000000ffffffff
    349 write -q -z -u 1567k 129k
    350 L2 entry #24: 0x8000000000090000 00000000ffffffff
    351 L2 entry #25: 0x80000000000e0000 00000000ffffffff
    352 L2 entry #26: 0x80000000000f0000 00000000ffffffff
    353 write -q -z -u 1759k 128k
    354 L2 entry #27: 0x80000000000c0000 ffff00000000ffff
    355 L2 entry #28: 0x0000000000000000 ffffffff00000000
    356 L2 entry #29: 0x8000000000100000 00007fff00008000
    357 
    358 ### Zero + unmap 1: allocated clusters (backing file: no) ###
    359 
    360 Formatting 'TEST_DIR/t.IMGFMT.raw', fmt=raw size=2132992
    361 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=2132992
    362 write -q -P PATTERN 576k 576k
    363 L2 entry #9: 0x8000000000050000 00000000ffffffff
    364 L2 entry #10: 0x8000000000060000 00000000ffffffff
    365 L2 entry #11: 0x8000000000070000 00000000ffffffff
    366 L2 entry #12: 0x8000000000080000 00000000ffffffff
    367 L2 entry #13: 0x8000000000090000 00000000ffffffff
    368 L2 entry #14: 0x80000000000a0000 00000000ffffffff
    369 L2 entry #15: 0x80000000000b0000 00000000ffffffff
    370 L2 entry #16: 0x80000000000c0000 00000000ffffffff
    371 L2 entry #17: 0x80000000000d0000 00000000ffffffff
    372 write -q -z -u 576k 192k
    373 L2 entry #9: 0x0000000000000000 ffffffff00000000
    374 L2 entry #10: 0x0000000000000000 ffffffff00000000
    375 L2 entry #11: 0x0000000000000000 ffffffff00000000
    376 write -q -z -u 800k 128k
    377 L2 entry #12: 0x8000000000080000 ffff00000000ffff
    378 L2 entry #13: 0x0000000000000000 ffffffff00000000
    379 L2 entry #14: 0x80000000000a0000 0000ffffffff0000
    380 write -q -z -u 991k 128k
    381 L2 entry #15: 0x80000000000b0000 ffff00000000ffff
    382 L2 entry #16: 0x0000000000000000 ffffffff00000000
    383 L2 entry #17: 0x80000000000d0000 00007fffffff8000
    384 
    385 ### Zero + unmap 2: compressed clusters (backing file: no) ###
    386 
    387 write -q -c -P PATTERN 1152k 64k
    388 L2 entry #18: 0x4000000000050000 0000000000000000
    389 write -q -c -P PATTERN 1216k 64k
    390 L2 entry #19: 0x4000000000060000 0000000000000000
    391 write -q -c -P PATTERN 1280k 64k
    392 L2 entry #20: 0x4000000000070000 0000000000000000
    393 write -q -c -P PATTERN 1344k 64k
    394 L2 entry #21: 0x4000000000090000 0000000000000000
    395 write -q -c -P PATTERN 1408k 64k
    396 L2 entry #22: 0x40000000000c0000 0000000000000000
    397 write -q -c -P PATTERN 1472k 64k
    398 L2 entry #23: 0x40000000000e0000 0000000000000000
    399 write -q -c -P PATTERN 1536k 64k
    400 L2 entry #24: 0x40000000000f0000 0000000000000000
    401 write -q -c -P PATTERN 1600k 64k
    402 L2 entry #25: 0x4000000000100000 0000000000000000
    403 write -q -c -P PATTERN 1664k 64k
    404 L2 entry #26: 0x4000000000110000 0000000000000000
    405 write -q -c -P PATTERN 1728k 64k
    406 L2 entry #27: 0x4000000000120000 0000000000000000
    407 write -q -c -P PATTERN 1792k 64k
    408 L2 entry #28: 0x4000000000130000 0000000000000000
    409 write -q -z -u 1152k 192k
    410 L2 entry #18: 0x0000000000000000 ffffffff00000000
    411 L2 entry #19: 0x0000000000000000 ffffffff00000000
    412 L2 entry #20: 0x0000000000000000 ffffffff00000000
    413 write -q -z -u 1376k 128k
    414 L2 entry #21: 0x8000000000050000 00000000ffffffff
    415 L2 entry #22: 0x8000000000060000 00000000ffffffff
    416 L2 entry #23: 0x8000000000070000 00000000ffffffff
    417 write -q -z -u 1567k 129k
    418 L2 entry #24: 0x8000000000090000 00000000ffffffff
    419 L2 entry #25: 0x80000000000e0000 00000000ffffffff
    420 L2 entry #26: 0x80000000000f0000 00000000ffffffff
    421 write -q -z -u 1759k 128k
    422 L2 entry #27: 0x80000000000c0000 ffff00000000ffff
    423 L2 entry #28: 0x0000000000000000 ffffffff00000000
    424 L2 entry #29: 0x0000000000000000 0000ffff00000000
    425 
    426 ### Discarding clusters with non-zero bitmaps (backing file: yes) ###
    427 
    428 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    429 L2 entry #0: 0x0000000000000000 ffffffff00000000
    430 L2 entry #1: 0x0000000000000000 ffffffff00000000
    431 Image resized.
    432 Image resized.
    433 L2 entry #0: 0x0000000000000000 ffffffff00000000
    434 L2 entry #1: 0x0000000000000000 ffffffff00000000
    435 
    436 ### Discarding clusters with non-zero bitmaps (backing file: no) ###
    437 
    438 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    439 L2 entry #0: 0x0000000000000000 ffffffff00000000
    440 L2 entry #1: 0x0000000000000000 ffffffff00000000
    441 Image resized.
    442 Image resized.
    443 L2 entry #0: 0x0000000000000000 0000ffff00000000
    444 L2 entry #1: 0x0000000000000000 0000000000000000
    445 
    446 ### Corrupted L2 entries - read test (allocated) ###
    447 
    448 # 'cluster is zero' bit set on the standard cluster descriptor
    449 
    450 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    451 L2 entry #0: 0x8000000000050001 0000000000000001
    452 L2 entry #0: 0x8000000000050001 0000000000000001
    453 
    454 # Both 'subcluster is zero' and 'subcluster is allocated' bits set
    455 
    456 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    457 L2 entry #1: 0x8000000000060000 00000001ffffffff
    458 qcow2: Marking image as corrupt: Invalid cluster entry found  (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
    459 read failed: Input/output error
    460 
    461 ### Corrupted L2 entries - read test (unallocated) ###
    462 
    463 # 'cluster is zero' bit set on the standard cluster descriptor
    464 
    465 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    466 L2 entry #0: 0x0000000000000001 0000000000000000
    467 L2 entry #0: 0x0000000000000001 0000000000000000
    468 
    469 # 'subcluster is allocated' bit set
    470 
    471 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    472 L2 entry #0: 0x0000000000000000 0000000000000001
    473 qcow2: Marking image as corrupt: Invalid cluster entry found  (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
    474 read failed: Input/output error
    475 
    476 # Both 'subcluster is zero' and 'subcluster is allocated' bits set
    477 
    478 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    479 L2 entry #1: 0x0000000000000000 0000000100000001
    480 qcow2: Marking image as corrupt: Invalid cluster entry found  (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
    481 read failed: Input/output error
    482 
    483 ### Compressed cluster with subcluster bitmap != 0 - read test ###
    484 
    485 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    486 L2 entry #0: 0x4000000000050000 0000000180000000
    487 read 65536/65536 bytes at offset 0
    488 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    489 L2 entry #0: 0x4000000000050000 0000000180000000
    490 
    491 ### Corrupted L2 entries - write test (allocated) ###
    492 
    493 # 'cluster is zero' bit set on the standard cluster descriptor
    494 
    495 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    496 L2 entry #0: 0x8000000000050001 0000000000000001
    497 L2 entry #0: 0x8000000000050001 0000000000000001
    498 
    499 # Both 'subcluster is zero' and 'subcluster is allocated' bits set
    500 
    501 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    502 L2 entry #1: 0x8000000000060000 00000001ffffffff
    503 qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
    504 write failed: Input/output error
    505 
    506 ### Corrupted L2 entries - write test (unallocated) ###
    507 
    508 # 'cluster is zero' bit set on the standard cluster descriptor
    509 
    510 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    511 L2 entry #0: 0x0000000000000001 0000000000000000
    512 L2 entry #0: 0x8000000000060000 0000000000000001
    513 
    514 # 'subcluster is allocated' bit set
    515 
    516 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    517 L2 entry #0: 0x0000000000000000 0000000000000001
    518 qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
    519 write failed: Input/output error
    520 
    521 # Both 'subcluster is zero' and 'subcluster is allocated' bits set
    522 
    523 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    524 L2 entry #1: 0x0000000000000000 0000000100000001
    525 qcow2: Marking image as corrupt: Invalid cluster entry found (L2 offset: 0x40000, L2 index: 0x1); further corruption events will be suppressed
    526 write failed: Input/output error
    527 
    528 ### Compressed cluster with subcluster bitmap != 0 - write test ###
    529 
    530 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    531 L2 entry #0: 0x4000000000050000 0000000180000000
    532 wrote 65536/65536 bytes at offset 0
    533 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    534 L2 entry #0: 0x8000000000060000 00000000ffffffff
    535 
    536 ### Detect and repair unaligned clusters ###
    537 
    538 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=131072
    539 # Corrupted L2 entry, allocated subcluster #
    540 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    541 ERROR offset=50200: Data cluster is not properly aligned; L2 entry corrupted.
    542 ERROR cluster 6 refcount=0 reference=1
    543 Rebuilding refcount structure
    544 ERROR offset=50200: Data cluster is not properly aligned; L2 entry corrupted.
    545 Repairing cluster 1 refcount=1 reference=0
    546 Repairing cluster 2 refcount=1 reference=0
    547 ERROR offset=50200: Data cluster is not properly aligned; L2 entry corrupted.
    548 The following inconsistencies were found and repaired:
    549 
    550     0 leaked clusters
    551     1 corruptions
    552 
    553 Double checking the fixed image now...
    554 
    555 1 errors were found on the image.
    556 Data may be corrupted, or further writes to the image may corrupt it.
    557 qcow2: Marking image as corrupt: Cluster allocation offset 0x50200 unaligned (L2 offset: 0x40000, L2 index: 0); further corruption events will be suppressed
    558 read failed: Input/output error
    559 # Corrupted L2 entry, no allocated subclusters #
    560 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=131072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    561 Repairing offset=50200: Preallocated cluster is not properly aligned; L2 entry corrupted.
    562 Leaked cluster 5 refcount=1 reference=0
    563 Repairing cluster 5 refcount=1 reference=0
    564 The following inconsistencies were found and repaired:
    565 
    566     1 leaked clusters
    567     1 corruptions
    568 
    569 Double checking the fixed image now...
    570 No errors were found on the image.
    571 
    572 ### Image creation options ###
    573 
    574 # cluster_size < 16k
    575 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    576 qemu-img: TEST_DIR/t.IMGFMT: Extended L2 entries are only supported with cluster sizes of at least 16384 bytes
    577 # backing file and preallocation=metadata
    578 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=raw size=1048576
    579 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=524288 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw preallocation=metadata
    580 Image resized.
    581 read 524288/524288 bytes at offset 0
    582 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    583 read 524288/524288 bytes at offset 524288
    584 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    585 Offset          Length          Mapped to       File
    586 0               0x80000         0               TEST_DIR/t.qcow2.base
    587 # backing file and preallocation=falloc
    588 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=524288 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw preallocation=falloc
    589 Image resized.
    590 read 524288/524288 bytes at offset 0
    591 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    592 read 524288/524288 bytes at offset 524288
    593 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    594 Offset          Length          Mapped to       File
    595 0               0x80000         0               TEST_DIR/t.qcow2.base
    596 # backing file and preallocation=full
    597 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=524288 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw preallocation=full
    598 Image resized.
    599 read 524288/524288 bytes at offset 0
    600 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    601 read 524288/524288 bytes at offset 524288
    602 512 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    603 Offset          Length          Mapped to       File
    604 0               0x80000         0               TEST_DIR/t.qcow2.base
    605 
    606 ### Image resizing with preallocation and backing files ###
    607 
    608 # resize --preallocation=metadata
    609 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    610 Image resized.
    611 read 515072/515072 bytes at offset 0
    612 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    613 read 522240/522240 bytes at offset 515072
    614 510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    615 # resize --preallocation=falloc
    616 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    617 Image resized.
    618 read 515072/515072 bytes at offset 0
    619 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    620 read 522240/522240 bytes at offset 515072
    621 510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    622 # resize --preallocation=full
    623 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=raw
    624 Image resized.
    625 read 515072/515072 bytes at offset 0
    626 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    627 read 522240/522240 bytes at offset 515072
    628 510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    629 
    630 ### Image resizing with preallocation without backing files ###
    631 
    632 # resize --preallocation=metadata
    633 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072
    634 wrote 515072/515072 bytes at offset 0
    635 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    636 Image resized.
    637 read 515072/515072 bytes at offset 0
    638 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    639 read 522240/522240 bytes at offset 515072
    640 510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    641 # resize --preallocation=falloc
    642 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072
    643 wrote 515072/515072 bytes at offset 0
    644 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    645 Image resized.
    646 read 515072/515072 bytes at offset 0
    647 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    648 read 522240/522240 bytes at offset 515072
    649 510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    650 # resize --preallocation=full
    651 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=515072
    652 wrote 515072/515072 bytes at offset 0
    653 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    654 Image resized.
    655 read 515072/515072 bytes at offset 0
    656 503 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    657 read 522240/522240 bytes at offset 515072
    658 510 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    659 
    660 ### qemu-img measure ###
    661 
    662 # 512MB, extended_l2=off
    663 required size: 327680
    664 fully allocated size: 537198592
    665 # 512MB, extended_l2=on
    666 required size: 393216
    667 fully allocated size: 537264128
    668 # 16K clusters, 64GB, extended_l2=off
    669 required size: 42008576
    670 fully allocated size: 68761485312
    671 # 16K clusters, 64GB, extended_l2=on
    672 required size: 75579392
    673 fully allocated size: 68795056128
    674 # 8k clusters
    675 qemu-img: Extended L2 entries are only supported with cluster sizes of at least 16384 bytes
    676 # 1024 TB
    677 required size: 309285027840
    678 fully allocated size: 1126209191870464
    679 # 1025 TB
    680 qemu-img: The image size is too large (try using a larger cluster size)
    681 
    682 ### qemu-img amend ###
    683 
    684 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    685 qemu-img: Invalid parameter 'extended_l2'
    686 This option is only supported for image creation
    687 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    688 qemu-img: Invalid parameter 'extended_l2'
    689 This option is only supported for image creation
    690 
    691 ### Test copy-on-write on an image with snapshots ###
    692 
    693 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    694 L2 entry #0: 0x8000000000050000 0000008000042000
    695 L2 entry #1: 0x8000000000060000 0000008000042000
    696 L2 entry #2: 0x8000000000070000 0000008000042000
    697 L2 entry #3: 0x8000000000080000 0000008000042000
    698 L2 entry #4: 0x8000000000090000 0000008000042000
    699 L2 entry #5: 0x80000000000a0000 0000008000042000
    700 L2 entry #6: 0x80000000000b0000 0000008000042000
    701 L2 entry #7: 0x80000000000c0000 0000008000042000
    702 L2 entry #8: 0x80000000000d0000 0000008000042000
    703 L2 entry #9: 0x80000000000e0000 0000008000042000
    704 L2 entry #0: 0x8000000000120000 000000800007e000
    705 L2 entry #1: 0x8000000000130000 000000800007fc00
    706 L2 entry #2: 0x8000000000140000 00000080001fe000
    707 L2 entry #3: 0x8000000000150000 000000800007e000
    708 L2 entry #4: 0x8000000000160000 000000000007ff80
    709 L2 entry #5: 0x8000000000170000 000000000007ffff
    710 L2 entry #6: 0x00000000000b0000 0001808000042000
    711 L2 entry #7: 0x00000000000c0000 0000208000040000
    712 L2 entry #8: 0x8000000000180000 000000800007e000
    713 L2 entry #9: 0x00000000000e0000 000000c000042000
    714 
    715 ### Test concurrent requests ###
    716 
    717 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1048576
    718 blkdebug: Suspended request 'A'
    719 blkdebug: Resuming request 'A'
    720 wrote 2048/2048 bytes at offset 30720
    721 2 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    722 wrote 2048/2048 bytes at offset OFFSET
    723 2 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    724 wrote 2048/2048 bytes at offset OFFSET
    725 2 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
    726 *** done