master
out 1,224 lines 42 KB
Raw
1 QA output created by 172
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=737280
3 Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=737280
4 Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=737280
5
6
7 === Default ===
8
9 Testing:
10
11 dev: isa-fdc, id ""
12 iobase = 1008 (0x3f0)
13 irq = 6 (0x6)
14 dma = 2 (0x2)
15 fdtypeA = "auto"
16 fdtypeB = "auto"
17 fallback = "288"
18 bus: floppy-bus.0
19 type floppy-bus
20 dev: floppy, id ""
21 unit = 0 (0x0)
22 drive = "floppy0"
23 backend_defaults = "auto"
24 logical_block_size = 512 (512 B)
25 physical_block_size = 512 (512 B)
26 min_io_size = 0 (0 B)
27 opt_io_size = 0 (0 B)
28 discard_granularity = 4294967295 (4 GiB)
29 write-cache = "auto"
30 share-rw = false
31 account-invalid = "auto"
32 account-failed = "auto"
33 stats-intervals = <null>
34 drive-type = "288"
35
36
37 === Using -fda/-fdb options ===
38
39 Testing: -fda TEST_DIR/t.qcow2
40
41 dev: isa-fdc, id ""
42 iobase = 1008 (0x3f0)
43 irq = 6 (0x6)
44 dma = 2 (0x2)
45 fdtypeA = "auto"
46 fdtypeB = "auto"
47 fallback = "288"
48 bus: floppy-bus.0
49 type floppy-bus
50 dev: floppy, id ""
51 unit = 0 (0x0)
52 drive = "floppy0"
53 backend_defaults = "auto"
54 logical_block_size = 512 (512 B)
55 physical_block_size = 512 (512 B)
56 min_io_size = 0 (0 B)
57 opt_io_size = 0 (0 B)
58 discard_granularity = 4294967295 (4 GiB)
59 write-cache = "auto"
60 share-rw = false
61 account-invalid = "auto"
62 account-failed = "auto"
63 stats-intervals = <null>
64 drive-type = "144"
65 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
66 Attached to: /machine/unattached/device[N]
67 Removable device: not locked, tray closed
68 Cache mode: writeback
69
70 ide1-cd0: [not inserted]
71 Attached to: /machine/unattached/device[N]
72 Removable device: not locked, tray closed
73 (qemu) quit
74
75
76 Testing: -fdb TEST_DIR/t.qcow2
77
78 dev: isa-fdc, id ""
79 iobase = 1008 (0x3f0)
80 irq = 6 (0x6)
81 dma = 2 (0x2)
82 fdtypeA = "auto"
83 fdtypeB = "auto"
84 fallback = "288"
85 bus: floppy-bus.0
86 type floppy-bus
87 dev: floppy, id ""
88 unit = 1 (0x1)
89 drive = "floppy1"
90 backend_defaults = "auto"
91 logical_block_size = 512 (512 B)
92 physical_block_size = 512 (512 B)
93 min_io_size = 0 (0 B)
94 opt_io_size = 0 (0 B)
95 discard_granularity = 4294967295 (4 GiB)
96 write-cache = "auto"
97 share-rw = false
98 account-invalid = "auto"
99 account-failed = "auto"
100 stats-intervals = <null>
101 drive-type = "144"
102 dev: floppy, id ""
103 unit = 0 (0x0)
104 drive = "floppy0"
105 backend_defaults = "auto"
106 logical_block_size = 512 (512 B)
107 physical_block_size = 512 (512 B)
108 min_io_size = 0 (0 B)
109 opt_io_size = 0 (0 B)
110 discard_granularity = 4294967295 (4 GiB)
111 write-cache = "auto"
112 share-rw = false
113 account-invalid = "auto"
114 account-failed = "auto"
115 stats-intervals = <null>
116 drive-type = "288"
117 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
118 Attached to: /machine/unattached/device[N]
119 Removable device: not locked, tray closed
120 Cache mode: writeback
121
122 ide1-cd0: [not inserted]
123 Attached to: /machine/unattached/device[N]
124 Removable device: not locked, tray closed
125
126 floppy0: [not inserted]
127 Attached to: /machine/unattached/device[N]
128 Removable device: not locked, tray closed
129 (qemu) quit
130
131
132 Testing: -fda TEST_DIR/t.qcow2 -fdb TEST_DIR/t.qcow2.2
133
134 dev: isa-fdc, id ""
135 iobase = 1008 (0x3f0)
136 irq = 6 (0x6)
137 dma = 2 (0x2)
138 fdtypeA = "auto"
139 fdtypeB = "auto"
140 fallback = "288"
141 bus: floppy-bus.0
142 type floppy-bus
143 dev: floppy, id ""
144 unit = 1 (0x1)
145 drive = "floppy1"
146 backend_defaults = "auto"
147 logical_block_size = 512 (512 B)
148 physical_block_size = 512 (512 B)
149 min_io_size = 0 (0 B)
150 opt_io_size = 0 (0 B)
151 discard_granularity = 4294967295 (4 GiB)
152 write-cache = "auto"
153 share-rw = false
154 account-invalid = "auto"
155 account-failed = "auto"
156 stats-intervals = <null>
157 drive-type = "144"
158 dev: floppy, id ""
159 unit = 0 (0x0)
160 drive = "floppy0"
161 backend_defaults = "auto"
162 logical_block_size = 512 (512 B)
163 physical_block_size = 512 (512 B)
164 min_io_size = 0 (0 B)
165 opt_io_size = 0 (0 B)
166 discard_granularity = 4294967295 (4 GiB)
167 write-cache = "auto"
168 share-rw = false
169 account-invalid = "auto"
170 account-failed = "auto"
171 stats-intervals = <null>
172 drive-type = "144"
173 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
174 Attached to: /machine/unattached/device[N]
175 Removable device: not locked, tray closed
176 Cache mode: writeback
177
178 floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
179 Attached to: /machine/unattached/device[N]
180 Removable device: not locked, tray closed
181 Cache mode: writeback
182
183 ide1-cd0: [not inserted]
184 Attached to: /machine/unattached/device[N]
185 Removable device: not locked, tray closed
186 (qemu) quit
187
188
189 Testing: -fdb
190
191 dev: isa-fdc, id ""
192 iobase = 1008 (0x3f0)
193 irq = 6 (0x6)
194 dma = 2 (0x2)
195 fdtypeA = "auto"
196 fdtypeB = "auto"
197 fallback = "288"
198 bus: floppy-bus.0
199 type floppy-bus
200 dev: floppy, id ""
201 unit = 1 (0x1)
202 drive = "floppy1"
203 backend_defaults = "auto"
204 logical_block_size = 512 (512 B)
205 physical_block_size = 512 (512 B)
206 min_io_size = 0 (0 B)
207 opt_io_size = 0 (0 B)
208 discard_granularity = 4294967295 (4 GiB)
209 write-cache = "auto"
210 share-rw = false
211 account-invalid = "auto"
212 account-failed = "auto"
213 stats-intervals = <null>
214 drive-type = "288"
215 dev: floppy, id ""
216 unit = 0 (0x0)
217 drive = "floppy0"
218 backend_defaults = "auto"
219 logical_block_size = 512 (512 B)
220 physical_block_size = 512 (512 B)
221 min_io_size = 0 (0 B)
222 opt_io_size = 0 (0 B)
223 discard_granularity = 4294967295 (4 GiB)
224 write-cache = "auto"
225 share-rw = false
226 account-invalid = "auto"
227 account-failed = "auto"
228 stats-intervals = <null>
229 drive-type = "288"
230
231
232 === Using -drive options ===
233
234 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2
235
236 dev: isa-fdc, id ""
237 iobase = 1008 (0x3f0)
238 irq = 6 (0x6)
239 dma = 2 (0x2)
240 fdtypeA = "auto"
241 fdtypeB = "auto"
242 fallback = "288"
243 bus: floppy-bus.0
244 type floppy-bus
245 dev: floppy, id ""
246 unit = 0 (0x0)
247 drive = "floppy0"
248 backend_defaults = "auto"
249 logical_block_size = 512 (512 B)
250 physical_block_size = 512 (512 B)
251 min_io_size = 0 (0 B)
252 opt_io_size = 0 (0 B)
253 discard_granularity = 4294967295 (4 GiB)
254 write-cache = "auto"
255 share-rw = false
256 account-invalid = "auto"
257 account-failed = "auto"
258 stats-intervals = <null>
259 drive-type = "144"
260 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
261 Attached to: /machine/unattached/device[N]
262 Removable device: not locked, tray closed
263 Cache mode: writeback
264
265 ide1-cd0: [not inserted]
266 Attached to: /machine/unattached/device[N]
267 Removable device: not locked, tray closed
268 (qemu) quit
269
270
271 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2,index=1
272
273 dev: isa-fdc, id ""
274 iobase = 1008 (0x3f0)
275 irq = 6 (0x6)
276 dma = 2 (0x2)
277 fdtypeA = "auto"
278 fdtypeB = "auto"
279 fallback = "288"
280 bus: floppy-bus.0
281 type floppy-bus
282 dev: floppy, id ""
283 unit = 1 (0x1)
284 drive = "floppy1"
285 backend_defaults = "auto"
286 logical_block_size = 512 (512 B)
287 physical_block_size = 512 (512 B)
288 min_io_size = 0 (0 B)
289 opt_io_size = 0 (0 B)
290 discard_granularity = 4294967295 (4 GiB)
291 write-cache = "auto"
292 share-rw = false
293 account-invalid = "auto"
294 account-failed = "auto"
295 stats-intervals = <null>
296 drive-type = "144"
297 dev: floppy, id ""
298 unit = 0 (0x0)
299 drive = "floppy0"
300 backend_defaults = "auto"
301 logical_block_size = 512 (512 B)
302 physical_block_size = 512 (512 B)
303 min_io_size = 0 (0 B)
304 opt_io_size = 0 (0 B)
305 discard_granularity = 4294967295 (4 GiB)
306 write-cache = "auto"
307 share-rw = false
308 account-invalid = "auto"
309 account-failed = "auto"
310 stats-intervals = <null>
311 drive-type = "288"
312 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
313 Attached to: /machine/unattached/device[N]
314 Removable device: not locked, tray closed
315 Cache mode: writeback
316
317 ide1-cd0: [not inserted]
318 Attached to: /machine/unattached/device[N]
319 Removable device: not locked, tray closed
320
321 floppy0: [not inserted]
322 Attached to: /machine/unattached/device[N]
323 Removable device: not locked, tray closed
324 (qemu) quit
325
326
327 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=floppy,file=TEST_DIR/t.qcow2.2,index=1
328
329 dev: isa-fdc, id ""
330 iobase = 1008 (0x3f0)
331 irq = 6 (0x6)
332 dma = 2 (0x2)
333 fdtypeA = "auto"
334 fdtypeB = "auto"
335 fallback = "288"
336 bus: floppy-bus.0
337 type floppy-bus
338 dev: floppy, id ""
339 unit = 1 (0x1)
340 drive = "floppy1"
341 backend_defaults = "auto"
342 logical_block_size = 512 (512 B)
343 physical_block_size = 512 (512 B)
344 min_io_size = 0 (0 B)
345 opt_io_size = 0 (0 B)
346 discard_granularity = 4294967295 (4 GiB)
347 write-cache = "auto"
348 share-rw = false
349 account-invalid = "auto"
350 account-failed = "auto"
351 stats-intervals = <null>
352 drive-type = "144"
353 dev: floppy, id ""
354 unit = 0 (0x0)
355 drive = "floppy0"
356 backend_defaults = "auto"
357 logical_block_size = 512 (512 B)
358 physical_block_size = 512 (512 B)
359 min_io_size = 0 (0 B)
360 opt_io_size = 0 (0 B)
361 discard_granularity = 4294967295 (4 GiB)
362 write-cache = "auto"
363 share-rw = false
364 account-invalid = "auto"
365 account-failed = "auto"
366 stats-intervals = <null>
367 drive-type = "144"
368 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
369 Attached to: /machine/unattached/device[N]
370 Removable device: not locked, tray closed
371 Cache mode: writeback
372
373 floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
374 Attached to: /machine/unattached/device[N]
375 Removable device: not locked, tray closed
376 Cache mode: writeback
377
378 ide1-cd0: [not inserted]
379 Attached to: /machine/unattached/device[N]
380 Removable device: not locked, tray closed
381 (qemu) quit
382
383
384
385 === Using -drive if=none and -device ===
386
387 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0
388
389 dev: isa-fdc, id ""
390 iobase = 1008 (0x3f0)
391 irq = 6 (0x6)
392 dma = 2 (0x2)
393 fdtypeA = "auto"
394 fdtypeB = "auto"
395 fallback = "288"
396 bus: floppy-bus.0
397 type floppy-bus
398 dev: floppy, id ""
399 unit = 0 (0x0)
400 drive = "none0"
401 backend_defaults = "auto"
402 logical_block_size = 512 (512 B)
403 physical_block_size = 512 (512 B)
404 min_io_size = 0 (0 B)
405 opt_io_size = 0 (0 B)
406 discard_granularity = 4294967295 (4 GiB)
407 write-cache = "auto"
408 share-rw = false
409 account-invalid = "auto"
410 account-failed = "auto"
411 stats-intervals = <null>
412 drive-type = "144"
413 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
414 Attached to: /machine/peripheral-anon/device[N]
415 Removable device: not locked, tray closed
416 Cache mode: writeback
417
418 ide1-cd0: [not inserted]
419 Attached to: /machine/unattached/device[N]
420 Removable device: not locked, tray closed
421 (qemu) quit
422
423
424 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,unit=1
425
426 dev: isa-fdc, id ""
427 iobase = 1008 (0x3f0)
428 irq = 6 (0x6)
429 dma = 2 (0x2)
430 fdtypeA = "auto"
431 fdtypeB = "auto"
432 fallback = "288"
433 bus: floppy-bus.0
434 type floppy-bus
435 dev: floppy, id ""
436 unit = 1 (0x1)
437 drive = "none0"
438 backend_defaults = "auto"
439 logical_block_size = 512 (512 B)
440 physical_block_size = 512 (512 B)
441 min_io_size = 0 (0 B)
442 opt_io_size = 0 (0 B)
443 discard_granularity = 4294967295 (4 GiB)
444 write-cache = "auto"
445 share-rw = false
446 account-invalid = "auto"
447 account-failed = "auto"
448 stats-intervals = <null>
449 drive-type = "144"
450 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
451 Attached to: /machine/peripheral-anon/device[N]
452 Removable device: not locked, tray closed
453 Cache mode: writeback
454
455 ide1-cd0: [not inserted]
456 Attached to: /machine/unattached/device[N]
457 Removable device: not locked, tray closed
458 (qemu) quit
459
460
461 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0 -device floppy,drive=none1,unit=1
462
463 dev: isa-fdc, id ""
464 iobase = 1008 (0x3f0)
465 irq = 6 (0x6)
466 dma = 2 (0x2)
467 fdtypeA = "auto"
468 fdtypeB = "auto"
469 fallback = "288"
470 bus: floppy-bus.0
471 type floppy-bus
472 dev: floppy, id ""
473 unit = 1 (0x1)
474 drive = "none1"
475 backend_defaults = "auto"
476 logical_block_size = 512 (512 B)
477 physical_block_size = 512 (512 B)
478 min_io_size = 0 (0 B)
479 opt_io_size = 0 (0 B)
480 discard_granularity = 4294967295 (4 GiB)
481 write-cache = "auto"
482 share-rw = false
483 account-invalid = "auto"
484 account-failed = "auto"
485 stats-intervals = <null>
486 drive-type = "144"
487 dev: floppy, id ""
488 unit = 0 (0x0)
489 drive = "none0"
490 backend_defaults = "auto"
491 logical_block_size = 512 (512 B)
492 physical_block_size = 512 (512 B)
493 min_io_size = 0 (0 B)
494 opt_io_size = 0 (0 B)
495 discard_granularity = 4294967295 (4 GiB)
496 write-cache = "auto"
497 share-rw = false
498 account-invalid = "auto"
499 account-failed = "auto"
500 stats-intervals = <null>
501 drive-type = "144"
502 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
503 Attached to: /machine/peripheral-anon/device[N]
504 Removable device: not locked, tray closed
505 Cache mode: writeback
506
507 none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
508 Attached to: /machine/peripheral-anon/device[N]
509 Removable device: not locked, tray closed
510 Cache mode: writeback
511
512 ide1-cd0: [not inserted]
513 Attached to: /machine/unattached/device[N]
514 Removable device: not locked, tray closed
515 (qemu) quit
516
517
518
519 === Mixing -fdX and -global ===
520
521 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0
522 QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
523
524
525 === Mixing -fdX and -device ===
526
527 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
528
529 dev: isa-fdc, id ""
530 iobase = 1008 (0x3f0)
531 irq = 6 (0x6)
532 dma = 2 (0x2)
533 fdtypeA = "auto"
534 fdtypeB = "auto"
535 fallback = "288"
536 bus: floppy-bus.0
537 type floppy-bus
538 dev: floppy, id ""
539 unit = 1 (0x1)
540 drive = "none0"
541 backend_defaults = "auto"
542 logical_block_size = 512 (512 B)
543 physical_block_size = 512 (512 B)
544 min_io_size = 0 (0 B)
545 opt_io_size = 0 (0 B)
546 discard_granularity = 4294967295 (4 GiB)
547 write-cache = "auto"
548 share-rw = false
549 account-invalid = "auto"
550 account-failed = "auto"
551 stats-intervals = <null>
552 drive-type = "144"
553 dev: floppy, id ""
554 unit = 0 (0x0)
555 drive = "floppy0"
556 backend_defaults = "auto"
557 logical_block_size = 512 (512 B)
558 physical_block_size = 512 (512 B)
559 min_io_size = 0 (0 B)
560 opt_io_size = 0 (0 B)
561 discard_granularity = 4294967295 (4 GiB)
562 write-cache = "auto"
563 share-rw = false
564 account-invalid = "auto"
565 account-failed = "auto"
566 stats-intervals = <null>
567 drive-type = "144"
568 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
569 Attached to: /machine/unattached/device[N]
570 Removable device: not locked, tray closed
571 Cache mode: writeback
572
573 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
574 Attached to: /machine/peripheral-anon/device[N]
575 Removable device: not locked, tray closed
576 Cache mode: writeback
577
578 ide1-cd0: [not inserted]
579 Attached to: /machine/unattached/device[N]
580 Removable device: not locked, tray closed
581 (qemu) quit
582
583
584 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
585
586 dev: isa-fdc, id ""
587 iobase = 1008 (0x3f0)
588 irq = 6 (0x6)
589 dma = 2 (0x2)
590 fdtypeA = "auto"
591 fdtypeB = "auto"
592 fallback = "288"
593 bus: floppy-bus.0
594 type floppy-bus
595 dev: floppy, id ""
596 unit = 1 (0x1)
597 drive = "none0"
598 backend_defaults = "auto"
599 logical_block_size = 512 (512 B)
600 physical_block_size = 512 (512 B)
601 min_io_size = 0 (0 B)
602 opt_io_size = 0 (0 B)
603 discard_granularity = 4294967295 (4 GiB)
604 write-cache = "auto"
605 share-rw = false
606 account-invalid = "auto"
607 account-failed = "auto"
608 stats-intervals = <null>
609 drive-type = "144"
610 dev: floppy, id ""
611 unit = 0 (0x0)
612 drive = "floppy0"
613 backend_defaults = "auto"
614 logical_block_size = 512 (512 B)
615 physical_block_size = 512 (512 B)
616 min_io_size = 0 (0 B)
617 opt_io_size = 0 (0 B)
618 discard_granularity = 4294967295 (4 GiB)
619 write-cache = "auto"
620 share-rw = false
621 account-invalid = "auto"
622 account-failed = "auto"
623 stats-intervals = <null>
624 drive-type = "144"
625 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
626 Attached to: /machine/unattached/device[N]
627 Removable device: not locked, tray closed
628 Cache mode: writeback
629
630 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
631 Attached to: /machine/peripheral-anon/device[N]
632 Removable device: not locked, tray closed
633 Cache mode: writeback
634
635 ide1-cd0: [not inserted]
636 Attached to: /machine/unattached/device[N]
637 Removable device: not locked, tray closed
638 (qemu) quit
639
640
641 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
642
643 dev: isa-fdc, id ""
644 iobase = 1008 (0x3f0)
645 irq = 6 (0x6)
646 dma = 2 (0x2)
647 fdtypeA = "auto"
648 fdtypeB = "auto"
649 fallback = "288"
650 bus: floppy-bus.0
651 type floppy-bus
652 dev: floppy, id ""
653 unit = 0 (0x0)
654 drive = "none0"
655 backend_defaults = "auto"
656 logical_block_size = 512 (512 B)
657 physical_block_size = 512 (512 B)
658 min_io_size = 0 (0 B)
659 opt_io_size = 0 (0 B)
660 discard_granularity = 4294967295 (4 GiB)
661 write-cache = "auto"
662 share-rw = false
663 account-invalid = "auto"
664 account-failed = "auto"
665 stats-intervals = <null>
666 drive-type = "144"
667 dev: floppy, id ""
668 unit = 1 (0x1)
669 drive = "floppy1"
670 backend_defaults = "auto"
671 logical_block_size = 512 (512 B)
672 physical_block_size = 512 (512 B)
673 min_io_size = 0 (0 B)
674 opt_io_size = 0 (0 B)
675 discard_granularity = 4294967295 (4 GiB)
676 write-cache = "auto"
677 share-rw = false
678 account-invalid = "auto"
679 account-failed = "auto"
680 stats-intervals = <null>
681 drive-type = "144"
682 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
683 Attached to: /machine/unattached/device[N]
684 Removable device: not locked, tray closed
685 Cache mode: writeback
686
687 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
688 Attached to: /machine/peripheral-anon/device[N]
689 Removable device: not locked, tray closed
690 Cache mode: writeback
691
692 ide1-cd0: [not inserted]
693 Attached to: /machine/unattached/device[N]
694 Removable device: not locked, tray closed
695 (qemu) quit
696
697
698 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
699
700 dev: isa-fdc, id ""
701 iobase = 1008 (0x3f0)
702 irq = 6 (0x6)
703 dma = 2 (0x2)
704 fdtypeA = "auto"
705 fdtypeB = "auto"
706 fallback = "288"
707 bus: floppy-bus.0
708 type floppy-bus
709 dev: floppy, id ""
710 unit = 0 (0x0)
711 drive = "none0"
712 backend_defaults = "auto"
713 logical_block_size = 512 (512 B)
714 physical_block_size = 512 (512 B)
715 min_io_size = 0 (0 B)
716 opt_io_size = 0 (0 B)
717 discard_granularity = 4294967295 (4 GiB)
718 write-cache = "auto"
719 share-rw = false
720 account-invalid = "auto"
721 account-failed = "auto"
722 stats-intervals = <null>
723 drive-type = "144"
724 dev: floppy, id ""
725 unit = 1 (0x1)
726 drive = "floppy1"
727 backend_defaults = "auto"
728 logical_block_size = 512 (512 B)
729 physical_block_size = 512 (512 B)
730 min_io_size = 0 (0 B)
731 opt_io_size = 0 (0 B)
732 discard_granularity = 4294967295 (4 GiB)
733 write-cache = "auto"
734 share-rw = false
735 account-invalid = "auto"
736 account-failed = "auto"
737 stats-intervals = <null>
738 drive-type = "144"
739 floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
740 Attached to: /machine/unattached/device[N]
741 Removable device: not locked, tray closed
742 Cache mode: writeback
743
744 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
745 Attached to: /machine/peripheral-anon/device[N]
746 Removable device: not locked, tray closed
747 Cache mode: writeback
748
749 ide1-cd0: [not inserted]
750 Attached to: /machine/unattached/device[N]
751 Removable device: not locked, tray closed
752 (qemu) quit
753
754
755 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
756 QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
757
758 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
759 QEMU_PROG: -device floppy,drive=none0,unit=1: Floppy unit 1 is in use
760
761
762 === Mixing -drive and -device ===
763
764 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
765
766 dev: isa-fdc, id ""
767 iobase = 1008 (0x3f0)
768 irq = 6 (0x6)
769 dma = 2 (0x2)
770 fdtypeA = "auto"
771 fdtypeB = "auto"
772 fallback = "288"
773 bus: floppy-bus.0
774 type floppy-bus
775 dev: floppy, id ""
776 unit = 1 (0x1)
777 drive = "none0"
778 backend_defaults = "auto"
779 logical_block_size = 512 (512 B)
780 physical_block_size = 512 (512 B)
781 min_io_size = 0 (0 B)
782 opt_io_size = 0 (0 B)
783 discard_granularity = 4294967295 (4 GiB)
784 write-cache = "auto"
785 share-rw = false
786 account-invalid = "auto"
787 account-failed = "auto"
788 stats-intervals = <null>
789 drive-type = "144"
790 dev: floppy, id ""
791 unit = 0 (0x0)
792 drive = "floppy0"
793 backend_defaults = "auto"
794 logical_block_size = 512 (512 B)
795 physical_block_size = 512 (512 B)
796 min_io_size = 0 (0 B)
797 opt_io_size = 0 (0 B)
798 discard_granularity = 4294967295 (4 GiB)
799 write-cache = "auto"
800 share-rw = false
801 account-invalid = "auto"
802 account-failed = "auto"
803 stats-intervals = <null>
804 drive-type = "144"
805 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
806 Attached to: /machine/unattached/device[N]
807 Removable device: not locked, tray closed
808 Cache mode: writeback
809
810 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
811 Attached to: /machine/peripheral-anon/device[N]
812 Removable device: not locked, tray closed
813 Cache mode: writeback
814
815 ide1-cd0: [not inserted]
816 Attached to: /machine/unattached/device[N]
817 Removable device: not locked, tray closed
818 (qemu) quit
819
820
821 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
822
823 dev: isa-fdc, id ""
824 iobase = 1008 (0x3f0)
825 irq = 6 (0x6)
826 dma = 2 (0x2)
827 fdtypeA = "auto"
828 fdtypeB = "auto"
829 fallback = "288"
830 bus: floppy-bus.0
831 type floppy-bus
832 dev: floppy, id ""
833 unit = 1 (0x1)
834 drive = "none0"
835 backend_defaults = "auto"
836 logical_block_size = 512 (512 B)
837 physical_block_size = 512 (512 B)
838 min_io_size = 0 (0 B)
839 opt_io_size = 0 (0 B)
840 discard_granularity = 4294967295 (4 GiB)
841 write-cache = "auto"
842 share-rw = false
843 account-invalid = "auto"
844 account-failed = "auto"
845 stats-intervals = <null>
846 drive-type = "144"
847 dev: floppy, id ""
848 unit = 0 (0x0)
849 drive = "floppy0"
850 backend_defaults = "auto"
851 logical_block_size = 512 (512 B)
852 physical_block_size = 512 (512 B)
853 min_io_size = 0 (0 B)
854 opt_io_size = 0 (0 B)
855 discard_granularity = 4294967295 (4 GiB)
856 write-cache = "auto"
857 share-rw = false
858 account-invalid = "auto"
859 account-failed = "auto"
860 stats-intervals = <null>
861 drive-type = "144"
862 floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
863 Attached to: /machine/unattached/device[N]
864 Removable device: not locked, tray closed
865 Cache mode: writeback
866
867 none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
868 Attached to: /machine/peripheral-anon/device[N]
869 Removable device: not locked, tray closed
870 Cache mode: writeback
871
872 ide1-cd0: [not inserted]
873 Attached to: /machine/unattached/device[N]
874 Removable device: not locked, tray closed
875 (qemu) quit
876
877
878 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
879 QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
880
881
882 === Mixing -global and -device ===
883
884 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global floppy.drive=none0 -device floppy,unit=0
885
886 dev: isa-fdc, id ""
887 iobase = 1008 (0x3f0)
888 irq = 6 (0x6)
889 dma = 2 (0x2)
890 fdtypeA = "auto"
891 fdtypeB = "auto"
892 fallback = "288"
893 bus: floppy-bus.0
894 type floppy-bus
895 dev: floppy, id ""
896 unit = 0 (0x0)
897 drive = "none0"
898 backend_defaults = "auto"
899 logical_block_size = 512 (512 B)
900 physical_block_size = 512 (512 B)
901 min_io_size = 0 (0 B)
902 opt_io_size = 0 (0 B)
903 discard_granularity = 4294967295 (4 GiB)
904 write-cache = "auto"
905 share-rw = false
906 account-invalid = "auto"
907 account-failed = "auto"
908 stats-intervals = <null>
909 drive-type = "144"
910 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
911 Attached to: /machine/peripheral-anon/device[N]
912 Removable device: not locked, tray closed
913 Cache mode: writeback
914
915 ide1-cd0: [not inserted]
916 Attached to: /machine/unattached/device[N]
917 Removable device: not locked, tray closed
918 (qemu) quit
919
920
921 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0 -device floppy,drive=none1,unit=0
922 QEMU_PROG: -device floppy,drive=none1,unit=0: -global floppy.drive=... conflicts with drive=none1
923
924
925 === Attempt to use drive twice ===
926
927 Testing: -drive if=none -device floppy,drive=none0 -device floppy -device floppy,drive=none0
928 QEMU_PROG: -device floppy,drive=none0: Drive 'none0' is already in use by another device
929
930 Testing: -drive if=none -global floppy.drive=none0 -device floppy -device floppy
931 QEMU_PROG: -device floppy: can't apply global floppy.drive=none0: Drive 'none0' is already in use by another device
932
933 Testing: -fda -device floppy,drive=floppy0
934 QEMU_PROG: -device floppy,drive=floppy0: Drive 'floppy0' is already in use because it has been automatically connected to another device (did you need 'if=none' in the drive options?)
935
936 Testing: -fda -global floppy.drive=floppy0
937 QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
938
939 Testing: -device floppy,drive=floppy0
940 QEMU_PROG: -device floppy,drive=floppy0: Property 'floppy.drive' can't find value 'floppy0'
941
942
943 === Too many floppy drives ===
944
945 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -drive if=none,file=TEST_DIR/t.qcow2.3 -device floppy,drive=none0 -device floppy,drive=none1
946 QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
947
948
949 === Creating an empty drive with anonymous BB ===
950
951 Testing: -device floppy
952
953 dev: isa-fdc, id ""
954 iobase = 1008 (0x3f0)
955 irq = 6 (0x6)
956 dma = 2 (0x2)
957 fdtypeA = "auto"
958 fdtypeB = "auto"
959 fallback = "288"
960 bus: floppy-bus.0
961 type floppy-bus
962 dev: floppy, id ""
963 unit = 0 (0x0)
964 drive = ""
965 backend_defaults = "auto"
966 logical_block_size = 512 (512 B)
967 physical_block_size = 512 (512 B)
968 min_io_size = 0 (0 B)
969 opt_io_size = 0 (0 B)
970 discard_granularity = 4294967295 (4 GiB)
971 write-cache = "auto"
972 share-rw = false
973 account-invalid = "auto"
974 account-failed = "auto"
975 stats-intervals = <null>
976 drive-type = "288"
977
978 Testing: -device floppy,drive-type=120
979
980 dev: isa-fdc, id ""
981 iobase = 1008 (0x3f0)
982 irq = 6 (0x6)
983 dma = 2 (0x2)
984 fdtypeA = "auto"
985 fdtypeB = "auto"
986 fallback = "288"
987 bus: floppy-bus.0
988 type floppy-bus
989 dev: floppy, id ""
990 unit = 0 (0x0)
991 drive = ""
992 backend_defaults = "auto"
993 logical_block_size = 512 (512 B)
994 physical_block_size = 512 (512 B)
995 min_io_size = 0 (0 B)
996 opt_io_size = 0 (0 B)
997 discard_granularity = 4294967295 (4 GiB)
998 write-cache = "auto"
999 share-rw = false
1000 account-invalid = "auto"
1001 account-failed = "auto"
1002 stats-intervals = <null>
1003 drive-type = "120"
1004
1005 Testing: -device floppy,drive-type=144
1006
1007 dev: isa-fdc, id ""
1008 iobase = 1008 (0x3f0)
1009 irq = 6 (0x6)
1010 dma = 2 (0x2)
1011 fdtypeA = "auto"
1012 fdtypeB = "auto"
1013 fallback = "288"
1014 bus: floppy-bus.0
1015 type floppy-bus
1016 dev: floppy, id ""
1017 unit = 0 (0x0)
1018 drive = ""
1019 backend_defaults = "auto"
1020 logical_block_size = 512 (512 B)
1021 physical_block_size = 512 (512 B)
1022 min_io_size = 0 (0 B)
1023 opt_io_size = 0 (0 B)
1024 discard_granularity = 4294967295 (4 GiB)
1025 write-cache = "auto"
1026 share-rw = false
1027 account-invalid = "auto"
1028 account-failed = "auto"
1029 stats-intervals = <null>
1030 drive-type = "144"
1031
1032 Testing: -device floppy,drive-type=288
1033
1034 dev: isa-fdc, id ""
1035 iobase = 1008 (0x3f0)
1036 irq = 6 (0x6)
1037 dma = 2 (0x2)
1038 fdtypeA = "auto"
1039 fdtypeB = "auto"
1040 fallback = "288"
1041 bus: floppy-bus.0
1042 type floppy-bus
1043 dev: floppy, id ""
1044 unit = 0 (0x0)
1045 drive = ""
1046 backend_defaults = "auto"
1047 logical_block_size = 512 (512 B)
1048 physical_block_size = 512 (512 B)
1049 min_io_size = 0 (0 B)
1050 opt_io_size = 0 (0 B)
1051 discard_granularity = 4294967295 (4 GiB)
1052 write-cache = "auto"
1053 share-rw = false
1054 account-invalid = "auto"
1055 account-failed = "auto"
1056 stats-intervals = <null>
1057 drive-type = "288"
1058
1059
1060 === Try passing different drive size with image ===
1061
1062 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
1063
1064 dev: isa-fdc, id ""
1065 iobase = 1008 (0x3f0)
1066 irq = 6 (0x6)
1067 dma = 2 (0x2)
1068 fdtypeA = "auto"
1069 fdtypeB = "auto"
1070 fallback = "288"
1071 bus: floppy-bus.0
1072 type floppy-bus
1073 dev: floppy, id ""
1074 unit = 0 (0x0)
1075 drive = "none0"
1076 backend_defaults = "auto"
1077 logical_block_size = 512 (512 B)
1078 physical_block_size = 512 (512 B)
1079 min_io_size = 0 (0 B)
1080 opt_io_size = 0 (0 B)
1081 discard_granularity = 4294967295 (4 GiB)
1082 write-cache = "auto"
1083 share-rw = false
1084 account-invalid = "auto"
1085 account-failed = "auto"
1086 stats-intervals = <null>
1087 drive-type = "120"
1088 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1089 Attached to: /machine/peripheral-anon/device[N]
1090 Removable device: not locked, tray closed
1091 Cache mode: writeback
1092
1093 ide1-cd0: [not inserted]
1094 Attached to: /machine/unattached/device[N]
1095 Removable device: not locked, tray closed
1096 (qemu) quit
1097
1098
1099 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
1100
1101 dev: isa-fdc, id ""
1102 iobase = 1008 (0x3f0)
1103 irq = 6 (0x6)
1104 dma = 2 (0x2)
1105 fdtypeA = "auto"
1106 fdtypeB = "auto"
1107 fallback = "288"
1108 bus: floppy-bus.0
1109 type floppy-bus
1110 dev: floppy, id ""
1111 unit = 0 (0x0)
1112 drive = "none0"
1113 backend_defaults = "auto"
1114 logical_block_size = 512 (512 B)
1115 physical_block_size = 512 (512 B)
1116 min_io_size = 0 (0 B)
1117 opt_io_size = 0 (0 B)
1118 discard_granularity = 4294967295 (4 GiB)
1119 write-cache = "auto"
1120 share-rw = false
1121 account-invalid = "auto"
1122 account-failed = "auto"
1123 stats-intervals = <null>
1124 drive-type = "288"
1125 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1126 Attached to: /machine/peripheral-anon/device[N]
1127 Removable device: not locked, tray closed
1128 Cache mode: writeback
1129
1130 ide1-cd0: [not inserted]
1131 Attached to: /machine/unattached/device[N]
1132 Removable device: not locked, tray closed
1133 (qemu) quit
1134
1135
1136
1137 === Try passing different block sizes ===
1138
1139 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
1140
1141 dev: isa-fdc, id ""
1142 iobase = 1008 (0x3f0)
1143 irq = 6 (0x6)
1144 dma = 2 (0x2)
1145 fdtypeA = "auto"
1146 fdtypeB = "auto"
1147 fallback = "288"
1148 bus: floppy-bus.0
1149 type floppy-bus
1150 dev: floppy, id ""
1151 unit = 0 (0x0)
1152 drive = "none0"
1153 backend_defaults = "auto"
1154 logical_block_size = 512 (512 B)
1155 physical_block_size = 512 (512 B)
1156 min_io_size = 0 (0 B)
1157 opt_io_size = 0 (0 B)
1158 discard_granularity = 4294967295 (4 GiB)
1159 write-cache = "auto"
1160 share-rw = false
1161 account-invalid = "auto"
1162 account-failed = "auto"
1163 stats-intervals = <null>
1164 drive-type = "144"
1165 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1166 Attached to: /machine/peripheral-anon/device[N]
1167 Removable device: not locked, tray closed
1168 Cache mode: writeback
1169
1170 ide1-cd0: [not inserted]
1171 Attached to: /machine/unattached/device[N]
1172 Removable device: not locked, tray closed
1173 (qemu) quit
1174
1175
1176 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
1177
1178 dev: isa-fdc, id ""
1179 iobase = 1008 (0x3f0)
1180 irq = 6 (0x6)
1181 dma = 2 (0x2)
1182 fdtypeA = "auto"
1183 fdtypeB = "auto"
1184 fallback = "288"
1185 bus: floppy-bus.0
1186 type floppy-bus
1187 dev: floppy, id ""
1188 unit = 0 (0x0)
1189 drive = "none0"
1190 backend_defaults = "auto"
1191 logical_block_size = 512 (512 B)
1192 physical_block_size = 512 (512 B)
1193 min_io_size = 0 (0 B)
1194 opt_io_size = 0 (0 B)
1195 discard_granularity = 4294967295 (4 GiB)
1196 write-cache = "auto"
1197 share-rw = false
1198 account-invalid = "auto"
1199 account-failed = "auto"
1200 stats-intervals = <null>
1201 drive-type = "144"
1202 none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1203 Attached to: /machine/peripheral-anon/device[N]
1204 Removable device: not locked, tray closed
1205 Cache mode: writeback
1206
1207 ide1-cd0: [not inserted]
1208 Attached to: /machine/unattached/device[N]
1209 Removable device: not locked, tray closed
1210 (qemu) quit
1211
1212
1213 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1214 QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1215
1216 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1217 QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1218
1219
1220 === Writethrough caching ===
1221 Cache mode: writeback
1222 Cache mode: writeback
1223 Cache mode: writethrough
1224 *** done