1QA output created by 082 2 3=== create: Options specified more than once === 4 5Testing: create -f foo -f qcow2 TEST_DIR/t.qcow2 128M 6Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 7image: TEST_DIR/t.IMGFMT 8file format: IMGFMT 9virtual size: 128M (134217728 bytes) 10cluster_size: 65536 11 12Testing: create -f qcow2 -o cluster_size=4k -o lazy_refcounts=on TEST_DIR/t.qcow2 128M 13Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 encryption=off cluster_size=4096 lazy_refcounts=on refcount_bits=16 14image: TEST_DIR/t.IMGFMT 15file format: IMGFMT 16virtual size: 128M (134217728 bytes) 17cluster_size: 4096 18Format specific information: 19 compat: 1.1 20 lazy refcounts: true 21 refcount bits: 16 22 corrupt: false 23 24Testing: create -f qcow2 -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k TEST_DIR/t.qcow2 128M 25Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 encryption=off cluster_size=8192 lazy_refcounts=on refcount_bits=16 26image: TEST_DIR/t.IMGFMT 27file format: IMGFMT 28virtual size: 128M (134217728 bytes) 29cluster_size: 8192 30Format specific information: 31 compat: 1.1 32 lazy refcounts: true 33 refcount bits: 16 34 corrupt: false 35 36Testing: create -f qcow2 -o cluster_size=4k,cluster_size=8k TEST_DIR/t.qcow2 128M 37Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 encryption=off cluster_size=8192 lazy_refcounts=off refcount_bits=16 38image: TEST_DIR/t.IMGFMT 39file format: IMGFMT 40virtual size: 128M (134217728 bytes) 41cluster_size: 8192 42 43=== create: help for -o === 44 45Testing: create -f qcow2 -o help TEST_DIR/t.qcow2 128M 46Supported options: 47size Virtual disk size 48compat Compatibility level (0.10 or 1.1) 49backing_file File name of a base image 50backing_fmt Image format of the base image 51encryption Encrypt the image 52cluster_size qcow2 cluster size 53preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 54lazy_refcounts Postpone refcount updates 55refcount_bits Width of a reference count entry in bits 56nocow Turn off copy-on-write (valid only on btrfs) 57 58Testing: create -f qcow2 -o ? TEST_DIR/t.qcow2 128M 59Supported options: 60size Virtual disk size 61compat Compatibility level (0.10 or 1.1) 62backing_file File name of a base image 63backing_fmt Image format of the base image 64encryption Encrypt the image 65cluster_size qcow2 cluster size 66preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 67lazy_refcounts Postpone refcount updates 68refcount_bits Width of a reference count entry in bits 69nocow Turn off copy-on-write (valid only on btrfs) 70 71Testing: create -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 128M 72Supported options: 73size Virtual disk size 74compat Compatibility level (0.10 or 1.1) 75backing_file File name of a base image 76backing_fmt Image format of the base image 77encryption Encrypt the image 78cluster_size qcow2 cluster size 79preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 80lazy_refcounts Postpone refcount updates 81refcount_bits Width of a reference count entry in bits 82nocow Turn off copy-on-write (valid only on btrfs) 83 84Testing: create -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 128M 85Supported options: 86size Virtual disk size 87compat Compatibility level (0.10 or 1.1) 88backing_file File name of a base image 89backing_fmt Image format of the base image 90encryption Encrypt the image 91cluster_size qcow2 cluster size 92preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 93lazy_refcounts Postpone refcount updates 94refcount_bits Width of a reference count entry in bits 95nocow Turn off copy-on-write (valid only on btrfs) 96 97Testing: create -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 128M 98Supported options: 99size Virtual disk size 100compat Compatibility level (0.10 or 1.1) 101backing_file File name of a base image 102backing_fmt Image format of the base image 103encryption Encrypt the image 104cluster_size qcow2 cluster size 105preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 106lazy_refcounts Postpone refcount updates 107refcount_bits Width of a reference count entry in bits 108nocow Turn off copy-on-write (valid only on btrfs) 109 110Testing: create -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 128M 111Supported options: 112size Virtual disk size 113compat Compatibility level (0.10 or 1.1) 114backing_file File name of a base image 115backing_fmt Image format of the base image 116encryption Encrypt the image 117cluster_size qcow2 cluster size 118preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 119lazy_refcounts Postpone refcount updates 120refcount_bits Width of a reference count entry in bits 121nocow Turn off copy-on-write (valid only on btrfs) 122 123Testing: create -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 128M 124Supported options: 125size Virtual disk size 126compat Compatibility level (0.10 or 1.1) 127backing_file File name of a base image 128backing_fmt Image format of the base image 129encryption Encrypt the image 130cluster_size qcow2 cluster size 131preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 132lazy_refcounts Postpone refcount updates 133refcount_bits Width of a reference count entry in bits 134nocow Turn off copy-on-write (valid only on btrfs) 135 136Testing: create -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 128M 137Supported options: 138size Virtual disk size 139compat Compatibility level (0.10 or 1.1) 140backing_file File name of a base image 141backing_fmt Image format of the base image 142encryption Encrypt the image 143cluster_size qcow2 cluster size 144preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 145lazy_refcounts Postpone refcount updates 146refcount_bits Width of a reference count entry in bits 147nocow Turn off copy-on-write (valid only on btrfs) 148 149Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 128M 150Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 backing_file=TEST_DIR/t.qcow2,,help encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 151 152Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2 128M 153Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 backing_file=TEST_DIR/t.qcow2,,? encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 154 155Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 128M 156qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2, 157 158Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2 128M 159qemu-img: Invalid option list: ,help 160 161Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 128M 162qemu-img: Invalid option list: ,, 163 164Testing: create -f qcow2 -o help 165Supported options: 166size Virtual disk size 167compat Compatibility level (0.10 or 1.1) 168backing_file File name of a base image 169backing_fmt Image format of the base image 170encryption Encrypt the image 171cluster_size qcow2 cluster size 172preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 173lazy_refcounts Postpone refcount updates 174refcount_bits Width of a reference count entry in bits 175 176Testing: create -o help 177Supported options: 178size Virtual disk size 179 180=== convert: Options specified more than once === 181 182Testing: create -f qcow2 TEST_DIR/t.qcow2 128M 183Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16 184 185Testing: convert -f foo -f qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 186image: TEST_DIR/t.IMGFMT.base 187file format: raw 188virtual size: 128M (134217728 bytes) 189 190Testing: convert -O foo -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 191image: TEST_DIR/t.IMGFMT.base 192file format: IMGFMT 193virtual size: 128M (134217728 bytes) 194cluster_size: 65536 195 196Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 197image: TEST_DIR/t.IMGFMT.base 198file format: IMGFMT 199virtual size: 128M (134217728 bytes) 200cluster_size: 4096 201Format specific information: 202 compat: 1.1 203 lazy refcounts: true 204 refcount bits: 16 205 corrupt: false 206 207Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 208image: TEST_DIR/t.IMGFMT.base 209file format: IMGFMT 210virtual size: 128M (134217728 bytes) 211cluster_size: 8192 212Format specific information: 213 compat: 1.1 214 lazy refcounts: true 215 refcount bits: 16 216 corrupt: false 217 218Testing: convert -O qcow2 -o cluster_size=4k,cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 219image: TEST_DIR/t.IMGFMT.base 220file format: IMGFMT 221virtual size: 128M (134217728 bytes) 222cluster_size: 8192 223 224=== convert: help for -o === 225 226Testing: convert -O qcow2 -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 227Supported options: 228size Virtual disk size 229compat Compatibility level (0.10 or 1.1) 230backing_file File name of a base image 231backing_fmt Image format of the base image 232encryption Encrypt the image 233cluster_size qcow2 cluster size 234preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 235lazy_refcounts Postpone refcount updates 236refcount_bits Width of a reference count entry in bits 237nocow Turn off copy-on-write (valid only on btrfs) 238 239Testing: convert -O qcow2 -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 240Supported options: 241size Virtual disk size 242compat Compatibility level (0.10 or 1.1) 243backing_file File name of a base image 244backing_fmt Image format of the base image 245encryption Encrypt the image 246cluster_size qcow2 cluster size 247preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 248lazy_refcounts Postpone refcount updates 249refcount_bits Width of a reference count entry in bits 250nocow Turn off copy-on-write (valid only on btrfs) 251 252Testing: convert -O qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 253Supported options: 254size Virtual disk size 255compat Compatibility level (0.10 or 1.1) 256backing_file File name of a base image 257backing_fmt Image format of the base image 258encryption Encrypt the image 259cluster_size qcow2 cluster size 260preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 261lazy_refcounts Postpone refcount updates 262refcount_bits Width of a reference count entry in bits 263nocow Turn off copy-on-write (valid only on btrfs) 264 265Testing: convert -O qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 266Supported options: 267size Virtual disk size 268compat Compatibility level (0.10 or 1.1) 269backing_file File name of a base image 270backing_fmt Image format of the base image 271encryption Encrypt the image 272cluster_size qcow2 cluster size 273preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 274lazy_refcounts Postpone refcount updates 275refcount_bits Width of a reference count entry in bits 276nocow Turn off copy-on-write (valid only on btrfs) 277 278Testing: convert -O qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 279Supported options: 280size Virtual disk size 281compat Compatibility level (0.10 or 1.1) 282backing_file File name of a base image 283backing_fmt Image format of the base image 284encryption Encrypt the image 285cluster_size qcow2 cluster size 286preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 287lazy_refcounts Postpone refcount updates 288refcount_bits Width of a reference count entry in bits 289nocow Turn off copy-on-write (valid only on btrfs) 290 291Testing: convert -O qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 292Supported options: 293size Virtual disk size 294compat Compatibility level (0.10 or 1.1) 295backing_file File name of a base image 296backing_fmt Image format of the base image 297encryption Encrypt the image 298cluster_size qcow2 cluster size 299preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 300lazy_refcounts Postpone refcount updates 301refcount_bits Width of a reference count entry in bits 302nocow Turn off copy-on-write (valid only on btrfs) 303 304Testing: convert -O qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 305Supported options: 306size Virtual disk size 307compat Compatibility level (0.10 or 1.1) 308backing_file File name of a base image 309backing_fmt Image format of the base image 310encryption Encrypt the image 311cluster_size qcow2 cluster size 312preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 313lazy_refcounts Postpone refcount updates 314refcount_bits Width of a reference count entry in bits 315nocow Turn off copy-on-write (valid only on btrfs) 316 317Testing: convert -O qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 318Supported options: 319size Virtual disk size 320compat Compatibility level (0.10 or 1.1) 321backing_file File name of a base image 322backing_fmt Image format of the base image 323encryption Encrypt the image 324cluster_size qcow2 cluster size 325preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 326lazy_refcounts Postpone refcount updates 327refcount_bits Width of a reference count entry in bits 328nocow Turn off copy-on-write (valid only on btrfs) 329 330Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 331qemu-img: Could not open 'TEST_DIR/t.qcow2.base': Could not open backing file: Could not open 'TEST_DIR/t.qcow2,help': No such file or directory 332 333Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 334qemu-img: Could not open 'TEST_DIR/t.qcow2.base': Could not open backing file: Could not open 'TEST_DIR/t.qcow2,?': No such file or directory 335 336Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 337qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2, 338 339Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 340qemu-img: Invalid option list: ,help 341 342Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base 343qemu-img: Invalid option list: ,, 344 345Testing: convert -O qcow2 -o help 346Supported options: 347size Virtual disk size 348compat Compatibility level (0.10 or 1.1) 349backing_file File name of a base image 350backing_fmt Image format of the base image 351encryption Encrypt the image 352cluster_size qcow2 cluster size 353preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 354lazy_refcounts Postpone refcount updates 355refcount_bits Width of a reference count entry in bits 356 357Testing: convert -o help 358Supported options: 359size Virtual disk size 360 361=== amend: Options specified more than once === 362 363Testing: amend -f foo -f qcow2 -o lazy_refcounts=on TEST_DIR/t.qcow2 364image: TEST_DIR/t.IMGFMT 365file format: IMGFMT 366virtual size: 128M (134217728 bytes) 367cluster_size: 65536 368Format specific information: 369 compat: 1.1 370 lazy refcounts: true 371 refcount bits: 16 372 corrupt: false 373 374Testing: amend -f qcow2 -o size=130M -o lazy_refcounts=off TEST_DIR/t.qcow2 375image: TEST_DIR/t.IMGFMT 376file format: IMGFMT 377virtual size: 130M (136314880 bytes) 378cluster_size: 65536 379Format specific information: 380 compat: 1.1 381 lazy refcounts: false 382 refcount bits: 16 383 corrupt: false 384 385Testing: amend -f qcow2 -o size=8M -o lazy_refcounts=on -o size=132M TEST_DIR/t.qcow2 386image: TEST_DIR/t.IMGFMT 387file format: IMGFMT 388virtual size: 132M (138412032 bytes) 389cluster_size: 65536 390Format specific information: 391 compat: 1.1 392 lazy refcounts: true 393 refcount bits: 16 394 corrupt: false 395 396Testing: amend -f qcow2 -o size=4M,size=148M TEST_DIR/t.qcow2 397image: TEST_DIR/t.IMGFMT 398file format: IMGFMT 399virtual size: 148M (155189248 bytes) 400cluster_size: 65536 401 402=== amend: help for -o === 403 404Testing: amend -f qcow2 -o help TEST_DIR/t.qcow2 405Supported options: 406size Virtual disk size 407compat Compatibility level (0.10 or 1.1) 408backing_file File name of a base image 409backing_fmt Image format of the base image 410encryption Encrypt the image 411cluster_size qcow2 cluster size 412preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 413lazy_refcounts Postpone refcount updates 414refcount_bits Width of a reference count entry in bits 415nocow Turn off copy-on-write (valid only on btrfs) 416 417Testing: amend -f qcow2 -o ? TEST_DIR/t.qcow2 418Supported options: 419size Virtual disk size 420compat Compatibility level (0.10 or 1.1) 421backing_file File name of a base image 422backing_fmt Image format of the base image 423encryption Encrypt the image 424cluster_size qcow2 cluster size 425preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 426lazy_refcounts Postpone refcount updates 427refcount_bits Width of a reference count entry in bits 428nocow Turn off copy-on-write (valid only on btrfs) 429 430Testing: amend -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 431Supported options: 432size Virtual disk size 433compat Compatibility level (0.10 or 1.1) 434backing_file File name of a base image 435backing_fmt Image format of the base image 436encryption Encrypt the image 437cluster_size qcow2 cluster size 438preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 439lazy_refcounts Postpone refcount updates 440refcount_bits Width of a reference count entry in bits 441nocow Turn off copy-on-write (valid only on btrfs) 442 443Testing: amend -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 444Supported options: 445size Virtual disk size 446compat Compatibility level (0.10 or 1.1) 447backing_file File name of a base image 448backing_fmt Image format of the base image 449encryption Encrypt the image 450cluster_size qcow2 cluster size 451preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 452lazy_refcounts Postpone refcount updates 453refcount_bits Width of a reference count entry in bits 454nocow Turn off copy-on-write (valid only on btrfs) 455 456Testing: amend -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 457Supported options: 458size Virtual disk size 459compat Compatibility level (0.10 or 1.1) 460backing_file File name of a base image 461backing_fmt Image format of the base image 462encryption Encrypt the image 463cluster_size qcow2 cluster size 464preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 465lazy_refcounts Postpone refcount updates 466refcount_bits Width of a reference count entry in bits 467nocow Turn off copy-on-write (valid only on btrfs) 468 469Testing: amend -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 470Supported options: 471size Virtual disk size 472compat Compatibility level (0.10 or 1.1) 473backing_file File name of a base image 474backing_fmt Image format of the base image 475encryption Encrypt the image 476cluster_size qcow2 cluster size 477preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 478lazy_refcounts Postpone refcount updates 479refcount_bits Width of a reference count entry in bits 480nocow Turn off copy-on-write (valid only on btrfs) 481 482Testing: amend -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 483Supported options: 484size Virtual disk size 485compat Compatibility level (0.10 or 1.1) 486backing_file File name of a base image 487backing_fmt Image format of the base image 488encryption Encrypt the image 489cluster_size qcow2 cluster size 490preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 491lazy_refcounts Postpone refcount updates 492refcount_bits Width of a reference count entry in bits 493nocow Turn off copy-on-write (valid only on btrfs) 494 495Testing: amend -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 496Supported options: 497size Virtual disk size 498compat Compatibility level (0.10 or 1.1) 499backing_file File name of a base image 500backing_fmt Image format of the base image 501encryption Encrypt the image 502cluster_size qcow2 cluster size 503preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 504lazy_refcounts Postpone refcount updates 505refcount_bits Width of a reference count entry in bits 506nocow Turn off copy-on-write (valid only on btrfs) 507 508Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 509 510Testing: rebase -u -b -f qcow2 TEST_DIR/t.qcow2 511 512Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2 513 514Testing: rebase -u -b -f qcow2 TEST_DIR/t.qcow2 515 516Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 517qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2, 518 519Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2 520qemu-img: Invalid option list: ,help 521 522Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 523qemu-img: Invalid option list: ,, 524 525Testing: amend -f qcow2 -o help 526Supported options: 527size Virtual disk size 528compat Compatibility level (0.10 or 1.1) 529backing_file File name of a base image 530backing_fmt Image format of the base image 531encryption Encrypt the image 532cluster_size qcow2 cluster size 533preallocation Preallocation mode (allowed values: off, metadata, falloc, full) 534lazy_refcounts Postpone refcount updates 535refcount_bits Width of a reference count entry in bits 536 537Testing: convert -o help 538Supported options: 539size Virtual disk size 540*** done 541