1QA output created by 178
2== Input validation ==
3
4Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
5qemu-img: Either --size N or one filename must be specified.
6qemu-img: --size N cannot be used together with a filename.
7qemu-img: At most one filename argument is allowed.
8qemu-img: --object, --image-opts, -f, and -l require a filename argument.
9qemu-img: --object, --image-opts, -f, and -l require a filename argument.
10qemu-img: --object, --image-opts, -f, and -l require a filename argument.
11qemu-img: --object, --image-opts, -f, and -l require a filename argument.
12qemu-img: Invalid option list: ,
13qemu-img: Invalid parameter 'snapshot.foo'
14qemu-img: Failed in parsing snapshot param 'snapshot.foo'
15qemu-img: --output must be used with human or json as argument.
16qemu-img: Image size must be less than 8 EiB!
17qemu-img: Unknown file format 'foo'
18
19== Size calculation for a new file (human) ==
20
21required size: 196608
22fully allocated size: 196608
23required size: 589824
24fully allocated size: 2148073472
25required size: 10747904
26fully allocated size: 68730224640
27required size: 42205184
28fully allocated size: 274920112128
29required size: 168034304
30fully allocated size: 1099679662080
31required size: 343650009088
32fully allocated size: 2252143463694336
33qemu-img: The image size is too large (try using a larger cluster size)
34
35== Empty qcow2 input image (human) ==
36
37Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=0
38required size: 196608
39fully allocated size: 196608
40
41converted image file size in bytes: 196608
42
43== qcow2 input image with data (human) ==
44
45Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
46required size: 393216
47fully allocated size: 1074135040
48wrote 512/512 bytes at offset 512
49512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
50wrote 65536/65536 bytes at offset 65536
5164 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
52wrote 64512/64512 bytes at offset 134217728
5363 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
54required size: 589824
55fully allocated size: 1074135040
56
57converted image file size in bytes: 524288
58
59== qcow2 input image with internal snapshot (human) ==
60
61required size: 524288
62fully allocated size: 1074135040
63
64converted image file size in bytes: 458752
65
66== qcow2 input image and a backing file (human) ==
67
68required size: 1074135040
69fully allocated size: 1074135040
70
71== qcow2 input image and LUKS encryption ==
72
73required size: 2686976
74fully allocated size: 1076232192
75
76== qcow2 input image and preallocation (human) ==
77
78required size: 1074135040
79fully allocated size: 1074135040
80
81converted image file size in bytes: 1074135040
82
83== Fully-allocated qcow2 input image (human) ==
84
85Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=8388608
86wrote 8388608/8388608 bytes at offset 0
878 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
88required size: 8716288
89fully allocated size: 8716288
90
91converted image file size in bytes: 8716288
92
93== Empty raw input image (human) ==
94
95Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=0
96required size: 196608
97fully allocated size: 196608
98
99converted image file size in bytes: 196608
100
101== raw input image with data (human) ==
102
103Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=1073741824
104required size: 458752
105fully allocated size: 1074135040
106wrote 512/512 bytes at offset 512
107512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
108wrote 65536/65536 bytes at offset 65536
10964 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
110wrote 64512/64512 bytes at offset 134217728
11163 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
112required size: 589824
113fully allocated size: 1074135040
114
115converted image file size in bytes: 524288
116
117== raw input image and a backing file (human) ==
118
119required size: 1074135040
120fully allocated size: 1074135040
121
122== raw input image and LUKS encryption ==
123
124required size: 2686976
125fully allocated size: 1076232192
126
127== raw input image and preallocation (human) ==
128
129required size: 1074135040
130fully allocated size: 1074135040
131
132converted image file size in bytes: 1074135040
133
134== Fully-allocated raw input image (human) ==
135
136Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=8388608
137wrote 8388608/8388608 bytes at offset 0
1388 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
139required size: 8716288
140fully allocated size: 8716288
141
142converted image file size in bytes: 8716288
143
144== Size calculation for a new file (json) ==
145
146{
147    "required": 196608,
148    "fully-allocated": 196608
149}
150{
151    "required": 589824,
152    "fully-allocated": 2148073472
153}
154{
155    "required": 10747904,
156    "fully-allocated": 68730224640
157}
158{
159    "required": 42205184,
160    "fully-allocated": 274920112128
161}
162{
163    "required": 168034304,
164    "fully-allocated": 1099679662080
165}
166{
167    "required": 343650009088,
168    "fully-allocated": 2252143463694336
169}
170qemu-img: The image size is too large (try using a larger cluster size)
171
172== Empty qcow2 input image (json) ==
173
174Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=0
175{
176    "required": 196608,
177    "fully-allocated": 196608
178}
179
180converted image file size in bytes: 196608
181
182== qcow2 input image with data (json) ==
183
184Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824
185{
186    "required": 393216,
187    "fully-allocated": 1074135040
188}
189wrote 512/512 bytes at offset 512
190512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
191wrote 65536/65536 bytes at offset 65536
19264 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
193wrote 64512/64512 bytes at offset 134217728
19463 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
195{
196    "required": 589824,
197    "fully-allocated": 1074135040
198}
199
200converted image file size in bytes: 524288
201
202== qcow2 input image with internal snapshot (json) ==
203
204{
205    "required": 524288,
206    "fully-allocated": 1074135040
207}
208
209converted image file size in bytes: 458752
210
211== qcow2 input image and a backing file (json) ==
212
213{
214    "required": 1074135040,
215    "fully-allocated": 1074135040
216}
217
218== qcow2 input image and LUKS encryption ==
219
220{
221    "required": 2686976,
222    "fully-allocated": 1076232192
223}
224
225== qcow2 input image and preallocation (json) ==
226
227{
228    "required": 1074135040,
229    "fully-allocated": 1074135040
230}
231
232converted image file size in bytes: 1074135040
233
234== Fully-allocated qcow2 input image (json) ==
235
236Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=8388608
237wrote 8388608/8388608 bytes at offset 0
2388 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
239{
240    "required": 8716288,
241    "fully-allocated": 8716288
242}
243
244converted image file size in bytes: 8716288
245
246== Empty raw input image (json) ==
247
248Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=0
249{
250    "required": 196608,
251    "fully-allocated": 196608
252}
253
254converted image file size in bytes: 196608
255
256== raw input image with data (json) ==
257
258Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=1073741824
259{
260    "required": 458752,
261    "fully-allocated": 1074135040
262}
263wrote 512/512 bytes at offset 512
264512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
265wrote 65536/65536 bytes at offset 65536
26664 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
267wrote 64512/64512 bytes at offset 134217728
26863 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
269{
270    "required": 589824,
271    "fully-allocated": 1074135040
272}
273
274converted image file size in bytes: 524288
275
276== raw input image and a backing file (json) ==
277
278{
279    "required": 1074135040,
280    "fully-allocated": 1074135040
281}
282
283== raw input image and LUKS encryption ==
284
285{
286    "required": 2686976,
287    "fully-allocated": 1076232192
288}
289
290== raw input image and preallocation (json) ==
291
292{
293    "required": 1074135040,
294    "fully-allocated": 1074135040
295}
296
297converted image file size in bytes: 1074135040
298
299== Fully-allocated raw input image (json) ==
300
301Formatting 'TEST_DIR/t.qcow2', fmt=IMGFMT size=8388608
302wrote 8388608/8388608 bytes at offset 0
3038 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
304{
305    "required": 8716288,
306    "fully-allocated": 8716288
307}
308
309converted image file size in bytes: 8716288
310*** done
311