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