1 QA output created by 082
3 === create: Options specified more than once ===
5 Testing: create -f foo -f qcow2 TEST_DIR/t.qcow2 128M
6 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=65536 lazy_refcounts=off refcount_bits=16
7 image: TEST_DIR/t.IMGFMT
9 virtual size: 128M (134217728 bytes)
12 Testing: create -f qcow2 -o cluster_size=4k -o lazy_refcounts=on TEST_DIR/t.qcow2 128M
13 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=4096 lazy_refcounts=on refcount_bits=16
14 image: TEST_DIR/t.IMGFMT
16 virtual size: 128M (134217728 bytes)
18 Format specific information:
24 Testing: create -f qcow2 -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k TEST_DIR/t.qcow2 128M
25 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=8192 lazy_refcounts=on refcount_bits=16
26 image: TEST_DIR/t.IMGFMT
28 virtual size: 128M (134217728 bytes)
30 Format specific information:
36 Testing: create -f qcow2 -o cluster_size=4k,cluster_size=8k TEST_DIR/t.qcow2 128M
37 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=8192 lazy_refcounts=off refcount_bits=16
38 image: TEST_DIR/t.IMGFMT
40 virtual size: 128M (134217728 bytes)
43 === create: help for -o ===
45 Testing: create -f qcow2 -o help TEST_DIR/t.qcow2 128M
47 backing_file=<str> - File name of a base image
48 backing_fmt=<str> - Image format of the base image
49 cluster_size=<size> - qcow2 cluster size
50 compat=<str> - Compatibility level (0.10 or 1.1)
51 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
52 encrypt.cipher-mode=<str> - Name of encryption cipher mode
53 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
54 encrypt.hash-alg=<str> - Name of encryption hash algorithm
55 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
56 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
57 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
58 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
59 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
60 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
61 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
62 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
63 refcount_bits=<num> - Width of a reference count entry in bits
64 size=<size> - Virtual disk size
66 Testing: create -f qcow2 -o ? TEST_DIR/t.qcow2 128M
68 backing_file=<str> - File name of a base image
69 backing_fmt=<str> - Image format of the base image
70 cluster_size=<size> - qcow2 cluster size
71 compat=<str> - Compatibility level (0.10 or 1.1)
72 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
73 encrypt.cipher-mode=<str> - Name of encryption cipher mode
74 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
75 encrypt.hash-alg=<str> - Name of encryption hash algorithm
76 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
77 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
78 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
79 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
80 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
81 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
82 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
83 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
84 refcount_bits=<num> - Width of a reference count entry in bits
85 size=<size> - Virtual disk size
87 Testing: create -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 128M
89 backing_file=<str> - File name of a base image
90 backing_fmt=<str> - Image format of the base image
91 cluster_size=<size> - qcow2 cluster size
92 compat=<str> - Compatibility level (0.10 or 1.1)
93 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
94 encrypt.cipher-mode=<str> - Name of encryption cipher mode
95 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
96 encrypt.hash-alg=<str> - Name of encryption hash algorithm
97 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
98 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
99 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
100 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
101 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
102 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
103 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
104 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
105 refcount_bits=<num> - Width of a reference count entry in bits
106 size=<size> - Virtual disk size
108 Testing: create -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 128M
110 backing_file=<str> - File name of a base image
111 backing_fmt=<str> - Image format of the base image
112 cluster_size=<size> - qcow2 cluster size
113 compat=<str> - Compatibility level (0.10 or 1.1)
114 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
115 encrypt.cipher-mode=<str> - Name of encryption cipher mode
116 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
117 encrypt.hash-alg=<str> - Name of encryption hash algorithm
118 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
119 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
120 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
121 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
122 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
123 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
124 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
125 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
126 refcount_bits=<num> - Width of a reference count entry in bits
127 size=<size> - Virtual disk size
129 Testing: create -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 128M
131 backing_file=<str> - File name of a base image
132 backing_fmt=<str> - Image format of the base image
133 cluster_size=<size> - qcow2 cluster size
134 compat=<str> - Compatibility level (0.10 or 1.1)
135 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
136 encrypt.cipher-mode=<str> - Name of encryption cipher mode
137 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
138 encrypt.hash-alg=<str> - Name of encryption hash algorithm
139 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
140 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
141 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
142 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
143 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
144 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
145 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
146 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
147 refcount_bits=<num> - Width of a reference count entry in bits
148 size=<size> - Virtual disk size
150 Testing: create -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 128M
152 backing_file=<str> - File name of a base image
153 backing_fmt=<str> - Image format of the base image
154 cluster_size=<size> - qcow2 cluster size
155 compat=<str> - Compatibility level (0.10 or 1.1)
156 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
157 encrypt.cipher-mode=<str> - Name of encryption cipher mode
158 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
159 encrypt.hash-alg=<str> - Name of encryption hash algorithm
160 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
161 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
162 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
163 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
164 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
165 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
166 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
167 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
168 refcount_bits=<num> - Width of a reference count entry in bits
169 size=<size> - Virtual disk size
171 Testing: create -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 128M
173 backing_file=<str> - File name of a base image
174 backing_fmt=<str> - Image format of the base image
175 cluster_size=<size> - qcow2 cluster size
176 compat=<str> - Compatibility level (0.10 or 1.1)
177 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
178 encrypt.cipher-mode=<str> - Name of encryption cipher mode
179 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
180 encrypt.hash-alg=<str> - Name of encryption hash algorithm
181 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
182 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
183 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
184 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
185 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
186 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
187 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
188 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
189 refcount_bits=<num> - Width of a reference count entry in bits
190 size=<size> - Virtual disk size
192 Testing: create -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 128M
194 backing_file=<str> - File name of a base image
195 backing_fmt=<str> - Image format of the base image
196 cluster_size=<size> - qcow2 cluster size
197 compat=<str> - Compatibility level (0.10 or 1.1)
198 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
199 encrypt.cipher-mode=<str> - Name of encryption cipher mode
200 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
201 encrypt.hash-alg=<str> - Name of encryption hash algorithm
202 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
203 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
204 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
205 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
206 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
207 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
208 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
209 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
210 refcount_bits=<num> - Width of a reference count entry in bits
211 size=<size> - Virtual disk size
213 Testing: create -f qcow2 -u -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 128M
214 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 backing_file=TEST_DIR/t.qcow2,,help cluster_size=65536 lazy_refcounts=off refcount_bits=16
216 Testing: create -f qcow2 -u -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2 128M
217 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 backing_file=TEST_DIR/t.qcow2,,? cluster_size=65536 lazy_refcounts=off refcount_bits=16
219 Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 128M
220 qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
222 Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2 128M
223 qemu-img: Invalid option list: ,help
225 Testing: create -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 128M
226 qemu-img: Invalid option list: ,,
228 Testing: create -f qcow2 -o help
230 backing_file=<str> - File name of a base image
231 backing_fmt=<str> - Image format of the base image
232 cluster_size=<size> - qcow2 cluster size
233 compat=<str> - Compatibility level (0.10 or 1.1)
234 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
235 encrypt.cipher-mode=<str> - Name of encryption cipher mode
236 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
237 encrypt.hash-alg=<str> - Name of encryption hash algorithm
238 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
239 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
240 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
241 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
242 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
243 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
244 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
245 refcount_bits=<num> - Width of a reference count entry in bits
246 size=<size> - Virtual disk size
248 Testing: create -o help
250 size=<size> - Virtual disk size
252 Testing: create -f bochs -o help
253 qemu-img: Format driver 'bochs' does not support image creation
255 === convert: Options specified more than once ===
257 Testing: create -f qcow2 TEST_DIR/t.qcow2 128M
258 Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=65536 lazy_refcounts=off refcount_bits=16
260 Testing: convert -f foo -f qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
261 image: TEST_DIR/t.IMGFMT.base
263 virtual size: 128M (134217728 bytes)
265 Testing: convert -O foo -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
266 image: TEST_DIR/t.IMGFMT.base
268 virtual size: 128M (134217728 bytes)
271 Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
272 image: TEST_DIR/t.IMGFMT.base
274 virtual size: 128M (134217728 bytes)
276 Format specific information:
282 Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
283 image: TEST_DIR/t.IMGFMT.base
285 virtual size: 128M (134217728 bytes)
287 Format specific information:
293 Testing: convert -O qcow2 -o cluster_size=4k,cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
294 image: TEST_DIR/t.IMGFMT.base
296 virtual size: 128M (134217728 bytes)
299 === convert: help for -o ===
301 Testing: convert -O qcow2 -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
303 backing_file=<str> - File name of a base image
304 backing_fmt=<str> - Image format of the base image
305 cluster_size=<size> - qcow2 cluster size
306 compat=<str> - Compatibility level (0.10 or 1.1)
307 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
308 encrypt.cipher-mode=<str> - Name of encryption cipher mode
309 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
310 encrypt.hash-alg=<str> - Name of encryption hash algorithm
311 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
312 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
313 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
314 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
315 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
316 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
317 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
318 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
319 refcount_bits=<num> - Width of a reference count entry in bits
320 size=<size> - Virtual disk size
322 Testing: convert -O qcow2 -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
324 backing_file=<str> - File name of a base image
325 backing_fmt=<str> - Image format of the base image
326 cluster_size=<size> - qcow2 cluster size
327 compat=<str> - Compatibility level (0.10 or 1.1)
328 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
329 encrypt.cipher-mode=<str> - Name of encryption cipher mode
330 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
331 encrypt.hash-alg=<str> - Name of encryption hash algorithm
332 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
333 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
334 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
335 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
336 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
337 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
338 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
339 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
340 refcount_bits=<num> - Width of a reference count entry in bits
341 size=<size> - Virtual disk size
343 Testing: convert -O qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
345 backing_file=<str> - File name of a base image
346 backing_fmt=<str> - Image format of the base image
347 cluster_size=<size> - qcow2 cluster size
348 compat=<str> - Compatibility level (0.10 or 1.1)
349 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
350 encrypt.cipher-mode=<str> - Name of encryption cipher mode
351 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
352 encrypt.hash-alg=<str> - Name of encryption hash algorithm
353 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
354 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
355 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
356 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
357 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
358 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
359 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
360 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
361 refcount_bits=<num> - Width of a reference count entry in bits
362 size=<size> - Virtual disk size
364 Testing: convert -O qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
366 backing_file=<str> - File name of a base image
367 backing_fmt=<str> - Image format of the base image
368 cluster_size=<size> - qcow2 cluster size
369 compat=<str> - Compatibility level (0.10 or 1.1)
370 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
371 encrypt.cipher-mode=<str> - Name of encryption cipher mode
372 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
373 encrypt.hash-alg=<str> - Name of encryption hash algorithm
374 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
375 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
376 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
377 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
378 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
379 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
380 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
381 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
382 refcount_bits=<num> - Width of a reference count entry in bits
383 size=<size> - Virtual disk size
385 Testing: convert -O qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
387 backing_file=<str> - File name of a base image
388 backing_fmt=<str> - Image format of the base image
389 cluster_size=<size> - qcow2 cluster size
390 compat=<str> - Compatibility level (0.10 or 1.1)
391 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
392 encrypt.cipher-mode=<str> - Name of encryption cipher mode
393 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
394 encrypt.hash-alg=<str> - Name of encryption hash algorithm
395 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
396 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
397 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
398 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
399 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
400 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
401 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
402 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
403 refcount_bits=<num> - Width of a reference count entry in bits
404 size=<size> - Virtual disk size
406 Testing: convert -O qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
408 backing_file=<str> - File name of a base image
409 backing_fmt=<str> - Image format of the base image
410 cluster_size=<size> - qcow2 cluster size
411 compat=<str> - Compatibility level (0.10 or 1.1)
412 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
413 encrypt.cipher-mode=<str> - Name of encryption cipher mode
414 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
415 encrypt.hash-alg=<str> - Name of encryption hash algorithm
416 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
417 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
418 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
419 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
420 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
421 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
422 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
423 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
424 refcount_bits=<num> - Width of a reference count entry in bits
425 size=<size> - Virtual disk size
427 Testing: convert -O qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
429 backing_file=<str> - File name of a base image
430 backing_fmt=<str> - Image format of the base image
431 cluster_size=<size> - qcow2 cluster size
432 compat=<str> - Compatibility level (0.10 or 1.1)
433 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
434 encrypt.cipher-mode=<str> - Name of encryption cipher mode
435 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
436 encrypt.hash-alg=<str> - Name of encryption hash algorithm
437 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
438 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
439 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
440 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
441 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
442 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
443 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
444 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
445 refcount_bits=<num> - Width of a reference count entry in bits
446 size=<size> - Virtual disk size
448 Testing: convert -O qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
450 backing_file=<str> - File name of a base image
451 backing_fmt=<str> - Image format of the base image
452 cluster_size=<size> - qcow2 cluster size
453 compat=<str> - Compatibility level (0.10 or 1.1)
454 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
455 encrypt.cipher-mode=<str> - Name of encryption cipher mode
456 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
457 encrypt.hash-alg=<str> - Name of encryption hash algorithm
458 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
459 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
460 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
461 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
462 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
463 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
464 nocow=<bool (on/off)> - Turn off copy-on-write (valid only on btrfs)
465 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
466 refcount_bits=<num> - Width of a reference count entry in bits
467 size=<size> - Virtual disk size
469 Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
470 qemu-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
472 Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
473 qemu-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
475 Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
476 qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
478 Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
479 qemu-img: Invalid option list: ,help
481 Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
482 qemu-img: Invalid option list: ,,
484 Testing: convert -O qcow2 -o help
486 backing_file=<str> - File name of a base image
487 backing_fmt=<str> - Image format of the base image
488 cluster_size=<size> - qcow2 cluster size
489 compat=<str> - Compatibility level (0.10 or 1.1)
490 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
491 encrypt.cipher-mode=<str> - Name of encryption cipher mode
492 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
493 encrypt.hash-alg=<str> - Name of encryption hash algorithm
494 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
495 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
496 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
497 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
498 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
499 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
500 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
501 refcount_bits=<num> - Width of a reference count entry in bits
502 size=<size> - Virtual disk size
504 Testing: convert -o help
506 size=<size> - Virtual disk size
508 Testing: convert -O bochs -o help
509 qemu-img: Format driver 'bochs' does not support image creation
511 === convert: -C and other options ===
513 Testing: convert -C -S 4k -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target
514 qemu-img: Cannot enable copy offloading when -S is used
516 Testing: convert -C -S 8k -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target
517 qemu-img: Cannot enable copy offloading when -S is used
519 Testing: convert -C -c -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.target
520 qemu-img: Cannot enable copy offloading when -c is used
522 === amend: Options specified more than once ===
524 Testing: amend -f foo -f qcow2 -o lazy_refcounts=on TEST_DIR/t.qcow2
525 image: TEST_DIR/t.IMGFMT
527 virtual size: 128M (134217728 bytes)
529 Format specific information:
535 Testing: amend -f qcow2 -o size=130M -o lazy_refcounts=off TEST_DIR/t.qcow2
536 image: TEST_DIR/t.IMGFMT
538 virtual size: 130M (136314880 bytes)
540 Format specific information:
542 lazy refcounts: false
546 Testing: amend -f qcow2 -o size=8M -o lazy_refcounts=on -o size=132M TEST_DIR/t.qcow2
547 image: TEST_DIR/t.IMGFMT
549 virtual size: 132M (138412032 bytes)
551 Format specific information:
557 Testing: amend -f qcow2 -o size=4M,size=148M TEST_DIR/t.qcow2
558 image: TEST_DIR/t.IMGFMT
560 virtual size: 148M (155189248 bytes)
563 === amend: help for -o ===
565 Testing: amend -f qcow2 -o help TEST_DIR/t.qcow2
566 Creation options for 'qcow2':
567 backing_file=<str> - File name of a base image
568 backing_fmt=<str> - Image format of the base image
569 cluster_size=<size> - qcow2 cluster size
570 compat=<str> - Compatibility level (0.10 or 1.1)
571 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
572 encrypt.cipher-mode=<str> - Name of encryption cipher mode
573 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
574 encrypt.hash-alg=<str> - Name of encryption hash algorithm
575 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
576 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
577 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
578 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
579 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
580 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
581 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
582 refcount_bits=<num> - Width of a reference count entry in bits
583 size=<size> - Virtual disk size
585 Note that not all of these options may be amendable.
587 Testing: amend -f qcow2 -o ? TEST_DIR/t.qcow2
588 Creation options for 'qcow2':
589 backing_file=<str> - File name of a base image
590 backing_fmt=<str> - Image format of the base image
591 cluster_size=<size> - qcow2 cluster size
592 compat=<str> - Compatibility level (0.10 or 1.1)
593 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
594 encrypt.cipher-mode=<str> - Name of encryption cipher mode
595 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
596 encrypt.hash-alg=<str> - Name of encryption hash algorithm
597 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
598 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
599 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
600 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
601 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
602 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
603 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
604 refcount_bits=<num> - Width of a reference count entry in bits
605 size=<size> - Virtual disk size
607 Note that not all of these options may be amendable.
609 Testing: amend -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2
610 Creation options for 'qcow2':
611 backing_file=<str> - File name of a base image
612 backing_fmt=<str> - Image format of the base image
613 cluster_size=<size> - qcow2 cluster size
614 compat=<str> - Compatibility level (0.10 or 1.1)
615 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
616 encrypt.cipher-mode=<str> - Name of encryption cipher mode
617 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
618 encrypt.hash-alg=<str> - Name of encryption hash algorithm
619 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
620 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
621 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
622 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
623 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
624 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
625 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
626 refcount_bits=<num> - Width of a reference count entry in bits
627 size=<size> - Virtual disk size
629 Note that not all of these options may be amendable.
631 Testing: amend -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2
632 Creation options for 'qcow2':
633 backing_file=<str> - File name of a base image
634 backing_fmt=<str> - Image format of the base image
635 cluster_size=<size> - qcow2 cluster size
636 compat=<str> - Compatibility level (0.10 or 1.1)
637 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
638 encrypt.cipher-mode=<str> - Name of encryption cipher mode
639 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
640 encrypt.hash-alg=<str> - Name of encryption hash algorithm
641 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
642 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
643 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
644 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
645 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
646 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
647 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
648 refcount_bits=<num> - Width of a reference count entry in bits
649 size=<size> - Virtual disk size
651 Note that not all of these options may be amendable.
653 Testing: amend -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2
654 Creation options for 'qcow2':
655 backing_file=<str> - File name of a base image
656 backing_fmt=<str> - Image format of the base image
657 cluster_size=<size> - qcow2 cluster size
658 compat=<str> - Compatibility level (0.10 or 1.1)
659 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
660 encrypt.cipher-mode=<str> - Name of encryption cipher mode
661 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
662 encrypt.hash-alg=<str> - Name of encryption hash algorithm
663 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
664 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
665 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
666 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
667 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
668 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
669 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
670 refcount_bits=<num> - Width of a reference count entry in bits
671 size=<size> - Virtual disk size
673 Note that not all of these options may be amendable.
675 Testing: amend -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2
676 Creation options for 'qcow2':
677 backing_file=<str> - File name of a base image
678 backing_fmt=<str> - Image format of the base image
679 cluster_size=<size> - qcow2 cluster size
680 compat=<str> - Compatibility level (0.10 or 1.1)
681 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
682 encrypt.cipher-mode=<str> - Name of encryption cipher mode
683 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
684 encrypt.hash-alg=<str> - Name of encryption hash algorithm
685 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
686 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
687 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
688 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
689 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
690 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
691 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
692 refcount_bits=<num> - Width of a reference count entry in bits
693 size=<size> - Virtual disk size
695 Note that not all of these options may be amendable.
697 Testing: amend -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2
698 Creation options for 'qcow2':
699 backing_file=<str> - File name of a base image
700 backing_fmt=<str> - Image format of the base image
701 cluster_size=<size> - qcow2 cluster size
702 compat=<str> - Compatibility level (0.10 or 1.1)
703 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
704 encrypt.cipher-mode=<str> - Name of encryption cipher mode
705 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
706 encrypt.hash-alg=<str> - Name of encryption hash algorithm
707 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
708 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
709 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
710 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
711 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
712 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
713 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
714 refcount_bits=<num> - Width of a reference count entry in bits
715 size=<size> - Virtual disk size
717 Note that not all of these options may be amendable.
719 Testing: amend -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2
720 Creation options for 'qcow2':
721 backing_file=<str> - File name of a base image
722 backing_fmt=<str> - Image format of the base image
723 cluster_size=<size> - qcow2 cluster size
724 compat=<str> - Compatibility level (0.10 or 1.1)
725 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
726 encrypt.cipher-mode=<str> - Name of encryption cipher mode
727 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
728 encrypt.hash-alg=<str> - Name of encryption hash algorithm
729 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
730 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
731 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
732 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
733 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
734 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
735 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
736 refcount_bits=<num> - Width of a reference count entry in bits
737 size=<size> - Virtual disk size
739 Note that not all of these options may be amendable.
741 Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2
743 Testing: rebase -u -b -f qcow2 TEST_DIR/t.qcow2
745 Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2
747 Testing: rebase -u -b -f qcow2 TEST_DIR/t.qcow2
749 Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2
750 qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
752 Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2
753 qemu-img: Invalid option list: ,help
755 Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2
756 qemu-img: Invalid option list: ,,
758 Testing: amend -f qcow2 -o help
759 Creation options for 'qcow2':
760 backing_file=<str> - File name of a base image
761 backing_fmt=<str> - Image format of the base image
762 cluster_size=<size> - qcow2 cluster size
763 compat=<str> - Compatibility level (0.10 or 1.1)
764 encrypt.cipher-alg=<str> - Name of encryption cipher algorithm
765 encrypt.cipher-mode=<str> - Name of encryption cipher mode
766 encrypt.format=<str> - Encrypt the image, format choices: 'aes', 'luks'
767 encrypt.hash-alg=<str> - Name of encryption hash algorithm
768 encrypt.iter-time=<num> - Time to spend in PBKDF in milliseconds
769 encrypt.ivgen-alg=<str> - Name of IV generator algorithm
770 encrypt.ivgen-hash-alg=<str> - Name of IV generator hash algorithm
771 encrypt.key-secret=<str> - ID of secret providing qcow AES key or LUKS passphrase
772 encryption=<bool (on/off)> - Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
773 lazy_refcounts=<bool (on/off)> - Postpone refcount updates
774 preallocation=<str> - Preallocation mode (allowed values: off, metadata, falloc, full)
775 refcount_bits=<num> - Width of a reference count entry in bits
776 size=<size> - Virtual disk size
778 Note that not all of these options may be amendable.
780 Testing: convert -o help
782 size=<size> - Virtual disk size
784 Testing: amend -f bochs -o help
785 qemu-img: Format driver 'bochs' does not support option amendment