1QA output created by 261 2 3=== Create v2 template === 4 5Formatting 'TEST_DIR/t.IMGFMT.v2.orig', fmt=IMGFMT size=67108864 6No errors were found on the image. 7Snapshots in TEST_DIR/t.IMGFMT.v2.orig: 8 [0] 9 ID: 1 10 Name: sn0 11 Extra data size: 0 12 [1] 13 ID: 2 14 Name: sn1 15 Extra data size: 42 16 VM state size: 0 17 Disk size: 67108864 18 Unknown extra data: very important data 19 [2] 20 ID: 3 21 Name: sn2 22 Extra data size: 8 23 VM state size: 0 24 25=== Upgrade to v3 === 26 27No errors were found on the image. 28Snapshots in TEST_DIR/t.IMGFMT.v3.orig: 29 [0] 30 ID: 1 31 Name: sn0 32 Extra data size: 16 33 VM state size: 0 34 Disk size: 67108864 35 [1] 36 ID: 2 37 Name: sn1 38 Extra data size: 42 39 VM state size: 0 40 Disk size: 67108864 41 Unknown extra data: very important data 42 [2] 43 ID: 3 44 Name: sn2 45 Extra data size: 16 46 VM state size: 0 47 Disk size: 67108864 48 49=== Repair botched v3 === 50 51Repairing snapshot table entry 0 is incomplete 52Repairing snapshot table entry 2 is incomplete 53The following inconsistencies were found and repaired: 54 55 0 leaked clusters 56 2 corruptions 57 58Double checking the fixed image now... 59No errors were found on the image. 60Snapshots in TEST_DIR/t.IMGFMT: 61 [0] 62 ID: 1 63 Name: sn0 64 Extra data size: 16 65 VM state size: 0 66 Disk size: 67108864 67 [1] 68 ID: 2 69 Name: sn1 70 Extra data size: 42 71 VM state size: 0 72 Disk size: 67108864 73 Unknown extra data: very important data 74 [2] 75 ID: 3 76 Name: sn2 77 Extra data size: 16 78 VM state size: 0 79 Disk size: 67108864 80 81=== Add new snapshot === 82 83No errors were found on the image. 84Snapshots in TEST_DIR/t.IMGFMT: 85 [0] 86 ID: 1 87 Name: sn0 88 Extra data size: 16 89 VM state size: 0 90 Disk size: 67108864 91 [1] 92 ID: 2 93 Name: sn1 94 Extra data size: 42 95 VM state size: 0 96 Disk size: 67108864 97 Unknown extra data: very important data 98 [2] 99 ID: 3 100 Name: sn2 101 Extra data size: 16 102 VM state size: 0 103 Disk size: 67108864 104 [3] 105 ID: 4 106 Name: sn3 107 Extra data size: 16 108 VM state size: 0 109 Disk size: 67108864 110 111=== Remove different snapshots === 112 113--- sn0 --- 114No errors were found on the image. 115Snapshots in TEST_DIR/t.IMGFMT: 116 [0] 117 ID: 2 118 Name: sn1 119 Extra data size: 42 120 VM state size: 0 121 Disk size: 67108864 122 Unknown extra data: very important data 123 [1] 124 ID: 3 125 Name: sn2 126 Extra data size: 16 127 VM state size: 0 128 Disk size: 67108864 129 130--- sn1 --- 131No errors were found on the image. 132Snapshots in TEST_DIR/t.IMGFMT: 133 [0] 134 ID: 1 135 Name: sn0 136 Extra data size: 16 137 VM state size: 0 138 Disk size: 67108864 139 [1] 140 ID: 3 141 Name: sn2 142 Extra data size: 16 143 VM state size: 0 144 Disk size: 67108864 145 146--- sn2 --- 147No errors were found on the image. 148Snapshots in TEST_DIR/t.IMGFMT: 149 [0] 150 ID: 1 151 Name: sn0 152 Extra data size: 16 153 VM state size: 0 154 Disk size: 67108864 155 [1] 156 ID: 2 157 Name: sn1 158 Extra data size: 42 159 VM state size: 0 160 Disk size: 67108864 161 Unknown extra data: very important data 162 163=== Reject too much unknown extra data === 164 165qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Too much extra metadata in snapshot table entry 3 166You can force-remove this extra metadata with qemu-img check -r all 167 168qemu-img: ERROR failed to read the snapshot table: Too much extra metadata in snapshot table entry 3 169You can force-remove this extra metadata with qemu-img check -r all 170qemu-img: Check failed: File too large 171 172Discarding too much extra metadata in snapshot table entry 3 (65536 > 1024) 173ERROR cluster 10 refcount=0 reference=1 174Rebuilding refcount structure 175Repairing cluster 1 refcount=1 reference=0 176Repairing cluster 2 refcount=1 reference=0 177The following inconsistencies were found and repaired: 178 179 0 leaked clusters 180 2 corruptions 181 182Double checking the fixed image now... 183No errors were found on the image. 184 185=== Snapshot table too big === 186 187Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 188qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Snapshot table is too big 189You can force-remove all 1 overhanging snapshots with qemu-img check -r all 190 191qemu-img: ERROR failed to read the snapshot table: Snapshot table is too big 192You can force-remove all 1 overhanging snapshots with qemu-img check -r all 193qemu-img: Check failed: File too large 194 195Discarding 1 overhanging snapshots (snapshot table is too big) 196Leaked cluster 14 refcount=1 reference=0 197Leaked cluster 15 refcount=1 reference=0 198Leaked cluster 1039 refcount=1 reference=0 199Leaked cluster 1040 refcount=1 reference=0 200Repairing cluster 14 refcount=1 reference=0 201Repairing cluster 15 refcount=1 reference=0 202Repairing cluster 1039 refcount=1 reference=0 203Repairing cluster 1040 refcount=1 reference=0 204The following inconsistencies were found and repaired: 205 206 4 leaked clusters 207 1 corruptions 208 209Double checking the fixed image now... 210No errors were found on the image. 211 212507 snapshots should remain: 213 qemu-img info reports 507 snapshots 214 Image header reports 507 snapshots 215 216=== Snapshot table too big with one entry with too much extra data === 217 218Snapshot table size should equal 67108872: 67108872 219 220qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Too much extra metadata in snapshot table entry 505 221You can force-remove this extra metadata with qemu-img check -r all 222 223qemu-img: ERROR failed to read the snapshot table: Too much extra metadata in snapshot table entry 505 224You can force-remove this extra metadata with qemu-img check -r all 225qemu-img: Check failed: File too large 226 227Discarding too much extra metadata in snapshot table entry 505 (116944 > 1024) 228Discarding 1 overhanging snapshots (snapshot table is too big) 229Leaked cluster 1041 refcount=1 reference=0 230Leaked cluster 1042 refcount=1 reference=0 231Repairing cluster 1041 refcount=1 reference=0 232Repairing cluster 1042 refcount=1 reference=0 233The following inconsistencies were found and repaired: 234 235 2 leaked clusters 236 2 corruptions 237 238Double checking the fixed image now... 239No errors were found on the image. 240 241=== Too many snapshots === 242 243Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 244qemu-img: Could not open 'TEST_DIR/t.IMGFMT': Snapshot table too large 245 246qemu-img: ERROR snapshot table too large 247You can force-remove all 65536 overhanging snapshots with qemu-img check -r all 248qemu-img: Check failed: File too large 249 250Discarding 65536 overhanging snapshots 251Leaked cluster 14 refcount=1 reference=0 252Leaked cluster 15 refcount=1 reference=0 253Leaked cluster 56 refcount=1 reference=0 254Leaked cluster 57 refcount=1 reference=0 255Leaked cluster 58 refcount=1 reference=0 256Leaked cluster 59 refcount=1 reference=0 257Leaked cluster 60 refcount=1 reference=0 258Leaked cluster 61 refcount=1 reference=0 259Leaked cluster 62 refcount=1 reference=0 260Leaked cluster 63 refcount=1 reference=0 261Leaked cluster 64 refcount=1 reference=0 262Leaked cluster 65 refcount=1 reference=0 263Leaked cluster 66 refcount=1 reference=0 264Leaked cluster 67 refcount=1 reference=0 265Leaked cluster 68 refcount=1 reference=0 266Leaked cluster 69 refcount=1 reference=0 267Leaked cluster 70 refcount=1 reference=0 268Leaked cluster 71 refcount=1 reference=0 269Leaked cluster 72 refcount=1 reference=0 270Leaked cluster 73 refcount=1 reference=0 271Leaked cluster 74 refcount=1 reference=0 272Leaked cluster 75 refcount=1 reference=0 273Leaked cluster 76 refcount=1 reference=0 274Leaked cluster 77 refcount=1 reference=0 275Leaked cluster 78 refcount=1 reference=0 276Leaked cluster 79 refcount=1 reference=0 277Leaked cluster 80 refcount=1 reference=0 278Leaked cluster 81 refcount=1 reference=0 279Leaked cluster 82 refcount=1 reference=0 280Leaked cluster 83 refcount=1 reference=0 281Leaked cluster 84 refcount=1 reference=0 282Leaked cluster 85 refcount=1 reference=0 283Leaked cluster 86 refcount=1 reference=0 284Leaked cluster 87 refcount=1 reference=0 285Leaked cluster 88 refcount=1 reference=0 286Leaked cluster 89 refcount=1 reference=0 287Leaked cluster 90 refcount=1 reference=0 288Leaked cluster 91 refcount=1 reference=0 289Leaked cluster 92 refcount=1 reference=0 290Leaked cluster 93 refcount=1 reference=0 291Leaked cluster 94 refcount=1 reference=0 292Leaked cluster 95 refcount=1 reference=0 293Repairing cluster 14 refcount=1 reference=0 294Repairing cluster 15 refcount=1 reference=0 295Repairing cluster 56 refcount=1 reference=0 296Repairing cluster 57 refcount=1 reference=0 297Repairing cluster 58 refcount=1 reference=0 298Repairing cluster 59 refcount=1 reference=0 299Repairing cluster 60 refcount=1 reference=0 300Repairing cluster 61 refcount=1 reference=0 301Repairing cluster 62 refcount=1 reference=0 302Repairing cluster 63 refcount=1 reference=0 303Repairing cluster 64 refcount=1 reference=0 304Repairing cluster 65 refcount=1 reference=0 305Repairing cluster 66 refcount=1 reference=0 306Repairing cluster 67 refcount=1 reference=0 307Repairing cluster 68 refcount=1 reference=0 308Repairing cluster 69 refcount=1 reference=0 309Repairing cluster 70 refcount=1 reference=0 310Repairing cluster 71 refcount=1 reference=0 311Repairing cluster 72 refcount=1 reference=0 312Repairing cluster 73 refcount=1 reference=0 313Repairing cluster 74 refcount=1 reference=0 314Repairing cluster 75 refcount=1 reference=0 315Repairing cluster 76 refcount=1 reference=0 316Repairing cluster 77 refcount=1 reference=0 317Repairing cluster 78 refcount=1 reference=0 318Repairing cluster 79 refcount=1 reference=0 319Repairing cluster 80 refcount=1 reference=0 320Repairing cluster 81 refcount=1 reference=0 321Repairing cluster 82 refcount=1 reference=0 322Repairing cluster 83 refcount=1 reference=0 323Repairing cluster 84 refcount=1 reference=0 324Repairing cluster 85 refcount=1 reference=0 325Repairing cluster 86 refcount=1 reference=0 326Repairing cluster 87 refcount=1 reference=0 327Repairing cluster 88 refcount=1 reference=0 328Repairing cluster 89 refcount=1 reference=0 329Repairing cluster 90 refcount=1 reference=0 330Repairing cluster 91 refcount=1 reference=0 331Repairing cluster 92 refcount=1 reference=0 332Repairing cluster 93 refcount=1 reference=0 333Repairing cluster 94 refcount=1 reference=0 334Repairing cluster 95 refcount=1 reference=0 335The following inconsistencies were found and repaired: 336 337 42 leaked clusters 338 65536 corruptions 339 340Double checking the fixed image now... 341No errors were found on the image. 342 34365536 snapshots should remain: 344 qemu-img info reports 65536 snapshots 345 Image header reports 65536 snapshots 346*** done 347