xref: /openbmc/qemu/tests/qemu-iotests/049.out (revision 1fd6bb44)
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 encryption=off cluster_size=65536 lazy_refcounts=off
8
9qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024b
10Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
11
12qemu-img create -f qcow2 TEST_DIR/t.qcow2 1k
13Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
14
15qemu-img create -f qcow2 TEST_DIR/t.qcow2 1K
16Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
17
18qemu-img create -f qcow2 TEST_DIR/t.qcow2 1M
19Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 encryption=off cluster_size=65536 lazy_refcounts=off
20
21qemu-img create -f qcow2 TEST_DIR/t.qcow2 1G
22Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off
23
24qemu-img create -f qcow2 TEST_DIR/t.qcow2 1T
25Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 encryption=off cluster_size=65536 lazy_refcounts=off
26
27qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0
28Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
29
30qemu-img create -f qcow2 TEST_DIR/t.qcow2 1024.0b
31Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
32
33qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5k
34Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
35
36qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5K
37Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
38
39qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5M
40Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 encryption=off cluster_size=65536 lazy_refcounts=off
41
42qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5G
43Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 encryption=off cluster_size=65536 lazy_refcounts=off
44
45qemu-img create -f qcow2 TEST_DIR/t.qcow2 1.5T
46Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 encryption=off cluster_size=65536 lazy_refcounts=off
47
48== 2. Specifying size via -o ==
49
50qemu-img create -f qcow2 -o size=1024 TEST_DIR/t.qcow2
51Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
52
53qemu-img create -f qcow2 -o size=1024b TEST_DIR/t.qcow2
54Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
55
56qemu-img create -f qcow2 -o size=1k TEST_DIR/t.qcow2
57Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
58
59qemu-img create -f qcow2 -o size=1K TEST_DIR/t.qcow2
60Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
61
62qemu-img create -f qcow2 -o size=1M TEST_DIR/t.qcow2
63Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1048576 encryption=off cluster_size=65536 lazy_refcounts=off
64
65qemu-img create -f qcow2 -o size=1G TEST_DIR/t.qcow2
66Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1073741824 encryption=off cluster_size=65536 lazy_refcounts=off
67
68qemu-img create -f qcow2 -o size=1T TEST_DIR/t.qcow2
69Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1099511627776 encryption=off cluster_size=65536 lazy_refcounts=off
70
71qemu-img create -f qcow2 -o size=1024.0 TEST_DIR/t.qcow2
72Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
73
74qemu-img create -f qcow2 -o size=1024.0b TEST_DIR/t.qcow2
75Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
76
77qemu-img create -f qcow2 -o size=1.5k TEST_DIR/t.qcow2
78Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
79
80qemu-img create -f qcow2 -o size=1.5K TEST_DIR/t.qcow2
81Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1536 encryption=off cluster_size=65536 lazy_refcounts=off
82
83qemu-img create -f qcow2 -o size=1.5M TEST_DIR/t.qcow2
84Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1572864 encryption=off cluster_size=65536 lazy_refcounts=off
85
86qemu-img create -f qcow2 -o size=1.5G TEST_DIR/t.qcow2
87Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1610612736 encryption=off cluster_size=65536 lazy_refcounts=off
88
89qemu-img create -f qcow2 -o size=1.5T TEST_DIR/t.qcow2
90Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1649267441664 encryption=off cluster_size=65536 lazy_refcounts=off
91
92== 3. Invalid sizes ==
93
94qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1024
95qemu-img: Image size must be less than 8 EiB!
96
97qemu-img create -f qcow2 -o size=-1024 TEST_DIR/t.qcow2
98qemu-img: qcow2 doesn't support shrinking images yet
99qemu-img: Formatting or formatting option not supported for file format 'qcow2'
100Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=-1024 encryption=off cluster_size=65536 lazy_refcounts=off
101
102qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- -1k
103qemu-img: Image size must be less than 8 EiB!
104
105qemu-img create -f qcow2 -o size=-1k TEST_DIR/t.qcow2
106qemu-img: qcow2 doesn't support shrinking images yet
107qemu-img: Formatting or formatting option not supported for file format 'qcow2'
108Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=-1024 encryption=off cluster_size=65536 lazy_refcounts=off
109
110qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- 1kilobyte
111qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for
112qemu-img: kilobytes, megabytes, gigabytes and terabytes.
113
114qemu-img create -f qcow2 -o size=1kilobyte TEST_DIR/t.qcow2
115Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=1024 encryption=off cluster_size=65536 lazy_refcounts=off
116
117qemu-img create -f qcow2 TEST_DIR/t.qcow2 -- foobar
118qemu-img: Invalid image size specified! You may use k, M, G or T suffixes for
119qemu-img: kilobytes, megabytes, gigabytes and terabytes.
120
121qemu-img create -f qcow2 -o size=foobar TEST_DIR/t.qcow2
122qemu-img: Parameter 'size' expects a size
123qemu-img: Invalid options for file format 'qcow2'.
124
125== Check correct interpretation of suffixes for cluster size ==
126
127qemu-img create -f qcow2 -o cluster_size=1024 TEST_DIR/t.qcow2 64M
128Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
129
130qemu-img create -f qcow2 -o cluster_size=1024b TEST_DIR/t.qcow2 64M
131Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
132
133qemu-img create -f qcow2 -o cluster_size=1k TEST_DIR/t.qcow2 64M
134Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
135
136qemu-img create -f qcow2 -o cluster_size=1K TEST_DIR/t.qcow2 64M
137Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
138
139qemu-img create -f qcow2 -o cluster_size=1M TEST_DIR/t.qcow2 64M
140Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1048576 lazy_refcounts=off
141
142qemu-img create -f qcow2 -o cluster_size=1024.0 TEST_DIR/t.qcow2 64M
143Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
144
145qemu-img create -f qcow2 -o cluster_size=1024.0b TEST_DIR/t.qcow2 64M
146Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=1024 lazy_refcounts=off
147
148qemu-img create -f qcow2 -o cluster_size=0.5k TEST_DIR/t.qcow2 64M
149Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=512 lazy_refcounts=off
150
151qemu-img create -f qcow2 -o cluster_size=0.5K TEST_DIR/t.qcow2 64M
152Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=512 lazy_refcounts=off
153
154qemu-img create -f qcow2 -o cluster_size=0.5M TEST_DIR/t.qcow2 64M
155Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=524288 lazy_refcounts=off
156
157== Check compat level option ==
158
159qemu-img create -f qcow2 -o compat=0.10 TEST_DIR/t.qcow2 64M
160Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=off
161
162qemu-img create -f qcow2 -o compat=1.1 TEST_DIR/t.qcow2 64M
163Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='1.1' encryption=off cluster_size=65536 lazy_refcounts=off
164
165qemu-img create -f qcow2 -o compat=0.42 TEST_DIR/t.qcow2 64M
166Invalid compatibility level: '0.42'
167qemu-img: TEST_DIR/t.qcow2: error while creating qcow2: Invalid argument
168Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.42' encryption=off cluster_size=65536 lazy_refcounts=off
169
170qemu-img create -f qcow2 -o compat=foobar TEST_DIR/t.qcow2 64M
171Invalid compatibility level: 'foobar'
172qemu-img: TEST_DIR/t.qcow2: error while creating qcow2: Invalid argument
173Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='foobar' encryption=off cluster_size=65536 lazy_refcounts=off
174
175== Check preallocation option ==
176
177qemu-img create -f qcow2 -o preallocation=off TEST_DIR/t.qcow2 64M
178Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation='off' lazy_refcounts=off
179
180qemu-img create -f qcow2 -o preallocation=metadata TEST_DIR/t.qcow2 64M
181Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation='metadata' lazy_refcounts=off
182
183qemu-img create -f qcow2 -o preallocation=1234 TEST_DIR/t.qcow2 64M
184Invalid preallocation mode: '1234'
185qemu-img: TEST_DIR/t.qcow2: error while creating qcow2: Invalid argument
186Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 preallocation='1234' lazy_refcounts=off
187
188== Check encryption option ==
189
190qemu-img create -f qcow2 -o encryption=off TEST_DIR/t.qcow2 64M
191Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=off cluster_size=65536 lazy_refcounts=off
192
193qemu-img create -f qcow2 -o encryption=on TEST_DIR/t.qcow2 64M
194Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 encryption=on cluster_size=65536 lazy_refcounts=off
195
196== Check lazy_refcounts option (only with v3) ==
197
198qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=off TEST_DIR/t.qcow2 64M
199Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='1.1' encryption=off cluster_size=65536 lazy_refcounts=off
200
201qemu-img create -f qcow2 -o compat=1.1,lazy_refcounts=on TEST_DIR/t.qcow2 64M
202Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='1.1' encryption=off cluster_size=65536 lazy_refcounts=on
203
204qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=off TEST_DIR/t.qcow2 64M
205Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=off
206
207qemu-img create -f qcow2 -o compat=0.10,lazy_refcounts=on TEST_DIR/t.qcow2 64M
208Lazy refcounts only supported with compatibility level 1.1 and above (use compat=1.1 or greater)
209qemu-img: TEST_DIR/t.qcow2: error while creating qcow2: Invalid argument
210Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=67108864 compat='0.10' encryption=off cluster_size=65536 lazy_refcounts=on
211
212*** done
213