1a8110c3dSMax ReitzQA output created by 061 2a8110c3dSMax Reitz 3a8110c3dSMax Reitz=== Testing version downgrade with zero expansion === 4a8110c3dSMax Reitz 5a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 6a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 7a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 8a8110c3dSMax Reitzmagic 0x514649fb 9a8110c3dSMax Reitzversion 3 10a8110c3dSMax Reitzbacking_file_offset 0x0 11a8110c3dSMax Reitzbacking_file_size 0x0 12a8110c3dSMax Reitzcluster_bits 16 13a8110c3dSMax Reitzsize 67108864 14a8110c3dSMax Reitzcrypt_method 0 15a8110c3dSMax Reitzl1_size 1 16a8110c3dSMax Reitzl1_table_offset 0x30000 17a8110c3dSMax Reitzrefcount_table_offset 0x10000 18a8110c3dSMax Reitzrefcount_table_clusters 1 19a8110c3dSMax Reitznb_snapshots 0 20a8110c3dSMax Reitzsnapshot_offset 0x0 210485e6eeSMax Reitzincompatible_features [] 220485e6eeSMax Reitzcompatible_features [0] 230485e6eeSMax Reitzautoclear_features [] 24a8110c3dSMax Reitzrefcount_order 4 25572ad978SDenis Plotnikovheader_length 112 26a8110c3dSMax Reitz 27b527c9b3SKevin WolfHeader extension: 28aef87784SVladimir Sementsov-Ogievskiymagic 0x6803f857 (Feature table) 297be20252SAlberto Garcialength 384 30b527c9b3SKevin Wolfdata <binary> 31b527c9b3SKevin Wolf 32a8110c3dSMax Reitzmagic 0x514649fb 33a8110c3dSMax Reitzversion 2 34a8110c3dSMax Reitzbacking_file_offset 0x0 35a8110c3dSMax Reitzbacking_file_size 0x0 36a8110c3dSMax Reitzcluster_bits 16 37a8110c3dSMax Reitzsize 67108864 38a8110c3dSMax Reitzcrypt_method 0 39a8110c3dSMax Reitzl1_size 1 40a8110c3dSMax Reitzl1_table_offset 0x30000 41a8110c3dSMax Reitzrefcount_table_offset 0x10000 42a8110c3dSMax Reitzrefcount_table_clusters 1 43a8110c3dSMax Reitznb_snapshots 0 44a8110c3dSMax Reitzsnapshot_offset 0x0 450485e6eeSMax Reitzincompatible_features [] 460485e6eeSMax Reitzcompatible_features [] 470485e6eeSMax Reitzautoclear_features [] 48a8110c3dSMax Reitzrefcount_order 4 49a8110c3dSMax Reitzheader_length 72 50a8110c3dSMax Reitz 51a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 52a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 53a8110c3dSMax ReitzNo errors were found on the image. 54a8110c3dSMax Reitz 552ecec911SAlberto Garcia=== Testing version downgrade with zero expansion and 4K cache entries === 562ecec911SAlberto Garcia 572ecec911SAlberto GarciaFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 582ecec911SAlberto Garciawrote 131072/131072 bytes at offset 0 592ecec911SAlberto Garcia128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 602ecec911SAlberto Garciawrote 131072/131072 bytes at offset 33554432 612ecec911SAlberto Garcia128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 622ecec911SAlberto Garcia128 KiB (0x20000) bytes allocated at offset 0 bytes (0x0) 632ecec911SAlberto Garcia31.875 MiB (0x1fe0000) bytes not allocated at offset 128 KiB (0x20000) 642ecec911SAlberto Garcia128 KiB (0x20000) bytes allocated at offset 32 MiB (0x2000000) 652ecec911SAlberto Garcia31.875 MiB (0x1fe0000) bytes not allocated at offset 32.125 MiB (0x2020000) 662ecec911SAlberto Garciamagic 0x514649fb 672ecec911SAlberto Garciaversion 3 682ecec911SAlberto Garciabacking_file_offset 0x0 692ecec911SAlberto Garciabacking_file_size 0x0 702ecec911SAlberto Garciacluster_bits 16 712ecec911SAlberto Garciasize 67108864 722ecec911SAlberto Garciacrypt_method 0 732ecec911SAlberto Garcial1_size 1 742ecec911SAlberto Garcial1_table_offset 0x30000 752ecec911SAlberto Garciarefcount_table_offset 0x10000 762ecec911SAlberto Garciarefcount_table_clusters 1 772ecec911SAlberto Garcianb_snapshots 0 782ecec911SAlberto Garciasnapshot_offset 0x0 790485e6eeSMax Reitzincompatible_features [] 800485e6eeSMax Reitzcompatible_features [0] 810485e6eeSMax Reitzautoclear_features [] 822ecec911SAlberto Garciarefcount_order 4 83572ad978SDenis Plotnikovheader_length 112 842ecec911SAlberto Garcia 852ecec911SAlberto GarciaHeader extension: 86aef87784SVladimir Sementsov-Ogievskiymagic 0x6803f857 (Feature table) 877be20252SAlberto Garcialength 384 882ecec911SAlberto Garciadata <binary> 892ecec911SAlberto Garcia 902ecec911SAlberto Garciamagic 0x514649fb 912ecec911SAlberto Garciaversion 2 922ecec911SAlberto Garciabacking_file_offset 0x0 932ecec911SAlberto Garciabacking_file_size 0x0 942ecec911SAlberto Garciacluster_bits 16 952ecec911SAlberto Garciasize 67108864 962ecec911SAlberto Garciacrypt_method 0 972ecec911SAlberto Garcial1_size 1 982ecec911SAlberto Garcial1_table_offset 0x30000 992ecec911SAlberto Garciarefcount_table_offset 0x10000 1002ecec911SAlberto Garciarefcount_table_clusters 1 1012ecec911SAlberto Garcianb_snapshots 0 1022ecec911SAlberto Garciasnapshot_offset 0x0 1030485e6eeSMax Reitzincompatible_features [] 1040485e6eeSMax Reitzcompatible_features [] 1050485e6eeSMax Reitzautoclear_features [] 1062ecec911SAlberto Garciarefcount_order 4 1072ecec911SAlberto Garciaheader_length 72 1082ecec911SAlberto Garcia 1092ecec911SAlberto Garciaread 131072/131072 bytes at offset 0 1102ecec911SAlberto Garcia128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1112ecec911SAlberto Garciaread 131072/131072 bytes at offset 33554432 1122ecec911SAlberto Garcia128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 1132ecec911SAlberto Garcia64 MiB (0x4000000) bytes not allocated at offset 0 bytes (0x0) 1142ecec911SAlberto GarciaNo errors were found on the image. 1152ecec911SAlberto Garcia 116a8110c3dSMax Reitz=== Testing dirty version downgrade === 117a8110c3dSMax Reitz 118a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 119a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 120a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 121036d8cbfSAndrey Shinkevich./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 122a8110c3dSMax Reitzmagic 0x514649fb 123a8110c3dSMax Reitzversion 3 124a8110c3dSMax Reitzbacking_file_offset 0x0 125a8110c3dSMax Reitzbacking_file_size 0x0 126a8110c3dSMax Reitzcluster_bits 16 127a8110c3dSMax Reitzsize 67108864 128a8110c3dSMax Reitzcrypt_method 0 129a8110c3dSMax Reitzl1_size 1 130a8110c3dSMax Reitzl1_table_offset 0x30000 131a8110c3dSMax Reitzrefcount_table_offset 0x10000 132a8110c3dSMax Reitzrefcount_table_clusters 1 133a8110c3dSMax Reitznb_snapshots 0 134a8110c3dSMax Reitzsnapshot_offset 0x0 1350485e6eeSMax Reitzincompatible_features [0] 1360485e6eeSMax Reitzcompatible_features [0] 1370485e6eeSMax Reitzautoclear_features [] 138a8110c3dSMax Reitzrefcount_order 4 139572ad978SDenis Plotnikovheader_length 112 140a8110c3dSMax Reitz 141b527c9b3SKevin WolfHeader extension: 142aef87784SVladimir Sementsov-Ogievskiymagic 0x6803f857 (Feature table) 1437be20252SAlberto Garcialength 384 144b527c9b3SKevin Wolfdata <binary> 145b527c9b3SKevin Wolf 146d26e6ec0SMax ReitzERROR cluster 5 refcount=0 reference=1 147d26e6ec0SMax ReitzERROR cluster 6 refcount=0 reference=1 148d26e6ec0SMax ReitzRebuilding refcount structure 149d26e6ec0SMax ReitzRepairing cluster 1 refcount=1 reference=0 150d26e6ec0SMax ReitzRepairing cluster 2 refcount=1 reference=0 151a8110c3dSMax Reitzmagic 0x514649fb 152a8110c3dSMax Reitzversion 2 153a8110c3dSMax Reitzbacking_file_offset 0x0 154a8110c3dSMax Reitzbacking_file_size 0x0 155a8110c3dSMax Reitzcluster_bits 16 156a8110c3dSMax Reitzsize 67108864 157a8110c3dSMax Reitzcrypt_method 0 158a8110c3dSMax Reitzl1_size 1 159a8110c3dSMax Reitzl1_table_offset 0x30000 160d26e6ec0SMax Reitzrefcount_table_offset 0x80000 161a8110c3dSMax Reitzrefcount_table_clusters 1 162a8110c3dSMax Reitznb_snapshots 0 163a8110c3dSMax Reitzsnapshot_offset 0x0 1640485e6eeSMax Reitzincompatible_features [] 1650485e6eeSMax Reitzcompatible_features [] 1660485e6eeSMax Reitzautoclear_features [] 167a8110c3dSMax Reitzrefcount_order 4 168a8110c3dSMax Reitzheader_length 72 169a8110c3dSMax Reitz 170a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 171a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 172a8110c3dSMax ReitzNo errors were found on the image. 173a8110c3dSMax Reitz 174a8110c3dSMax Reitz=== Testing version downgrade with unknown compat/autoclear flags === 175a8110c3dSMax Reitz 176a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 177a8110c3dSMax Reitzmagic 0x514649fb 178a8110c3dSMax Reitzversion 3 179a8110c3dSMax Reitzbacking_file_offset 0x0 180a8110c3dSMax Reitzbacking_file_size 0x0 181a8110c3dSMax Reitzcluster_bits 16 182a8110c3dSMax Reitzsize 67108864 183a8110c3dSMax Reitzcrypt_method 0 184a8110c3dSMax Reitzl1_size 1 185a8110c3dSMax Reitzl1_table_offset 0x30000 186a8110c3dSMax Reitzrefcount_table_offset 0x10000 187a8110c3dSMax Reitzrefcount_table_clusters 1 188a8110c3dSMax Reitznb_snapshots 0 189a8110c3dSMax Reitzsnapshot_offset 0x0 1900485e6eeSMax Reitzincompatible_features [] 1910485e6eeSMax Reitzcompatible_features [42] 1920485e6eeSMax Reitzautoclear_features [42] 193a8110c3dSMax Reitzrefcount_order 4 194572ad978SDenis Plotnikovheader_length 112 195a8110c3dSMax Reitz 196b527c9b3SKevin WolfHeader extension: 197aef87784SVladimir Sementsov-Ogievskiymagic 0x6803f857 (Feature table) 1987be20252SAlberto Garcialength 384 199b527c9b3SKevin Wolfdata <binary> 200b527c9b3SKevin Wolf 201a8110c3dSMax Reitzmagic 0x514649fb 202a8110c3dSMax Reitzversion 2 203a8110c3dSMax Reitzbacking_file_offset 0x0 204a8110c3dSMax Reitzbacking_file_size 0x0 205a8110c3dSMax Reitzcluster_bits 16 206a8110c3dSMax Reitzsize 67108864 207a8110c3dSMax Reitzcrypt_method 0 208a8110c3dSMax Reitzl1_size 1 209a8110c3dSMax Reitzl1_table_offset 0x30000 210a8110c3dSMax Reitzrefcount_table_offset 0x10000 211a8110c3dSMax Reitzrefcount_table_clusters 1 212a8110c3dSMax Reitznb_snapshots 0 213a8110c3dSMax Reitzsnapshot_offset 0x0 2140485e6eeSMax Reitzincompatible_features [] 2150485e6eeSMax Reitzcompatible_features [] 2160485e6eeSMax Reitzautoclear_features [] 217a8110c3dSMax Reitzrefcount_order 4 218a8110c3dSMax Reitzheader_length 72 219a8110c3dSMax Reitz 220a8110c3dSMax ReitzNo errors were found on the image. 221a8110c3dSMax Reitz 222a8110c3dSMax Reitz=== Testing version upgrade and resize === 223a8110c3dSMax Reitz 224a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 225a8110c3dSMax Reitzwrote 65536/65536 bytes at offset 44040192 226a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 227a8110c3dSMax Reitzmagic 0x514649fb 228a8110c3dSMax Reitzversion 2 229a8110c3dSMax Reitzbacking_file_offset 0x0 230a8110c3dSMax Reitzbacking_file_size 0x0 231a8110c3dSMax Reitzcluster_bits 16 232a8110c3dSMax Reitzsize 67108864 233a8110c3dSMax Reitzcrypt_method 0 234a8110c3dSMax Reitzl1_size 1 235a8110c3dSMax Reitzl1_table_offset 0x30000 236a8110c3dSMax Reitzrefcount_table_offset 0x10000 237a8110c3dSMax Reitzrefcount_table_clusters 1 238a8110c3dSMax Reitznb_snapshots 0 239a8110c3dSMax Reitzsnapshot_offset 0x0 2400485e6eeSMax Reitzincompatible_features [] 2410485e6eeSMax Reitzcompatible_features [] 2420485e6eeSMax Reitzautoclear_features [] 243a8110c3dSMax Reitzrefcount_order 4 244a8110c3dSMax Reitzheader_length 72 245a8110c3dSMax Reitz 246a8110c3dSMax Reitzmagic 0x514649fb 247a8110c3dSMax Reitzversion 3 248a8110c3dSMax Reitzbacking_file_offset 0x0 249a8110c3dSMax Reitzbacking_file_size 0x0 250a8110c3dSMax Reitzcluster_bits 16 251a8110c3dSMax Reitzsize 134217728 252a8110c3dSMax Reitzcrypt_method 0 253a8110c3dSMax Reitzl1_size 1 254a8110c3dSMax Reitzl1_table_offset 0x30000 255a8110c3dSMax Reitzrefcount_table_offset 0x10000 256a8110c3dSMax Reitzrefcount_table_clusters 1 257a8110c3dSMax Reitznb_snapshots 0 258a8110c3dSMax Reitzsnapshot_offset 0x0 2590485e6eeSMax Reitzincompatible_features [] 2600485e6eeSMax Reitzcompatible_features [0] 2610485e6eeSMax Reitzautoclear_features [] 262a8110c3dSMax Reitzrefcount_order 4 263572ad978SDenis Plotnikovheader_length 112 264a8110c3dSMax Reitz 265a8110c3dSMax ReitzHeader extension: 266aef87784SVladimir Sementsov-Ogievskiymagic 0x6803f857 (Feature table) 2677be20252SAlberto Garcialength 384 268a8110c3dSMax Reitzdata <binary> 269a8110c3dSMax Reitz 270a8110c3dSMax Reitzread 65536/65536 bytes at offset 44040192 271a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 272a8110c3dSMax ReitzNo errors were found on the image. 273a8110c3dSMax Reitz 2747fa140abSEric Blake=== Testing resize with snapshots === 2757fa140abSEric Blake 2767fa140abSEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 2777fa140abSEric Blakewrote 65536/65536 bytes at offset 25165824 2787fa140abSEric Blake64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 2797fa140abSEric Blakeqemu-img: Can't resize a v2 image which has snapshots 2807fa140abSEric Blakeversion 2 2817fa140abSEric Blakesize 33554432 2827fa140abSEric Blakenb_snapshots 1 2837fa140abSEric Blakeversion 3 2847fa140abSEric Blakesize 134217728 2857fa140abSEric Blakenb_snapshots 1 2867fa140abSEric BlakeImage resized. 2877fa140abSEric Blakeversion 3 2887fa140abSEric Blakesize 67108864 2897fa140abSEric Blakenb_snapshots 2 2907fa140abSEric Blakeqemu-img: Internal snapshots prevent downgrade of image 2917fa140abSEric Blakeversion 3 2927fa140abSEric Blakesize 33554432 2937fa140abSEric Blakenb_snapshots 2 2947fa140abSEric Blakeversion 3 2957fa140abSEric Blakesize 134217728 2967fa140abSEric Blakenb_snapshots 2 2977fa140abSEric Blakeversion 2 2987fa140abSEric Blakesize 33554432 2997fa140abSEric Blakenb_snapshots 1 3007fa140abSEric BlakeNo errors were found on the image. 3017fa140abSEric Blake 302a8110c3dSMax Reitz=== Testing dirty lazy_refcounts=off === 303a8110c3dSMax Reitz 304a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 305a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 306a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 307036d8cbfSAndrey Shinkevich./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 308a8110c3dSMax Reitzmagic 0x514649fb 309a8110c3dSMax Reitzversion 3 310a8110c3dSMax Reitzbacking_file_offset 0x0 311a8110c3dSMax Reitzbacking_file_size 0x0 312a8110c3dSMax Reitzcluster_bits 16 313a8110c3dSMax Reitzsize 67108864 314a8110c3dSMax Reitzcrypt_method 0 315a8110c3dSMax Reitzl1_size 1 316a8110c3dSMax Reitzl1_table_offset 0x30000 317a8110c3dSMax Reitzrefcount_table_offset 0x10000 318a8110c3dSMax Reitzrefcount_table_clusters 1 319a8110c3dSMax Reitznb_snapshots 0 320a8110c3dSMax Reitzsnapshot_offset 0x0 3210485e6eeSMax Reitzincompatible_features [0] 3220485e6eeSMax Reitzcompatible_features [0] 3230485e6eeSMax Reitzautoclear_features [] 324a8110c3dSMax Reitzrefcount_order 4 325572ad978SDenis Plotnikovheader_length 112 326a8110c3dSMax Reitz 327b527c9b3SKevin WolfHeader extension: 328aef87784SVladimir Sementsov-Ogievskiymagic 0x6803f857 (Feature table) 3297be20252SAlberto Garcialength 384 330b527c9b3SKevin Wolfdata <binary> 331b527c9b3SKevin Wolf 332d26e6ec0SMax ReitzERROR cluster 5 refcount=0 reference=1 333d26e6ec0SMax ReitzERROR cluster 6 refcount=0 reference=1 334d26e6ec0SMax ReitzRebuilding refcount structure 335d26e6ec0SMax ReitzRepairing cluster 1 refcount=1 reference=0 336d26e6ec0SMax ReitzRepairing cluster 2 refcount=1 reference=0 337a8110c3dSMax Reitzmagic 0x514649fb 338a8110c3dSMax Reitzversion 3 339a8110c3dSMax Reitzbacking_file_offset 0x0 340a8110c3dSMax Reitzbacking_file_size 0x0 341a8110c3dSMax Reitzcluster_bits 16 342a8110c3dSMax Reitzsize 67108864 343a8110c3dSMax Reitzcrypt_method 0 344a8110c3dSMax Reitzl1_size 1 345a8110c3dSMax Reitzl1_table_offset 0x30000 346d26e6ec0SMax Reitzrefcount_table_offset 0x80000 347a8110c3dSMax Reitzrefcount_table_clusters 1 348a8110c3dSMax Reitznb_snapshots 0 349a8110c3dSMax Reitzsnapshot_offset 0x0 3500485e6eeSMax Reitzincompatible_features [] 3510485e6eeSMax Reitzcompatible_features [] 3520485e6eeSMax Reitzautoclear_features [] 353a8110c3dSMax Reitzrefcount_order 4 354572ad978SDenis Plotnikovheader_length 112 355a8110c3dSMax Reitz 356a8110c3dSMax ReitzHeader extension: 357aef87784SVladimir Sementsov-Ogievskiymagic 0x6803f857 (Feature table) 3587be20252SAlberto Garcialength 384 359a8110c3dSMax Reitzdata <binary> 360a8110c3dSMax Reitz 361a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 362a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 363a8110c3dSMax ReitzNo errors were found on the image. 364a8110c3dSMax Reitz 365a8110c3dSMax Reitz=== Testing backing file === 366a8110c3dSMax Reitz 367a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 368a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 369a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 370a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 371a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 372a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 3735a385bf5SEric Blakeqemu-img: Cannot amend the backing file 3745a385bf5SEric BlakeYou can use 'qemu-img rebase' instead. 375a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 376a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 377a8110c3dSMax ReitzNo errors were found on the image. 378a8110c3dSMax Reitz 379a8110c3dSMax Reitz=== Testing invalid configurations === 380a8110c3dSMax Reitz 381a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 38229d72431SMax Reitzqemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 38329d72431SMax Reitzqemu-img: Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater) 38429d72431SMax Reitzqemu-img: Unknown compatibility level 0.42 38583d0521aSChunyan Liuqemu-img: Invalid parameter 'foo' 3860b6786a9SMaxim Levitskyqemu-img: Invalid parameter 'cluster_size' 3870b6786a9SMaxim LevitskyThis option is only supported for image creation 3880b6786a9SMaxim Levitskyqemu-img: Invalid parameter 'encryption' 3890b6786a9SMaxim LevitskyThis option is only supported for image creation 3900b6786a9SMaxim Levitskyqemu-img: Invalid parameter 'preallocation' 3910b6786a9SMaxim LevitskyThis option is only supported for image creation 392a8110c3dSMax Reitz 393a8110c3dSMax Reitz=== Testing correct handling of unset value === 394a8110c3dSMax Reitz 395a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 396a8110c3dSMax ReitzShould work: 397a8110c3dSMax ReitzShould not work: 3980b6786a9SMaxim Levitskyqemu-img: Invalid parameter 'cluster_size' 3990b6786a9SMaxim LevitskyThis option is only supported for image creation 400a8110c3dSMax Reitz 401a8110c3dSMax Reitz=== Testing zero expansion on inactive clusters === 402a8110c3dSMax Reitz 403a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 404a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 405a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 406a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 407a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 408a8110c3dSMax ReitzNo errors were found on the image. 409a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 410a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 411a8110c3dSMax ReitzNo errors were found on the image. 412a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 413a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 414a8110c3dSMax Reitz 415d982919dSMax Reitz=== Testing zero expansion on shared L2 table === 416d982919dSMax Reitz 417d982919dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 418d982919dSMax Reitzwrote 131072/131072 bytes at offset 0 419d982919dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 420d982919dSMax ReitzNo errors were found on the image. 421d982919dSMax Reitzread 131072/131072 bytes at offset 0 422d982919dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 423d982919dSMax ReitzNo errors were found on the image. 424d982919dSMax Reitzread 131072/131072 bytes at offset 0 425d982919dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 426d982919dSMax Reitz 427a8110c3dSMax Reitz=== Testing zero expansion on backed image === 428a8110c3dSMax Reitz 429a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 430a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 431a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 432b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 433a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 434a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 435a8110c3dSMax Reitzwrote 65536/65536 bytes at offset 0 436a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 437a8110c3dSMax ReitzNo errors were found on the image. 438a8110c3dSMax Reitzread 65536/65536 bytes at offset 0 439a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 440a8110c3dSMax Reitzread 65536/65536 bytes at offset 65536 441a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 442a8110c3dSMax Reitz 443a8110c3dSMax Reitz=== Testing zero expansion on backed inactive clusters === 444a8110c3dSMax Reitz 445a8110c3dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 446a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 447a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 448b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 449a8110c3dSMax Reitzwrote 65536/65536 bytes at offset 0 450a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 451a8110c3dSMax Reitzwrote 131072/131072 bytes at offset 0 452a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 453a8110c3dSMax ReitzNo errors were found on the image. 454a8110c3dSMax Reitzread 131072/131072 bytes at offset 0 455a8110c3dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 456a8110c3dSMax ReitzNo errors were found on the image. 457a8110c3dSMax Reitzread 65536/65536 bytes at offset 0 458a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 459a8110c3dSMax Reitzread 65536/65536 bytes at offset 65536 460a8110c3dSMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 461d982919dSMax Reitz 462d982919dSMax Reitz=== Testing zero expansion on backed image with shared L2 table === 463d982919dSMax Reitz 464d982919dSMax ReitzFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=67108864 465d982919dSMax Reitzwrote 131072/131072 bytes at offset 0 466d982919dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 467b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 468d982919dSMax Reitzwrote 131072/131072 bytes at offset 0 469d982919dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 470d982919dSMax ReitzNo errors were found on the image. 471d982919dSMax Reitzread 131072/131072 bytes at offset 0 472d982919dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 473d982919dSMax ReitzNo errors were found on the image. 474d982919dSMax Reitzread 131072/131072 bytes at offset 0 475d982919dSMax Reitz128 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 476fd9e03e6SMax Reitz 477fd9e03e6SMax Reitz=== Testing preallocated zero expansion on full image === 478fd9e03e6SMax Reitz 479fd9e03e6SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 480fd9e03e6SMax Reitzwrote 67108864/67108864 bytes at offset 0 481fd9e03e6SMax Reitz64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 482fd9e03e6SMax Reitzwrote 67108864/67108864 bytes at offset 0 483fd9e03e6SMax Reitz64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 484fd9e03e6SMax ReitzNo errors were found on the image. 485fd9e03e6SMax Reitzread 67108864/67108864 bytes at offset 0 486fd9e03e6SMax Reitz64 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 48778fa6582SMax Reitz 48878fa6582SMax Reitz=== Testing progress report without snapshot === 48978fa6582SMax Reitz 49078fa6582SMax ReitzFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 491b66ff2c2SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 49278fa6582SMax Reitzwrote 65536/65536 bytes at offset 0 49378fa6582SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 49478fa6582SMax Reitzwrote 65536/65536 bytes at offset 1073741824 49578fa6582SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 49678fa6582SMax Reitzwrote 65536/65536 bytes at offset 2147483648 49778fa6582SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 49878fa6582SMax Reitzwrote 65536/65536 bytes at offset 3221225472 49978fa6582SMax Reitz64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 50078fa6582SMax Reitz (0.00/100%) 50178fa6582SMax Reitz (12.50/100%) 50278fa6582SMax Reitz (25.00/100%) 50378fa6582SMax Reitz (37.50/100%) 50478fa6582SMax Reitz (50.00/100%) 50578fa6582SMax Reitz (62.50/100%) 506b66ff2c2SEric Blake (75.00/100%) 50778fa6582SMax Reitz (87.50/100%) 50878fa6582SMax Reitz (100.00/100%) 50978fa6582SMax Reitz (100.00/100%) 51078fa6582SMax ReitzNo errors were found on the image. 51178fa6582SMax Reitz 51278fa6582SMax Reitz=== Testing progress report with snapshot === 51378fa6582SMax Reitz 51478fa6582SMax ReitzFormatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=4294967296 51578fa6582SMax ReitzFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=4294967296 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT 51678fa6582SMax Reitzwrote 65536/65536 bytes at offset 0 517ac40260dSKevin Wolf64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 518ac40260dSKevin Wolfwrote 65536/65536 bytes at offset 1073741824 519ac40260dSKevin Wolf64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 520ac40260dSKevin Wolfwrote 65536/65536 bytes at offset 2147483648 521ac40260dSKevin Wolf64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 522ac40260dSKevin Wolfwrote 65536/65536 bytes at offset 3221225472 523ac40260dSKevin Wolf64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 524de38b500SEric Blake (0.00/100%) 525ac40260dSKevin Wolf (6.25/100%) 526ac40260dSKevin Wolf (12.50/100%) 527ac40260dSKevin Wolf (18.75/100%) 528dba5aee4SVladimir Sementsov-Ogievskiy (25.00/100%) 529ac40260dSKevin Wolf (31.25/100%) 530ac40260dSKevin Wolf (37.50/100%) 531ac40260dSKevin Wolf (43.75/100%) 532ac40260dSKevin Wolf (50.00/100%) 533ac40260dSKevin Wolf (56.25/100%) 5347be20252SAlberto Garcia (62.50/100%) 535ac40260dSKevin Wolf (68.75/100%) 536ac40260dSKevin Wolf (75.00/100%) 5377bbb5920SAlberto Garcia (81.25/100%) 5387bbb5920SAlberto Garcia (87.50/100%) 5397bbb5920SAlberto Garcia (93.75/100%) 5407bbb5920SAlberto Garcia (100.00/100%) 5417bbb5920SAlberto Garcia (100.00/100%) 542ac40260dSKevin WolfNo errors were found on the image. 543ac40260dSKevin Wolf 544ac40260dSKevin Wolf=== Testing version downgrade with external data file === 545ac40260dSKevin Wolf 546ac40260dSKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 547ac40260dSKevin Wolfqemu-img: Cannot downgrade an image with a data file 548*bd385a52SKevin Wolfimage: TEST_DIR/t.IMGFMT 549*bd385a52SKevin Wolffile format: IMGFMT 550*bd385a52SKevin Wolfvirtual size: 64 MiB (67108864 bytes) 551ac40260dSKevin Wolfcluster_size: 65536 552ac40260dSKevin WolfFormat specific information: 553de38b500SEric Blake compat: 1.1 554ac40260dSKevin Wolf compression type: COMPRESSION_TYPE 555ac40260dSKevin Wolf lazy refcounts: false 556ac40260dSKevin Wolf refcount bits: 16 557dba5aee4SVladimir Sementsov-Ogievskiy data file: TEST_DIR/t.IMGFMT.data 558ac40260dSKevin Wolf data file raw: false 559ac40260dSKevin Wolf corrupt: false 560ac40260dSKevin Wolf extended l2: false 561ac40260dSKevin WolfNo errors were found on the image. 562ac40260dSKevin Wolf 5637be20252SAlberto Garcia=== Testing version downgrade with extended L2 entries === 564ac40260dSKevin Wolf 565*bd385a52SKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 566*bd385a52SKevin Wolfqemu-img: Cannot downgrade an image with incompatible features 0x10 set 567*bd385a52SKevin Wolf 568ac40260dSKevin Wolf=== Try changing the external data file === 569ac40260dSKevin Wolf 570de38b500SEric BlakeFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 571ac40260dSKevin Wolfqemu-img: data-file can only be set for images that use an external data file 572ac40260dSKevin Wolf 573ac40260dSKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data 574dba5aee4SVladimir Sementsov-Ogievskiyqemu-io: can't open device TEST_DIR/t.IMGFMT: Could not open 'foo': No such file or directory 575ac40260dSKevin Wolfread 4096/4096 bytes at offset 0 576ac40260dSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 577ac40260dSKevin Wolfimage: TEST_DIR/t.IMGFMT 578ac40260dSKevin Wolffile format: IMGFMT 5797be20252SAlberto Garciavirtual size: 64 MiB (67108864 bytes) 580ac40260dSKevin Wolfcluster_size: 65536 581ac40260dSKevin WolfFormat specific information: 582ac40260dSKevin Wolf compat: 1.1 583ac40260dSKevin Wolf compression type: COMPRESSION_TYPE 584ac40260dSKevin Wolf lazy refcounts: false 585ac40260dSKevin Wolf refcount bits: 16 586de38b500SEric Blake data file: foo 587ac40260dSKevin Wolf data file raw: false 588ac40260dSKevin Wolf corrupt: false 589ac40260dSKevin Wolf extended l2: false 590dba5aee4SVladimir Sementsov-Ogievskiy 591ac40260dSKevin Wolfqemu-io: can't open device TEST_DIR/t.IMGFMT: 'data-file' is required for this image 592ac40260dSKevin Wolfread 4096/4096 bytes at offset 0 593ac40260dSKevin Wolf4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 594ac40260dSKevin Wolfimage: TEST_DIR/t.IMGFMT 595ac40260dSKevin Wolffile format: IMGFMT 5967be20252SAlberto Garciavirtual size: 64 MiB (67108864 bytes) 597ac40260dSKevin Wolfcluster_size: 65536 598ac40260dSKevin WolfFormat specific information: 599ac40260dSKevin Wolf compat: 1.1 600de38b500SEric Blake compression type: COMPRESSION_TYPE 601ac40260dSKevin Wolf lazy refcounts: false 602ac40260dSKevin Wolf refcount bits: 16 603ac40260dSKevin Wolf data file raw: false 604dba5aee4SVladimir Sementsov-Ogievskiy corrupt: false 605ac40260dSKevin Wolf extended l2: false 606ac40260dSKevin Wolf 607ac40260dSKevin Wolf=== Clearing and setting data-file-raw === 608ac40260dSKevin Wolf 609ac40260dSKevin WolfFormatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 data_file=TEST_DIR/t.IMGFMT.data data_file_raw=on 6107be20252SAlberto Garciaimage: TEST_DIR/t.IMGFMT 611ac40260dSKevin Wolffile format: IMGFMT 612ac40260dSKevin Wolfvirtual size: 64 MiB (67108864 bytes) 613ac40260dSKevin Wolfcluster_size: 65536 614ac40260dSKevin WolfFormat specific information: 615de38b500SEric Blake compat: 1.1 616ac40260dSKevin Wolf compression type: COMPRESSION_TYPE 617ac40260dSKevin Wolf lazy refcounts: false 618ac40260dSKevin Wolf refcount bits: 16 619dba5aee4SVladimir Sementsov-Ogievskiy data file: TEST_DIR/t.IMGFMT.data 620ac40260dSKevin Wolf data file raw: true 621ac40260dSKevin Wolf corrupt: false 622ac40260dSKevin Wolf extended l2: false 623ac40260dSKevin WolfNo errors were found on the image. 624ac40260dSKevin Wolfimage: TEST_DIR/t.IMGFMT 6257be20252SAlberto Garciafile format: IMGFMT 626ac40260dSKevin Wolfvirtual size: 64 MiB (67108864 bytes) 627a8110c3dSMax Reitzcluster_size: 65536 628Format specific information: 629 compat: 1.1 630 compression type: COMPRESSION_TYPE 631 lazy refcounts: false 632 refcount bits: 16 633 data file: TEST_DIR/t.IMGFMT.data 634 data file raw: false 635 corrupt: false 636 extended l2: false 637No errors were found on the image. 638qemu-img: data-file-raw cannot be set on existing images 639image: TEST_DIR/t.IMGFMT 640file format: IMGFMT 641virtual size: 64 MiB (67108864 bytes) 642cluster_size: 65536 643Format specific information: 644 compat: 1.1 645 compression type: COMPRESSION_TYPE 646 lazy refcounts: false 647 refcount bits: 16 648 data file: TEST_DIR/t.IMGFMT.data 649 data file raw: false 650 corrupt: false 651 extended l2: false 652No errors were found on the image. 653*** done 654