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