xref: /openbmc/qemu/tests/qemu-iotests/082.out (revision 0b1183e3)
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
252=== convert: Options specified more than once ===
253
254Testing: create -f qcow2 TEST_DIR/t.qcow2 128M
255Formatting 'TEST_DIR/t.qcow2', fmt=qcow2 size=134217728 cluster_size=65536 lazy_refcounts=off refcount_bits=16
256
257Testing: convert -f foo -f qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
258image: TEST_DIR/t.IMGFMT.base
259file format: raw
260virtual size: 128M (134217728 bytes)
261
262Testing: convert -O foo -O qcow2 TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
263image: TEST_DIR/t.IMGFMT.base
264file format: IMGFMT
265virtual size: 128M (134217728 bytes)
266cluster_size: 65536
267
268Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
269image: TEST_DIR/t.IMGFMT.base
270file format: IMGFMT
271virtual size: 128M (134217728 bytes)
272cluster_size: 4096
273Format specific information:
274    compat: 1.1
275    lazy refcounts: true
276    refcount bits: 16
277    corrupt: false
278
279Testing: convert -O qcow2 -o cluster_size=4k -o lazy_refcounts=on -o cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
280image: TEST_DIR/t.IMGFMT.base
281file format: IMGFMT
282virtual size: 128M (134217728 bytes)
283cluster_size: 8192
284Format specific information:
285    compat: 1.1
286    lazy refcounts: true
287    refcount bits: 16
288    corrupt: false
289
290Testing: convert -O qcow2 -o cluster_size=4k,cluster_size=8k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
291image: TEST_DIR/t.IMGFMT.base
292file format: IMGFMT
293virtual size: 128M (134217728 bytes)
294cluster_size: 8192
295
296=== convert: help for -o ===
297
298Testing: convert -O qcow2 -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
299Supported options:
300size             Virtual disk size
301compat           Compatibility level (0.10 or 1.1)
302backing_file     File name of a base image
303backing_fmt      Image format of the base image
304encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
305encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
306encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
307encrypt.cipher-alg Name of encryption cipher algorithm
308encrypt.cipher-mode Name of encryption cipher mode
309encrypt.ivgen-alg Name of IV generator algorithm
310encrypt.ivgen-hash-alg Name of IV generator hash algorithm
311encrypt.hash-alg Name of encryption hash algorithm
312encrypt.iter-time Time to spend in PBKDF in milliseconds
313cluster_size     qcow2 cluster size
314preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
315lazy_refcounts   Postpone refcount updates
316refcount_bits    Width of a reference count entry in bits
317nocow            Turn off copy-on-write (valid only on btrfs)
318
319Testing: convert -O qcow2 -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
320Supported options:
321size             Virtual disk size
322compat           Compatibility level (0.10 or 1.1)
323backing_file     File name of a base image
324backing_fmt      Image format of the base image
325encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
326encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
327encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
328encrypt.cipher-alg Name of encryption cipher algorithm
329encrypt.cipher-mode Name of encryption cipher mode
330encrypt.ivgen-alg Name of IV generator algorithm
331encrypt.ivgen-hash-alg Name of IV generator hash algorithm
332encrypt.hash-alg Name of encryption hash algorithm
333encrypt.iter-time Time to spend in PBKDF in milliseconds
334cluster_size     qcow2 cluster size
335preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
336lazy_refcounts   Postpone refcount updates
337refcount_bits    Width of a reference count entry in bits
338nocow            Turn off copy-on-write (valid only on btrfs)
339
340Testing: convert -O qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
341Supported options:
342size             Virtual disk size
343compat           Compatibility level (0.10 or 1.1)
344backing_file     File name of a base image
345backing_fmt      Image format of the base image
346encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
347encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
348encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
349encrypt.cipher-alg Name of encryption cipher algorithm
350encrypt.cipher-mode Name of encryption cipher mode
351encrypt.ivgen-alg Name of IV generator algorithm
352encrypt.ivgen-hash-alg Name of IV generator hash algorithm
353encrypt.hash-alg Name of encryption hash algorithm
354encrypt.iter-time Time to spend in PBKDF in milliseconds
355cluster_size     qcow2 cluster size
356preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
357lazy_refcounts   Postpone refcount updates
358refcount_bits    Width of a reference count entry in bits
359nocow            Turn off copy-on-write (valid only on btrfs)
360
361Testing: convert -O qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
362Supported options:
363size             Virtual disk size
364compat           Compatibility level (0.10 or 1.1)
365backing_file     File name of a base image
366backing_fmt      Image format of the base image
367encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
368encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
369encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
370encrypt.cipher-alg Name of encryption cipher algorithm
371encrypt.cipher-mode Name of encryption cipher mode
372encrypt.ivgen-alg Name of IV generator algorithm
373encrypt.ivgen-hash-alg Name of IV generator hash algorithm
374encrypt.hash-alg Name of encryption hash algorithm
375encrypt.iter-time Time to spend in PBKDF in milliseconds
376cluster_size     qcow2 cluster size
377preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
378lazy_refcounts   Postpone refcount updates
379refcount_bits    Width of a reference count entry in bits
380nocow            Turn off copy-on-write (valid only on btrfs)
381
382Testing: convert -O qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
383Supported options:
384size             Virtual disk size
385compat           Compatibility level (0.10 or 1.1)
386backing_file     File name of a base image
387backing_fmt      Image format of the base image
388encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
389encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
390encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
391encrypt.cipher-alg Name of encryption cipher algorithm
392encrypt.cipher-mode Name of encryption cipher mode
393encrypt.ivgen-alg Name of IV generator algorithm
394encrypt.ivgen-hash-alg Name of IV generator hash algorithm
395encrypt.hash-alg Name of encryption hash algorithm
396encrypt.iter-time Time to spend in PBKDF in milliseconds
397cluster_size     qcow2 cluster size
398preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
399lazy_refcounts   Postpone refcount updates
400refcount_bits    Width of a reference count entry in bits
401nocow            Turn off copy-on-write (valid only on btrfs)
402
403Testing: convert -O qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
404Supported options:
405size             Virtual disk size
406compat           Compatibility level (0.10 or 1.1)
407backing_file     File name of a base image
408backing_fmt      Image format of the base image
409encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
410encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
411encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
412encrypt.cipher-alg Name of encryption cipher algorithm
413encrypt.cipher-mode Name of encryption cipher mode
414encrypt.ivgen-alg Name of IV generator algorithm
415encrypt.ivgen-hash-alg Name of IV generator hash algorithm
416encrypt.hash-alg Name of encryption hash algorithm
417encrypt.iter-time Time to spend in PBKDF in milliseconds
418cluster_size     qcow2 cluster size
419preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
420lazy_refcounts   Postpone refcount updates
421refcount_bits    Width of a reference count entry in bits
422nocow            Turn off copy-on-write (valid only on btrfs)
423
424Testing: convert -O qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
425Supported options:
426size             Virtual disk size
427compat           Compatibility level (0.10 or 1.1)
428backing_file     File name of a base image
429backing_fmt      Image format of the base image
430encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
431encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
432encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
433encrypt.cipher-alg Name of encryption cipher algorithm
434encrypt.cipher-mode Name of encryption cipher mode
435encrypt.ivgen-alg Name of IV generator algorithm
436encrypt.ivgen-hash-alg Name of IV generator hash algorithm
437encrypt.hash-alg Name of encryption hash algorithm
438encrypt.iter-time Time to spend in PBKDF in milliseconds
439cluster_size     qcow2 cluster size
440preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
441lazy_refcounts   Postpone refcount updates
442refcount_bits    Width of a reference count entry in bits
443nocow            Turn off copy-on-write (valid only on btrfs)
444
445Testing: convert -O qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
446Supported options:
447size             Virtual disk size
448compat           Compatibility level (0.10 or 1.1)
449backing_file     File name of a base image
450backing_fmt      Image format of the base image
451encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
452encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
453encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
454encrypt.cipher-alg Name of encryption cipher algorithm
455encrypt.cipher-mode Name of encryption cipher mode
456encrypt.ivgen-alg Name of IV generator algorithm
457encrypt.ivgen-hash-alg Name of IV generator hash algorithm
458encrypt.hash-alg Name of encryption hash algorithm
459encrypt.iter-time Time to spend in PBKDF in milliseconds
460cluster_size     qcow2 cluster size
461preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
462lazy_refcounts   Postpone refcount updates
463refcount_bits    Width of a reference count entry in bits
464nocow            Turn off copy-on-write (valid only on btrfs)
465
466Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
467qemu-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
468
469Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2,,? 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,?': No such file or directory
471
472Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
473qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
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: ,help
477
478Testing: convert -O qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2 TEST_DIR/t.qcow2.base
479qemu-img: Invalid option list: ,,
480
481Testing: convert -O qcow2 -o help
482Supported options:
483size             Virtual disk size
484compat           Compatibility level (0.10 or 1.1)
485backing_file     File name of a base image
486backing_fmt      Image format of the base image
487encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
488encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
489encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
490encrypt.cipher-alg Name of encryption cipher algorithm
491encrypt.cipher-mode Name of encryption cipher mode
492encrypt.ivgen-alg Name of IV generator algorithm
493encrypt.ivgen-hash-alg Name of IV generator hash algorithm
494encrypt.hash-alg Name of encryption hash algorithm
495encrypt.iter-time Time to spend in PBKDF in milliseconds
496cluster_size     qcow2 cluster size
497preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
498lazy_refcounts   Postpone refcount updates
499refcount_bits    Width of a reference count entry in bits
500
501Testing: convert -o help
502Supported options:
503size             Virtual disk size
504
505=== amend: Options specified more than once ===
506
507Testing: amend -f foo -f qcow2 -o lazy_refcounts=on TEST_DIR/t.qcow2
508image: TEST_DIR/t.IMGFMT
509file format: IMGFMT
510virtual size: 128M (134217728 bytes)
511cluster_size: 65536
512Format specific information:
513    compat: 1.1
514    lazy refcounts: true
515    refcount bits: 16
516    corrupt: false
517
518Testing: amend -f qcow2 -o size=130M -o lazy_refcounts=off TEST_DIR/t.qcow2
519image: TEST_DIR/t.IMGFMT
520file format: IMGFMT
521virtual size: 130M (136314880 bytes)
522cluster_size: 65536
523Format specific information:
524    compat: 1.1
525    lazy refcounts: false
526    refcount bits: 16
527    corrupt: false
528
529Testing: amend -f qcow2 -o size=8M -o lazy_refcounts=on -o size=132M TEST_DIR/t.qcow2
530image: TEST_DIR/t.IMGFMT
531file format: IMGFMT
532virtual size: 132M (138412032 bytes)
533cluster_size: 65536
534Format specific information:
535    compat: 1.1
536    lazy refcounts: true
537    refcount bits: 16
538    corrupt: false
539
540Testing: amend -f qcow2 -o size=4M,size=148M TEST_DIR/t.qcow2
541image: TEST_DIR/t.IMGFMT
542file format: IMGFMT
543virtual size: 148M (155189248 bytes)
544cluster_size: 65536
545
546=== amend: help for -o ===
547
548Testing: amend -f qcow2 -o help TEST_DIR/t.qcow2
549Supported options:
550size             Virtual disk size
551compat           Compatibility level (0.10 or 1.1)
552backing_file     File name of a base image
553backing_fmt      Image format of the base image
554encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
555encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
556encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
557encrypt.cipher-alg Name of encryption cipher algorithm
558encrypt.cipher-mode Name of encryption cipher mode
559encrypt.ivgen-alg Name of IV generator algorithm
560encrypt.ivgen-hash-alg Name of IV generator hash algorithm
561encrypt.hash-alg Name of encryption hash algorithm
562encrypt.iter-time Time to spend in PBKDF in milliseconds
563cluster_size     qcow2 cluster size
564preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
565lazy_refcounts   Postpone refcount updates
566refcount_bits    Width of a reference count entry in bits
567nocow            Turn off copy-on-write (valid only on btrfs)
568
569Testing: amend -f qcow2 -o ? TEST_DIR/t.qcow2
570Supported options:
571size             Virtual disk size
572compat           Compatibility level (0.10 or 1.1)
573backing_file     File name of a base image
574backing_fmt      Image format of the base image
575encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
576encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
577encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
578encrypt.cipher-alg Name of encryption cipher algorithm
579encrypt.cipher-mode Name of encryption cipher mode
580encrypt.ivgen-alg Name of IV generator algorithm
581encrypt.ivgen-hash-alg Name of IV generator hash algorithm
582encrypt.hash-alg Name of encryption hash algorithm
583encrypt.iter-time Time to spend in PBKDF in milliseconds
584cluster_size     qcow2 cluster size
585preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
586lazy_refcounts   Postpone refcount updates
587refcount_bits    Width of a reference count entry in bits
588nocow            Turn off copy-on-write (valid only on btrfs)
589
590Testing: amend -f qcow2 -o cluster_size=4k,help TEST_DIR/t.qcow2
591Supported options:
592size             Virtual disk size
593compat           Compatibility level (0.10 or 1.1)
594backing_file     File name of a base image
595backing_fmt      Image format of the base image
596encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
597encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
598encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
599encrypt.cipher-alg Name of encryption cipher algorithm
600encrypt.cipher-mode Name of encryption cipher mode
601encrypt.ivgen-alg Name of IV generator algorithm
602encrypt.ivgen-hash-alg Name of IV generator hash algorithm
603encrypt.hash-alg Name of encryption hash algorithm
604encrypt.iter-time Time to spend in PBKDF in milliseconds
605cluster_size     qcow2 cluster size
606preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
607lazy_refcounts   Postpone refcount updates
608refcount_bits    Width of a reference count entry in bits
609nocow            Turn off copy-on-write (valid only on btrfs)
610
611Testing: amend -f qcow2 -o cluster_size=4k,? TEST_DIR/t.qcow2
612Supported options:
613size             Virtual disk size
614compat           Compatibility level (0.10 or 1.1)
615backing_file     File name of a base image
616backing_fmt      Image format of the base image
617encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
618encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
619encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
620encrypt.cipher-alg Name of encryption cipher algorithm
621encrypt.cipher-mode Name of encryption cipher mode
622encrypt.ivgen-alg Name of IV generator algorithm
623encrypt.ivgen-hash-alg Name of IV generator hash algorithm
624encrypt.hash-alg Name of encryption hash algorithm
625encrypt.iter-time Time to spend in PBKDF in milliseconds
626cluster_size     qcow2 cluster size
627preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
628lazy_refcounts   Postpone refcount updates
629refcount_bits    Width of a reference count entry in bits
630nocow            Turn off copy-on-write (valid only on btrfs)
631
632Testing: amend -f qcow2 -o help,cluster_size=4k TEST_DIR/t.qcow2
633Supported options:
634size             Virtual disk size
635compat           Compatibility level (0.10 or 1.1)
636backing_file     File name of a base image
637backing_fmt      Image format of the base image
638encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
639encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
640encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
641encrypt.cipher-alg Name of encryption cipher algorithm
642encrypt.cipher-mode Name of encryption cipher mode
643encrypt.ivgen-alg Name of IV generator algorithm
644encrypt.ivgen-hash-alg Name of IV generator hash algorithm
645encrypt.hash-alg Name of encryption hash algorithm
646encrypt.iter-time Time to spend in PBKDF in milliseconds
647cluster_size     qcow2 cluster size
648preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
649lazy_refcounts   Postpone refcount updates
650refcount_bits    Width of a reference count entry in bits
651nocow            Turn off copy-on-write (valid only on btrfs)
652
653Testing: amend -f qcow2 -o ?,cluster_size=4k TEST_DIR/t.qcow2
654Supported options:
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
672nocow            Turn off copy-on-write (valid only on btrfs)
673
674Testing: amend -f qcow2 -o cluster_size=4k -o help TEST_DIR/t.qcow2
675Supported options:
676size             Virtual disk size
677compat           Compatibility level (0.10 or 1.1)
678backing_file     File name of a base image
679backing_fmt      Image format of the base image
680encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
681encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
682encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
683encrypt.cipher-alg Name of encryption cipher algorithm
684encrypt.cipher-mode Name of encryption cipher mode
685encrypt.ivgen-alg Name of IV generator algorithm
686encrypt.ivgen-hash-alg Name of IV generator hash algorithm
687encrypt.hash-alg Name of encryption hash algorithm
688encrypt.iter-time Time to spend in PBKDF in milliseconds
689cluster_size     qcow2 cluster size
690preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
691lazy_refcounts   Postpone refcount updates
692refcount_bits    Width of a reference count entry in bits
693nocow            Turn off copy-on-write (valid only on btrfs)
694
695Testing: amend -f qcow2 -o cluster_size=4k -o ? TEST_DIR/t.qcow2
696Supported options:
697size             Virtual disk size
698compat           Compatibility level (0.10 or 1.1)
699backing_file     File name of a base image
700backing_fmt      Image format of the base image
701encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
702encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
703encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
704encrypt.cipher-alg Name of encryption cipher algorithm
705encrypt.cipher-mode Name of encryption cipher mode
706encrypt.ivgen-alg Name of IV generator algorithm
707encrypt.ivgen-hash-alg Name of IV generator hash algorithm
708encrypt.hash-alg Name of encryption hash algorithm
709encrypt.iter-time Time to spend in PBKDF in milliseconds
710cluster_size     qcow2 cluster size
711preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
712lazy_refcounts   Postpone refcount updates
713refcount_bits    Width of a reference count entry in bits
714nocow            Turn off copy-on-write (valid only on btrfs)
715
716Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,help TEST_DIR/t.qcow2
717
718Testing: rebase -u -b  -f qcow2 TEST_DIR/t.qcow2
719
720Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2,,? TEST_DIR/t.qcow2
721
722Testing: rebase -u -b  -f qcow2 TEST_DIR/t.qcow2
723
724Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2, -o help TEST_DIR/t.qcow2
725qemu-img: Invalid option list: backing_file=TEST_DIR/t.qcow2,
726
727Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,help TEST_DIR/t.qcow2
728qemu-img: Invalid option list: ,help
729
730Testing: amend -f qcow2 -o backing_file=TEST_DIR/t.qcow2 -o ,, -o help TEST_DIR/t.qcow2
731qemu-img: Invalid option list: ,,
732
733Testing: amend -f qcow2 -o help
734Supported options:
735size             Virtual disk size
736compat           Compatibility level (0.10 or 1.1)
737backing_file     File name of a base image
738backing_fmt      Image format of the base image
739encryption       Encrypt the image with format 'aes'. (Deprecated in favor of encrypt.format=aes)
740encrypt.format   Encrypt the image, format choices: 'aes', 'luks'
741encrypt.key-secret ID of secret providing qcow AES key or LUKS passphrase
742encrypt.cipher-alg Name of encryption cipher algorithm
743encrypt.cipher-mode Name of encryption cipher mode
744encrypt.ivgen-alg Name of IV generator algorithm
745encrypt.ivgen-hash-alg Name of IV generator hash algorithm
746encrypt.hash-alg Name of encryption hash algorithm
747encrypt.iter-time Time to spend in PBKDF in milliseconds
748cluster_size     qcow2 cluster size
749preallocation    Preallocation mode (allowed values: off, metadata, falloc, full)
750lazy_refcounts   Postpone refcount updates
751refcount_bits    Width of a reference count entry in bits
752
753Testing: convert -o help
754Supported options:
755size             Virtual disk size
756*** done
757