hw/arm/sbsa-ref: Remove unnecessary check for secure_sysmem == NULL
[qemu/ar7.git] / tests / qemu-iotests / 049.out
blob6b505408dd0fdb28063bda1443933be30689baa1
1 QA output created by 049
2 === Check correct interpretation of suffixes for image size ===
4 == 1. Traditional size parameter ==
6 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024
7 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
9 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024b
10 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
12 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1k
13 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
15 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1K
16 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
18 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1M
19 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 cluster_size=65536 lazy_refcounts=off refcount_bits=16
21 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1G
22 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16
24 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1T
25 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 cluster_size=65536 lazy_refcounts=off refcount_bits=16
27 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0
28 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
30 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0b
31 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
33 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5k
34 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
36 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5K
37 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
39 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5M
40 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 cluster_size=65536 lazy_refcounts=off refcount_bits=16
42 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5G
43 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 cluster_size=65536 lazy_refcounts=off refcount_bits=16
45 qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5T
46 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 cluster_size=65536 lazy_refcounts=off refcount_bits=16
48 == 2. Specifying size via -o ==
50 qemu-img create -f qcow2 -o size=1024 TEST_DIR/t.qcow2
51 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
53 qemu-img create -f qcow2 -o size=1024b TEST_DIR/t.qcow2
54 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
56 qemu-img create -f qcow2 -o size=1k TEST_DIR/t.qcow2
57 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
59 qemu-img create -f qcow2 -o size=1K TEST_DIR/t.qcow2
60 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
62 qemu-img create -f qcow2 -o size=1M TEST_DIR/t.qcow2
63 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 cluster_size=65536 lazy_refcounts=off refcount_bits=16
65 qemu-img create -f qcow2 -o size=1G TEST_DIR/t.qcow2
66 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 cluster_size=65536 lazy_refcounts=off refcount_bits=16
68 qemu-img create -f qcow2 -o size=1T TEST_DIR/t.qcow2
69 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 cluster_size=65536 lazy_refcounts=off refcount_bits=16
71 qemu-img create -f qcow2 -o size=1024.0 TEST_DIR/t.qcow2
72 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
74 qemu-img create -f qcow2 -o size=1024.0b TEST_DIR/t.qcow2
75 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 cluster_size=65536 lazy_refcounts=off refcount_bits=16
77 qemu-img create -f qcow2 -o size=1.5k TEST_DIR/t.qcow2
78 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
80 qemu-img create -f qcow2 -o size=1.5K TEST_DIR/t.qcow2
81 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 cluster_size=65536 lazy_refcounts=off refcount_bits=16
83 qemu-img create -f qcow2 -o size=1.5M TEST_DIR/t.qcow2
84 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 cluster_size=65536 lazy_refcounts=off refcount_bits=16
86 qemu-img create -f qcow2 -o size=1.5G TEST_DIR/t.qcow2
87 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 cluster_size=65536 lazy_refcounts=off refcount_bits=16
89 qemu-img create -f qcow2 -o size=1.5T TEST_DIR/t.qcow2
90 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 cluster_size=65536 lazy_refcounts=off refcount_bits=16
92 == 3. Invalid sizes ==
94 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1024
95 qemu-img: Image size must be less than 8 EiB!
97 qemu-img create -f qcow2 -o size=-1024 TEST_DIR/t.qcow2
98 qemu-img: TEST_DIR/t.qcow2: Value '-1024' is out of range for parameter 'size'
100 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1k
101 qemu-img: Image size must be less than 8 EiB!
103 qemu-img create -f qcow2 -o size=-1k TEST_DIR/t.qcow2
104 qemu-img: TEST_DIR/t.qcow2: Value '-1k' is out of range for parameter 'size'
106 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- 1kilobyte
107 qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
108 qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
110 qemu-img create -f qcow2 -o size=1kilobyte TEST_DIR/t.qcow2
111 qemu-img: TEST_DIR/t.qcow2: Parameter 'size' expects a non-negative number below 2^64
112 Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
113 and exabytes, respectively.
115 qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- foobar
116 qemu-img: Invalid image size specified! You may use k, M, G, T, P or E suffixes for
117 qemu-img: kilobytes, megabytes, gigabytes, terabytes, petabytes and exabytes.
119 qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
120 qemu-img: TEST_DIR/t.qcow2: Parameter 'size' expects a non-negative number below 2^64
121 Optional suffix k, M, G, T, P or E means kilo-, mega-, giga-, tera-, peta-
122 and exabytes, respectively.
124 == Check correct interpretation of suffixes for cluster size ==
126 qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M
127 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
129 qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M
130 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
132 qemu-img create -f qcow2 -o cluster_size=1k TEST_DIR/t.qcow2 64M
133 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
135 qemu-img create -f qcow2 -o cluster_size=1K TEST_DIR/t.qcow2 64M
136 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
138 qemu-img create -f qcow2 -o cluster_size=1M TEST_DIR/t.qcow2 64M
139 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1048576 lazy_refcounts=off refcount_bits=16
141 qemu-img create -f qcow2 -o cluster_size=1024.0 TEST_DIR/t.qcow2 64M
142 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
144 qemu-img create -f qcow2 -o cluster_size=1024.0b TEST_DIR/t.qcow2 64M
145 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=1024 lazy_refcounts=off refcount_bits=16
147 qemu-img create -f qcow2 -o cluster_size=0.5k TEST_DIR/t.qcow2 64M
148 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=512 lazy_refcounts=off refcount_bits=16
150 qemu-img create -f qcow2 -o cluster_size=0.5K TEST_DIR/t.qcow2 64M
151 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=512 lazy_refcounts=off refcount_bits=16
153 qemu-img create -f qcow2 -o cluster_size=0.5M TEST_DIR/t.qcow2 64M
154 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=524288 lazy_refcounts=off refcount_bits=16
156 == Check compat level option ==
158 qemu-img create -f qcow2 -o compat=0.10 TEST_DIR/t.qcow2 64M
159 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 cluster_size=65536 lazy_refcounts=off refcount_bits=16
161 qemu-img create -f qcow2 -o compat=1.1 TEST_DIR/t.qcow2 64M
162 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 cluster_size=65536 lazy_refcounts=off refcount_bits=16
164 qemu-img create -f qcow2 -o compat=0.42 TEST_DIR/t.qcow2 64M
165 qemu-img: TEST_DIR/t.qcow2: Invalid parameter '0.42'
166 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.42 cluster_size=65536 lazy_refcounts=off refcount_bits=16
168 qemu-img create -f qcow2 -o compat=foobar TEST_DIR/t.qcow2 64M
169 qemu-img: TEST_DIR/t.qcow2: Invalid parameter 'foobar'
170 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=foobar cluster_size=65536 lazy_refcounts=off refcount_bits=16
172 == Check preallocation option ==
174 qemu-img create -f qcow2 -o preallocation=off TEST_DIR/t.qcow2 64M
175 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=65536 preallocation=off lazy_refcounts=off refcount_bits=16
177 qemu-img create -f qcow2 -o preallocation=metadata TEST_DIR/t.qcow2 64M
178 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=65536 preallocation=metadata lazy_refcounts=off refcount_bits=16
180 qemu-img create -f qcow2 -o preallocation=1234 TEST_DIR/t.qcow2 64M
181 qemu-img: TEST_DIR/t.qcow2: Invalid parameter '1234'
182 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 cluster_size=65536 preallocation=1234 lazy_refcounts=off refcount_bits=16
184 == Check encryption option ==
186 qemu-img create -f qcow2 -o encryption=off TEST_DIR/t.qcow2 64M
187 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 lazy_refcounts=off refcount_bits=16
189 qemu-img create -f qcow2 --object secret,id=sec0,data=123456 -o encryption=on,encrypt.key-secret=sec0 TEST_DIR/t.qcow2 64M
190 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=on encrypt.key-secret=sec0 cluster_size=65536 lazy_refcounts=off refcount_bits=16
192 == Check lazy_refcounts option (only with v3) ==
194 qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=off TEST_DIR/t.qcow2 64M
195 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 cluster_size=65536 lazy_refcounts=off refcount_bits=16
197 qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=on TEST_DIR/t.qcow2 64M
198 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=1.1 cluster_size=65536 lazy_refcounts=on refcount_bits=16
200 qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=off TEST_DIR/t.qcow2 64M
201 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 cluster_size=65536 lazy_refcounts=off refcount_bits=16
203 qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=on TEST_DIR/t.qcow2 64M
204 qemu-img: TEST_DIR/t.qcow2: Lazy refcounts only supported with compatibility level 1.1 and above (use version=v3 or greater)
205 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat=0.10 cluster_size=65536 lazy_refcounts=on refcount_bits=16
207 *** done