049.out (13399aad4fa87b2878c49d02a5d3bafa6c966ba3) 049.out (f6dc1c31d3801dcbdf0c56574f9ff4f05180810c)
1QA output created by 049
2=== Check correct interpretation of suffixes for image size ===
3
4== 1. Traditional size parameter ==
5
6qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024
7Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
8

--- 107 unchanged lines hidden (view full) ---

116qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
117qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
118
119qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
120qemu-img: TEST_DIR/t.qcow2: Parameter 'size' expects a non-negative number below 2^64
121Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
122and exabytes, respectively.
123
1QA output created by 049
2=== Check correct interpretation of suffixes for image size ===
3
4== 1. Traditional size parameter ==
5
6qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024
7Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
8

--- 107 unchanged lines hidden (view full) ---

116qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
117qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
118
119qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
120qemu-img: TEST_DIR/t.qcow2: Parameter 'size' expects a non-negative number below 2^64
121Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
122and exabytes, respectively.
123
124== 4. Specify size twice (-o and traditional parameter) ==
125
126qemu-img create -f qcow2 -o size=10M TEST_DIR/t.qcow2 20M
127qemu-img: TEST_DIR/t.qcow2: The image size must be specified only once
128
124== Check correct interpretation of suffixes for cluster size ==
125
126qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M
127Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
128
129qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M
130Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
131

--- 76 unchanged lines hidden ---
129== Check correct interpretation of suffixes for cluster size ==
130
131qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M
132Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
133
134qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M
135Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
136

--- 76 unchanged lines hidden ---