xref: /qemu/tests/qemu-iotests/082.out (revision e7b3af81)
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=== amend: Options specified more than once ===
512
513Testing: amend -f foo -f qcow2 -o lazy_refcounts=on TEST_DIR/t.qcow2
514image: TEST_DIR/t.IMGFMT
515file format: IMGFMT
516virtual size: 128M (134217728 bytes)
517cluster_size: 65536
518Format specific information:
519    compat: 1.1
520    lazy refcounts: true
521    refcount bits: 16
522    corrupt: false
523
524Testing: amend -f qcow2 -o size=130M -o lazy_refcounts=off TEST_DIR/t.qcow2
525image: TEST_DIR/t.IMGFMT
526file format: IMGFMT
527virtual size: 130M (136314880 bytes)
528cluster_size: 65536
529Format specific information:
530    compat: 1.1
531    lazy refcounts: false
532    refcount bits: 16
533    corrupt: false
534
535Testing: amend -f qcow2 -o size=8M -o lazy_refcounts=on -o size=132M TEST_DIR/t.qcow2
536image: TEST_DIR/t.IMGFMT
537file format: IMGFMT
538virtual size: 132M (138412032 bytes)
539cluster_size: 65536
540Format specific information:
541    compat: 1.1
542    lazy refcounts: true
543    refcount bits: 16
544    corrupt: false
545
546Testing: amend -f qcow2 -o size=4M,size=148M TEST_DIR/t.qcow2
547image: TEST_DIR/t.IMGFMT
548file format: IMGFMT
549virtual size: 148M (155189248 bytes)
550cluster_size: 65536
551
552=== amend: help for -o ===
553
554Testing: amend -f qcow2 -o help TEST_DIR/t.qcow2
555Creation options for 'qcow2':
556size             Virtual disk size
557compat           Compatibility level (0.10 or 1.1)
558backing_file     File name of a base image
559backing_fmt      Image format of the base image
560encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
561encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
562encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
563encrypt.cipher-alg Name of encryption cipher algorithm
564encrypt.cipher-mode Name of encryption cipher mode
565encrypt.ivgen-alg Name of IV generator algorithm
566encrypt.ivgen-hash-alg Name of IV generator hash algorithm
567encrypt.hash-alg Name of encryption hash algorithm
568encrypt.iter-time Time to spend in PBKDF in milliseconds
569cluster_size     qcow2 cluster size
570preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
571lazy_refcounts   Postpone refcount updates
572refcount_bits    Width of a reference count entry in bits
573
574Note that not all of these options may be amendable.
575
576Testing: amend -f qcow2 -o ? TEST_DIR/t.qcow2
577Creation options for 'qcow2':
578size             Virtual disk size
579compat           Compatibility level (0.10 or 1.1)
580backing_file     File name of a base image
581backing_fmt      Image format of the base image
582encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
583encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
584encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
585encrypt.cipher-alg Name of encryption cipher algorithm
586encrypt.cipher-mode Name of encryption cipher mode
587encrypt.ivgen-alg Name of IV generator algorithm
588encrypt.ivgen-hash-alg Name of IV generator hash algorithm
589encrypt.hash-alg Name of encryption hash algorithm
590encrypt.iter-time Time to spend in PBKDF in milliseconds
591cluster_size     qcow2 cluster size
592preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
593lazy_refcounts   Postpone refcount updates
594refcount_bits    Width of a reference count entry in bits
595
596Note that not all of these options may be amendable.
597
598Testing: amend -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2
599Creation options for 'qcow2':
600size             Virtual disk size
601compat           Compatibility level (0.10 or 1.1)
602backing_file     File name of a base image
603backing_fmt      Image format of the base image
604encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
605encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
606encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
607encrypt.cipher-alg Name of encryption cipher algorithm
608encrypt.cipher-mode Name of encryption cipher mode
609encrypt.ivgen-alg Name of IV generator algorithm
610encrypt.ivgen-hash-alg Name of IV generator hash algorithm
611encrypt.hash-alg Name of encryption hash algorithm
612encrypt.iter-time Time to spend in PBKDF in milliseconds
613cluster_size     qcow2 cluster size
614preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
615lazy_refcounts   Postpone refcount updates
616refcount_bits    Width of a reference count entry in bits
617
618Note that not all of these options may be amendable.
619
620Testing: amend -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2
621Creation options for 'qcow2':
622size             Virtual disk size
623compat           Compatibility level (0.10 or 1.1)
624backing_file     File name of a base image
625backing_fmt      Image format of the base image
626encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
627encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
628encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
629encrypt.cipher-alg Name of encryption cipher algorithm
630encrypt.cipher-mode Name of encryption cipher mode
631encrypt.ivgen-alg Name of IV generator algorithm
632encrypt.ivgen-hash-alg Name of IV generator hash algorithm
633encrypt.hash-alg Name of encryption hash algorithm
634encrypt.iter-time Time to spend in PBKDF in milliseconds
635cluster_size     qcow2 cluster size
636preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
637lazy_refcounts   Postpone refcount updates
638refcount_bits    Width of a reference count entry in bits
639
640Note that not all of these options may be amendable.
641
642Testing: amend -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2
643Creation options for 'qcow2':
644size             Virtual disk size
645compat           Compatibility level (0.10 or 1.1)
646backing_file     File name of a base image
647backing_fmt      Image format of the base image
648encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
649encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
650encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
651encrypt.cipher-alg Name of encryption cipher algorithm
652encrypt.cipher-mode Name of encryption cipher mode
653encrypt.ivgen-alg Name of IV generator algorithm
654encrypt.ivgen-hash-alg Name of IV generator hash algorithm
655encrypt.hash-alg Name of encryption hash algorithm
656encrypt.iter-time Time to spend in PBKDF in milliseconds
657cluster_size     qcow2 cluster size
658preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
659lazy_refcounts   Postpone refcount updates
660refcount_bits    Width of a reference count entry in bits
661
662Note that not all of these options may be amendable.
663
664Testing: amend -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2
665Creation options for 'qcow2':
666size             Virtual disk size
667compat           Compatibility level (0.10 or 1.1)
668backing_file     File name of a base image
669backing_fmt      Image format of the base image
670encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
671encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
672encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
673encrypt.cipher-alg Name of encryption cipher algorithm
674encrypt.cipher-mode Name of encryption cipher mode
675encrypt.ivgen-alg Name of IV generator algorithm
676encrypt.ivgen-hash-alg Name of IV generator hash algorithm
677encrypt.hash-alg Name of encryption hash algorithm
678encrypt.iter-time Time to spend in PBKDF in milliseconds
679cluster_size     qcow2 cluster size
680preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
681lazy_refcounts   Postpone refcount updates
682refcount_bits    Width of a reference count entry in bits
683
684Note that not all of these options may be amendable.
685
686Testing: amend -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2
687Creation options for 'qcow2':
688size             Virtual disk size
689compat           Compatibility level (0.10 or 1.1)
690backing_file     File name of a base image
691backing_fmt      Image format of the base image
692encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
693encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
694encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
695encrypt.cipher-alg Name of encryption cipher algorithm
696encrypt.cipher-mode Name of encryption cipher mode
697encrypt.ivgen-alg Name of IV generator algorithm
698encrypt.ivgen-hash-alg Name of IV generator hash algorithm
699encrypt.hash-alg Name of encryption hash algorithm
700encrypt.iter-time Time to spend in PBKDF in milliseconds
701cluster_size     qcow2 cluster size
702preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
703lazy_refcounts   Postpone refcount updates
704refcount_bits    Width of a reference count entry in bits
705
706Note that not all of these options may be amendable.
707
708Testing: amend -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2
709Creation options for 'qcow2':
710size             Virtual disk size
711compat           Compatibility level (0.10 or 1.1)
712backing_file     File name of a base image
713backing_fmt      Image format of the base image
714encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
715encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
716encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
717encrypt.cipher-alg Name of encryption cipher algorithm
718encrypt.cipher-mode Name of encryption cipher mode
719encrypt.ivgen-alg Name of IV generator algorithm
720encrypt.ivgen-hash-alg Name of IV generator hash algorithm
721encrypt.hash-alg Name of encryption hash algorithm
722encrypt.iter-time Time to spend in PBKDF in milliseconds
723cluster_size     qcow2 cluster size
724preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
725lazy_refcounts   Postpone refcount updates
726refcount_bits    Width of a reference count entry in bits
727
728Note that not all of these options may be amendable.
729
730Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2
731
732Testing: rebase -u -b  -f qcow2 TEST_DIR/t.qcow2
733
734Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2
735
736Testing: rebase -u -b  -f qcow2 TEST_DIR/t.qcow2
737
738Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2
739qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
740
741Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2
742qemu-img: Invalid option list: ,help
743
744Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2
745qemu-img: Invalid option list: ,,
746
747Testing: amend -f qcow2 -o help
748Creation options for 'qcow2':
749size             Virtual disk size
750compat           Compatibility level (0.10 or 1.1)
751backing_file     File name of a base image
752backing_fmt      Image format of the base image
753encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
754encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
755encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
756encrypt.cipher-alg Name of encryption cipher algorithm
757encrypt.cipher-mode Name of encryption cipher mode
758encrypt.ivgen-alg Name of IV generator algorithm
759encrypt.ivgen-hash-alg Name of IV generator hash algorithm
760encrypt.hash-alg Name of encryption hash algorithm
761encrypt.iter-time Time to spend in PBKDF in milliseconds
762cluster_size     qcow2 cluster size
763preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
764lazy_refcounts   Postpone refcount updates
765refcount_bits    Width of a reference count entry in bits
766
767Note that not all of these options may be amendable.
768
769Testing: convert -o help
770Supported options:
771size             Virtual disk size
772
773Testing: amend -f bochs -o help
774qemu-img: Format driver 'bochs' does not support option amendment
775*** done
776