14dc9f9d6SKevin WolfQA output created by 049 24dc9f9d6SKevin Wolf=== Check correct interpretation of suffixes for image size === 34dc9f9d6SKevin Wolf 44dc9f9d6SKevin Wolf== 1. Traditional size parameter == 54dc9f9d6SKevin Wolf 64dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1024 77be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 84dc9f9d6SKevin Wolf 94dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1024b 107be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 114dc9f9d6SKevin Wolf 124dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1k 137be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 144dc9f9d6SKevin Wolf 154dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1K 167be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 174dc9f9d6SKevin Wolf 184dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1M 197be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 lazy_refcounts=off refcount_bits=16 204dc9f9d6SKevin Wolf 214dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1G 227be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1073741824 lazy_refcounts=off refcount_bits=16 234dc9f9d6SKevin Wolf 244dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1T 257be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1099511627776 lazy_refcounts=off refcount_bits=16 264dc9f9d6SKevin Wolf 274dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0 287be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 294dc9f9d6SKevin Wolf 304dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0b 317be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 324dc9f9d6SKevin Wolf 334dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5k 347be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1536 lazy_refcounts=off refcount_bits=16 354dc9f9d6SKevin Wolf 364dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5K 377be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1536 lazy_refcounts=off refcount_bits=16 384dc9f9d6SKevin Wolf 394dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5M 407be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1572864 lazy_refcounts=off refcount_bits=16 414dc9f9d6SKevin Wolf 424dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5G 437be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1610612736 lazy_refcounts=off refcount_bits=16 444dc9f9d6SKevin Wolf 454dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5T 467be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1649267441664 lazy_refcounts=off refcount_bits=16 474dc9f9d6SKevin Wolf 484dc9f9d6SKevin Wolf== 2. Specifying size via -o == 494dc9f9d6SKevin Wolf 504dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1024 TEST_DIR/t.qcow2 517be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 524dc9f9d6SKevin Wolf 534dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1024b TEST_DIR/t.qcow2 547be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 554dc9f9d6SKevin Wolf 564dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1k TEST_DIR/t.qcow2 577be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 584dc9f9d6SKevin Wolf 594dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1K TEST_DIR/t.qcow2 607be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 614dc9f9d6SKevin Wolf 624dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1M TEST_DIR/t.qcow2 637be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1048576 lazy_refcounts=off refcount_bits=16 644dc9f9d6SKevin Wolf 654dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1G TEST_DIR/t.qcow2 667be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1073741824 lazy_refcounts=off refcount_bits=16 674dc9f9d6SKevin Wolf 684dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1T TEST_DIR/t.qcow2 697be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1099511627776 lazy_refcounts=off refcount_bits=16 704dc9f9d6SKevin Wolf 714dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1024.0 TEST_DIR/t.qcow2 727be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 734dc9f9d6SKevin Wolf 744dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1024.0b TEST_DIR/t.qcow2 757be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1024 lazy_refcounts=off refcount_bits=16 764dc9f9d6SKevin Wolf 774dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1.5k TEST_DIR/t.qcow2 787be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1536 lazy_refcounts=off refcount_bits=16 794dc9f9d6SKevin Wolf 804dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1.5K TEST_DIR/t.qcow2 817be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1536 lazy_refcounts=off refcount_bits=16 824dc9f9d6SKevin Wolf 834dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1.5M TEST_DIR/t.qcow2 847be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1572864 lazy_refcounts=off refcount_bits=16 854dc9f9d6SKevin Wolf 864dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1.5G TEST_DIR/t.qcow2 877be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1610612736 lazy_refcounts=off refcount_bits=16 884dc9f9d6SKevin Wolf 894dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1.5T TEST_DIR/t.qcow2 907be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=1649267441664 lazy_refcounts=off refcount_bits=16 914dc9f9d6SKevin Wolf 924dc9f9d6SKevin Wolf== 3. Invalid sizes == 934dc9f9d6SKevin Wolf 944dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1024 95*b87ac966SEric Blakeqemu-img: Invalid image size specified. Must be between 0 and 9223372036854775807. 964dc9f9d6SKevin Wolf 974dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=-1024 TEST_DIR/t.qcow2 98*b87ac966SEric Blakeqemu-img: TEST_DIR/t.qcow2: Value '-1024' is out of range for parameter 'size' 994dc9f9d6SKevin Wolf 1004dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1k 101cf923b78SEric Blakeqemu-img: Invalid image size specified. You may use k, M, G, T, P or E suffixes for 102cf923b78SEric Blakeqemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes. 1034dc9f9d6SKevin Wolf 1044dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=-1k TEST_DIR/t.qcow2 105cf923b78SEric Blakeqemu-img: TEST_DIR/t.qcow2: Parameter 'size' expects a non-negative number below 2^64 106cf923b78SEric BlakeOptional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta- 107cf923b78SEric Blakeand exabytes, respectively. 1084dc9f9d6SKevin Wolf 1094dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 -- 1kilobyte 11043d589b0SEyal Moscoviciqemu-img: Invalid image size specified. You may use k, M, G, T, P or E suffixes for 1115e00984aSKevin Wolfqemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes. 1124dc9f9d6SKevin Wolf 1134dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=1kilobyte TEST_DIR/t.qcow2 114da7e92caSMarkus Armbrusterqemu-img: TEST_DIR/t.qcow2: Parameter 'size' expects a non-negative number below 2^64 1159e19ad4eSMarkus ArmbrusterOptional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta- 1169e19ad4eSMarkus Armbrusterand exabytes, respectively. 1174dc9f9d6SKevin Wolf 1184dc9f9d6SKevin Wolfqemu-img create -f qcow2 TEST_DIR/t.qcow2 -- foobar 11943d589b0SEyal Moscoviciqemu-img: Invalid image size specified. You may use k, M, G, T, P or E suffixes for 1205e00984aSKevin Wolfqemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes. 1214dc9f9d6SKevin Wolf 1224dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2 123da7e92caSMarkus Armbrusterqemu-img: TEST_DIR/t.qcow2: Parameter 'size' expects a non-negative number below 2^64 1249e19ad4eSMarkus ArmbrusterOptional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta- 1259e19ad4eSMarkus Armbrusterand exabytes, respectively. 1264dc9f9d6SKevin Wolf 127f6dc1c31SKevin Wolf== 4. Specify size twice (-o and traditional parameter) == 128f6dc1c31SKevin Wolf 129f6dc1c31SKevin Wolfqemu-img create -f qcow2 -o size=10M TEST_DIR/t.qcow2 20M 130f6dc1c31SKevin Wolfqemu-img: TEST_DIR/t.qcow2: The image size must be specified only once 131f6dc1c31SKevin Wolf 1324dc9f9d6SKevin Wolf== Check correct interpretation of suffixes for cluster size == 1334dc9f9d6SKevin Wolf 1344dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M 1357be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=1024 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1364dc9f9d6SKevin Wolf 1374dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M 1387be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=1024 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1394dc9f9d6SKevin Wolf 1404dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=1k TEST_DIR/t.qcow2 64M 1417be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=1024 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1424dc9f9d6SKevin Wolf 1434dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=1K TEST_DIR/t.qcow2 64M 1447be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=1024 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1454dc9f9d6SKevin Wolf 1464dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=1M TEST_DIR/t.qcow2 64M 1477be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=1048576 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1484dc9f9d6SKevin Wolf 1494dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=1024.0 TEST_DIR/t.qcow2 64M 1507be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=1024 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1514dc9f9d6SKevin Wolf 1524dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=1024.0b TEST_DIR/t.qcow2 64M 1537be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=1024 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1544dc9f9d6SKevin Wolf 1554dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=0.5k TEST_DIR/t.qcow2 64M 1567be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=512 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1574dc9f9d6SKevin Wolf 1584dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=0.5K TEST_DIR/t.qcow2 64M 1597be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=512 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1604dc9f9d6SKevin Wolf 1614dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o cluster_size=0.5M TEST_DIR/t.qcow2 64M 1627be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=524288 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1634dc9f9d6SKevin Wolf 1644dc9f9d6SKevin Wolf== Check compat level option == 1654dc9f9d6SKevin Wolf 1664dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=0.10 TEST_DIR/t.qcow2 64M 1677be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=0.10 lazy_refcounts=off refcount_bits=16 1684dc9f9d6SKevin Wolf 1694dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=1.1 TEST_DIR/t.qcow2 64M 1707be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=1.1 lazy_refcounts=off refcount_bits=16 1714dc9f9d6SKevin Wolf 1724dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=0.42 TEST_DIR/t.qcow2 64M 1737be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=0.42 lazy_refcounts=off refcount_bits=16 174ea29331bSMarkus Armbrusterqemu-img: TEST_DIR/t.qcow2: Parameter 'version' does not accept value '0.42' 1754dc9f9d6SKevin Wolf 1764dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=foobar TEST_DIR/t.qcow2 64M 1777be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=foobar lazy_refcounts=off refcount_bits=16 178ea29331bSMarkus Armbrusterqemu-img: TEST_DIR/t.qcow2: Parameter 'version' does not accept value 'foobar' 1794dc9f9d6SKevin Wolf 1804dc9f9d6SKevin Wolf== Check preallocation option == 1814dc9f9d6SKevin Wolf 1824dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o preallocation=off TEST_DIR/t.qcow2 64M 1837be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1844dc9f9d6SKevin Wolf 1854dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o preallocation=metadata TEST_DIR/t.qcow2 64M 1867be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=metadata compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1874dc9f9d6SKevin Wolf 1884dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o preallocation=1234 TEST_DIR/t.qcow2 64M 1897be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off preallocation=1234 compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 190ea29331bSMarkus Armbrusterqemu-img: TEST_DIR/t.qcow2: Parameter 'preallocation' does not accept value '1234' 1914dc9f9d6SKevin Wolf 1924dc9f9d6SKevin Wolf== Check encryption option == 1934dc9f9d6SKevin Wolf 1944dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o encryption=off TEST_DIR/t.qcow2 64M 1957be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 encryption=off cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1964dc9f9d6SKevin Wolf 197b25b387fSDaniel P. Berrangeqemu-img create -f qcow2 --object secret,id=sec0,data=123456 -o encryption=on,encrypt.key-secret=sec0 TEST_DIR/t.qcow2 64M 1987be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 encryption=on encrypt.key-secret=sec0 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 lazy_refcounts=off refcount_bits=16 1994dc9f9d6SKevin Wolf 2004dc9f9d6SKevin Wolf== Check lazy_refcounts option (only with v3) == 2014dc9f9d6SKevin Wolf 2024dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=off TEST_DIR/t.qcow2 64M 2037be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=1.1 lazy_refcounts=off refcount_bits=16 2044dc9f9d6SKevin Wolf 2054dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=on TEST_DIR/t.qcow2 64M 2067be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=1.1 lazy_refcounts=on refcount_bits=16 2074dc9f9d6SKevin Wolf 2084dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=off TEST_DIR/t.qcow2 64M 2097be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=0.10 lazy_refcounts=off refcount_bits=16 2104dc9f9d6SKevin Wolf 2114dc9f9d6SKevin Wolfqemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=on TEST_DIR/t.qcow2 64M 2127be20252SAlberto GarciaFormatting 'TEST_DIR/t.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=67108864 compat=0.10 lazy_refcounts=on refcount_bits=16 2134e2f4418SEric Blakeqemu-img: TEST_DIR/t.qcow2: Lazy refcounts only supported with compatibility level 1.1 and above (use version=v3 or greater) 2144dc9f9d6SKevin Wolf 215975a7bd2SConnor Kuehl== Expect error when backing file name is empty string == 216975a7bd2SConnor Kuehl 217975a7bd2SConnor Kuehlqemu-img create -f qcow2 -b TEST_DIR/t.qcow2 1M 218975a7bd2SConnor Kuehlqemu-img: TEST_DIR/t.qcow2: Expected backing file name, got empty string 219975a7bd2SConnor Kuehl 2204dc9f9d6SKevin Wolf*** done 221