xref: /qemu/tests/qemu-iotests/172.out (revision 6172e067a4f2a521ace14f7d0d88c6df76e26eab)
1QA output created by 172
2Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=737280
3Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=737280
4Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=737280
5
6
7=== Default ===
8
9Testing:
10
11          dev: isa-fdc, id ""
12            iobase = 1008 (0x3f0)
13            irq = 6 (0x6)
14            dma = 2 (0x2)
15            driveA = ""
16            driveB = ""
17            check_media_rate = true
18            fdtypeA = "auto"
19            fdtypeB = "auto"
20            fallback = "288"
21            isa irq 6
22            bus: floppy-bus.0
23              type floppy-bus
24              dev: floppy, id ""
25                unit = 0 (0x0)
26                drive = "floppy0"
27                logical_block_size = 512 (512 B)
28                physical_block_size = 512 (512 B)
29                min_io_size = 0 (0 B)
30                opt_io_size = 0 (0 B)
31                discard_granularity = 4294967295 (4 GiB)
32                write-cache = "auto"
33                share-rw = false
34                drive-type = "288"
35
36
37=== Using -fda/-fdb options ===
38
39Testing: -fda TEST_DIR/t.qcow2
40
41          dev: isa-fdc, id ""
42            iobase = 1008 (0x3f0)
43            irq = 6 (0x6)
44            dma = 2 (0x2)
45            driveA = ""
46            driveB = ""
47            check_media_rate = true
48            fdtypeA = "auto"
49            fdtypeB = "auto"
50            fallback = "288"
51            isa irq 6
52            bus: floppy-bus.0
53              type floppy-bus
54              dev: floppy, id ""
55                unit = 0 (0x0)
56                drive = "floppy0"
57                logical_block_size = 512 (512 B)
58                physical_block_size = 512 (512 B)
59                min_io_size = 0 (0 B)
60                opt_io_size = 0 (0 B)
61                discard_granularity = 4294967295 (4 GiB)
62                write-cache = "auto"
63                share-rw = false
64                drive-type = "144"
65floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
66    Attached to:      /machine/unattached/device[15]
67    Removable device: not locked, tray closed
68    Cache mode:       writeback
69
70ide1-cd0: [not inserted]
71    Attached to:      /machine/unattached/device[22]
72    Removable device: not locked, tray closed
73
74sd0: [not inserted]
75    Removable device: not locked, tray closed
76(qemu) quit
77
78
79Testing: -fdb TEST_DIR/t.qcow2
80
81          dev: isa-fdc, id ""
82            iobase = 1008 (0x3f0)
83            irq = 6 (0x6)
84            dma = 2 (0x2)
85            driveA = ""
86            driveB = ""
87            check_media_rate = true
88            fdtypeA = "auto"
89            fdtypeB = "auto"
90            fallback = "288"
91            isa irq 6
92            bus: floppy-bus.0
93              type floppy-bus
94              dev: floppy, id ""
95                unit = 1 (0x1)
96                drive = "floppy1"
97                logical_block_size = 512 (512 B)
98                physical_block_size = 512 (512 B)
99                min_io_size = 0 (0 B)
100                opt_io_size = 0 (0 B)
101                discard_granularity = 4294967295 (4 GiB)
102                write-cache = "auto"
103                share-rw = false
104                drive-type = "144"
105              dev: floppy, id ""
106                unit = 0 (0x0)
107                drive = "floppy0"
108                logical_block_size = 512 (512 B)
109                physical_block_size = 512 (512 B)
110                min_io_size = 0 (0 B)
111                opt_io_size = 0 (0 B)
112                discard_granularity = 4294967295 (4 GiB)
113                write-cache = "auto"
114                share-rw = false
115                drive-type = "288"
116floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
117    Attached to:      /machine/unattached/device[16]
118    Removable device: not locked, tray closed
119    Cache mode:       writeback
120
121ide1-cd0: [not inserted]
122    Attached to:      /machine/unattached/device[23]
123    Removable device: not locked, tray closed
124
125floppy0: [not inserted]
126    Attached to:      /machine/unattached/device[15]
127    Removable device: not locked, tray closed
128
129sd0: [not inserted]
130    Removable device: not locked, tray closed
131(qemu) quit
132
133
134Testing: -fda TEST_DIR/t.qcow2 -fdb TEST_DIR/t.qcow2.2
135
136          dev: isa-fdc, id ""
137            iobase = 1008 (0x3f0)
138            irq = 6 (0x6)
139            dma = 2 (0x2)
140            driveA = ""
141            driveB = ""
142            check_media_rate = true
143            fdtypeA = "auto"
144            fdtypeB = "auto"
145            fallback = "288"
146            isa irq 6
147            bus: floppy-bus.0
148              type floppy-bus
149              dev: floppy, id ""
150                unit = 1 (0x1)
151                drive = "floppy1"
152                logical_block_size = 512 (512 B)
153                physical_block_size = 512 (512 B)
154                min_io_size = 0 (0 B)
155                opt_io_size = 0 (0 B)
156                discard_granularity = 4294967295 (4 GiB)
157                write-cache = "auto"
158                share-rw = false
159                drive-type = "144"
160              dev: floppy, id ""
161                unit = 0 (0x0)
162                drive = "floppy0"
163                logical_block_size = 512 (512 B)
164                physical_block_size = 512 (512 B)
165                min_io_size = 0 (0 B)
166                opt_io_size = 0 (0 B)
167                discard_granularity = 4294967295 (4 GiB)
168                write-cache = "auto"
169                share-rw = false
170                drive-type = "144"
171floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
172    Attached to:      /machine/unattached/device[15]
173    Removable device: not locked, tray closed
174    Cache mode:       writeback
175
176floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
177    Attached to:      /machine/unattached/device[16]
178    Removable device: not locked, tray closed
179    Cache mode:       writeback
180
181ide1-cd0: [not inserted]
182    Attached to:      /machine/unattached/device[23]
183    Removable device: not locked, tray closed
184
185sd0: [not inserted]
186    Removable device: not locked, tray closed
187(qemu) quit
188
189
190Testing: -fdb
191
192          dev: isa-fdc, id ""
193            iobase = 1008 (0x3f0)
194            irq = 6 (0x6)
195            dma = 2 (0x2)
196            driveA = ""
197            driveB = ""
198            check_media_rate = true
199            fdtypeA = "auto"
200            fdtypeB = "auto"
201            fallback = "288"
202            isa irq 6
203            bus: floppy-bus.0
204              type floppy-bus
205              dev: floppy, id ""
206                unit = 1 (0x1)
207                drive = "floppy1"
208                logical_block_size = 512 (512 B)
209                physical_block_size = 512 (512 B)
210                min_io_size = 0 (0 B)
211                opt_io_size = 0 (0 B)
212                discard_granularity = 4294967295 (4 GiB)
213                write-cache = "auto"
214                share-rw = false
215                drive-type = "288"
216              dev: floppy, id ""
217                unit = 0 (0x0)
218                drive = "floppy0"
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                drive-type = "288"
227
228
229=== Using -drive options ===
230
231Testing: -drive if=floppy,file=TEST_DIR/t.qcow2
232
233          dev: isa-fdc, id ""
234            iobase = 1008 (0x3f0)
235            irq = 6 (0x6)
236            dma = 2 (0x2)
237            driveA = ""
238            driveB = ""
239            check_media_rate = true
240            fdtypeA = "auto"
241            fdtypeB = "auto"
242            fallback = "288"
243            isa irq 6
244            bus: floppy-bus.0
245              type floppy-bus
246              dev: floppy, id ""
247                unit = 0 (0x0)
248                drive = "floppy0"
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                drive-type = "144"
257floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
258    Attached to:      /machine/unattached/device[15]
259    Removable device: not locked, tray closed
260    Cache mode:       writeback
261
262ide1-cd0: [not inserted]
263    Attached to:      /machine/unattached/device[22]
264    Removable device: not locked, tray closed
265
266sd0: [not inserted]
267    Removable device: not locked, tray closed
268(qemu) quit
269
270
271Testing: -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            driveA = ""
278            driveB = ""
279            check_media_rate = true
280            fdtypeA = "auto"
281            fdtypeB = "auto"
282            fallback = "288"
283            isa irq 6
284            bus: floppy-bus.0
285              type floppy-bus
286              dev: floppy, id ""
287                unit = 1 (0x1)
288                drive = "floppy1"
289                logical_block_size = 512 (512 B)
290                physical_block_size = 512 (512 B)
291                min_io_size = 0 (0 B)
292                opt_io_size = 0 (0 B)
293                discard_granularity = 4294967295 (4 GiB)
294                write-cache = "auto"
295                share-rw = false
296                drive-type = "144"
297              dev: floppy, id ""
298                unit = 0 (0x0)
299                drive = "floppy0"
300                logical_block_size = 512 (512 B)
301                physical_block_size = 512 (512 B)
302                min_io_size = 0 (0 B)
303                opt_io_size = 0 (0 B)
304                discard_granularity = 4294967295 (4 GiB)
305                write-cache = "auto"
306                share-rw = false
307                drive-type = "288"
308floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
309    Attached to:      /machine/unattached/device[16]
310    Removable device: not locked, tray closed
311    Cache mode:       writeback
312
313ide1-cd0: [not inserted]
314    Attached to:      /machine/unattached/device[23]
315    Removable device: not locked, tray closed
316
317floppy0: [not inserted]
318    Attached to:      /machine/unattached/device[15]
319    Removable device: not locked, tray closed
320
321sd0: [not inserted]
322    Removable device: not locked, tray closed
323(qemu) quit
324
325
326Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=floppy,file=TEST_DIR/t.qcow2.2,index=1
327
328          dev: isa-fdc, id ""
329            iobase = 1008 (0x3f0)
330            irq = 6 (0x6)
331            dma = 2 (0x2)
332            driveA = ""
333            driveB = ""
334            check_media_rate = true
335            fdtypeA = "auto"
336            fdtypeB = "auto"
337            fallback = "288"
338            isa irq 6
339            bus: floppy-bus.0
340              type floppy-bus
341              dev: floppy, id ""
342                unit = 1 (0x1)
343                drive = "floppy1"
344                logical_block_size = 512 (512 B)
345                physical_block_size = 512 (512 B)
346                min_io_size = 0 (0 B)
347                opt_io_size = 0 (0 B)
348                discard_granularity = 4294967295 (4 GiB)
349                write-cache = "auto"
350                share-rw = false
351                drive-type = "144"
352              dev: floppy, id ""
353                unit = 0 (0x0)
354                drive = "floppy0"
355                logical_block_size = 512 (512 B)
356                physical_block_size = 512 (512 B)
357                min_io_size = 0 (0 B)
358                opt_io_size = 0 (0 B)
359                discard_granularity = 4294967295 (4 GiB)
360                write-cache = "auto"
361                share-rw = false
362                drive-type = "144"
363floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
364    Attached to:      /machine/unattached/device[15]
365    Removable device: not locked, tray closed
366    Cache mode:       writeback
367
368floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
369    Attached to:      /machine/unattached/device[16]
370    Removable device: not locked, tray closed
371    Cache mode:       writeback
372
373ide1-cd0: [not inserted]
374    Attached to:      /machine/unattached/device[23]
375    Removable device: not locked, tray closed
376
377sd0: [not inserted]
378    Removable device: not locked, tray closed
379(qemu) quit
380
381
382
383=== Using -drive if=none and -global ===
384
385Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global isa-fdc.driveA=none0
386
387          dev: isa-fdc, id ""
388            iobase = 1008 (0x3f0)
389            irq = 6 (0x6)
390            dma = 2 (0x2)
391            driveA = ""
392            driveB = ""
393            check_media_rate = true
394            fdtypeA = "auto"
395            fdtypeB = "auto"
396            fallback = "288"
397            isa irq 6
398            bus: floppy-bus.0
399              type floppy-bus
400              dev: floppy, id ""
401                unit = 0 (0x0)
402                drive = "none0"
403                logical_block_size = 512 (512 B)
404                physical_block_size = 512 (512 B)
405                min_io_size = 0 (0 B)
406                opt_io_size = 0 (0 B)
407                discard_granularity = 4294967295 (4 GiB)
408                write-cache = "auto"
409                share-rw = false
410                drive-type = "144"
411none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
412    Attached to:      /machine/unattached/device[15]
413    Removable device: not locked, tray closed
414    Cache mode:       writeback
415
416ide1-cd0: [not inserted]
417    Attached to:      /machine/unattached/device[22]
418    Removable device: not locked, tray closed
419
420sd0: [not inserted]
421    Removable device: not locked, tray closed
422(qemu) quit
423
424
425Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global isa-fdc.driveB=none0
426
427          dev: isa-fdc, id ""
428            iobase = 1008 (0x3f0)
429            irq = 6 (0x6)
430            dma = 2 (0x2)
431            driveA = ""
432            driveB = ""
433            check_media_rate = true
434            fdtypeA = "auto"
435            fdtypeB = "auto"
436            fallback = "288"
437            isa irq 6
438            bus: floppy-bus.0
439              type floppy-bus
440              dev: floppy, id ""
441                unit = 1 (0x1)
442                drive = "none0"
443                logical_block_size = 512 (512 B)
444                physical_block_size = 512 (512 B)
445                min_io_size = 0 (0 B)
446                opt_io_size = 0 (0 B)
447                discard_granularity = 4294967295 (4 GiB)
448                write-cache = "auto"
449                share-rw = false
450                drive-type = "144"
451none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
452    Attached to:      /machine/unattached/device[15]
453    Removable device: not locked, tray closed
454    Cache mode:       writeback
455
456ide1-cd0: [not inserted]
457    Attached to:      /machine/unattached/device[22]
458    Removable device: not locked, tray closed
459
460sd0: [not inserted]
461    Removable device: not locked, tray closed
462(qemu) quit
463
464
465Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0 -global isa-fdc.driveB=none1
466
467          dev: isa-fdc, id ""
468            iobase = 1008 (0x3f0)
469            irq = 6 (0x6)
470            dma = 2 (0x2)
471            driveA = ""
472            driveB = ""
473            check_media_rate = true
474            fdtypeA = "auto"
475            fdtypeB = "auto"
476            fallback = "288"
477            isa irq 6
478            bus: floppy-bus.0
479              type floppy-bus
480              dev: floppy, id ""
481                unit = 1 (0x1)
482                drive = "none1"
483                logical_block_size = 512 (512 B)
484                physical_block_size = 512 (512 B)
485                min_io_size = 0 (0 B)
486                opt_io_size = 0 (0 B)
487                discard_granularity = 4294967295 (4 GiB)
488                write-cache = "auto"
489                share-rw = false
490                drive-type = "144"
491              dev: floppy, id ""
492                unit = 0 (0x0)
493                drive = "none0"
494                logical_block_size = 512 (512 B)
495                physical_block_size = 512 (512 B)
496                min_io_size = 0 (0 B)
497                opt_io_size = 0 (0 B)
498                discard_granularity = 4294967295 (4 GiB)
499                write-cache = "auto"
500                share-rw = false
501                drive-type = "144"
502none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
503    Attached to:      /machine/unattached/device[15]
504    Removable device: not locked, tray closed
505    Cache mode:       writeback
506
507none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
508    Attached to:      /machine/unattached/device[16]
509    Removable device: not locked, tray closed
510    Cache mode:       writeback
511
512ide1-cd0: [not inserted]
513    Attached to:      /machine/unattached/device[23]
514    Removable device: not locked, tray closed
515
516sd0: [not inserted]
517    Removable device: not locked, tray closed
518(qemu) quit
519
520
521
522=== Using -drive if=none and -device ===
523
524Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0
525
526          dev: isa-fdc, id ""
527            iobase = 1008 (0x3f0)
528            irq = 6 (0x6)
529            dma = 2 (0x2)
530            driveA = ""
531            driveB = ""
532            check_media_rate = true
533            fdtypeA = "auto"
534            fdtypeB = "auto"
535            fallback = "288"
536            isa irq 6
537            bus: floppy-bus.0
538              type floppy-bus
539              dev: floppy, id ""
540                unit = 0 (0x0)
541                drive = "none0"
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                drive-type = "144"
550none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
551    Attached to:      /machine/peripheral-anon/device[0]
552    Removable device: not locked, tray closed
553    Cache mode:       writeback
554
555ide1-cd0: [not inserted]
556    Attached to:      /machine/unattached/device[21]
557    Removable device: not locked, tray closed
558
559sd0: [not inserted]
560    Removable device: not locked, tray closed
561(qemu) quit
562
563
564Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,unit=1
565
566          dev: isa-fdc, id ""
567            iobase = 1008 (0x3f0)
568            irq = 6 (0x6)
569            dma = 2 (0x2)
570            driveA = ""
571            driveB = ""
572            check_media_rate = true
573            fdtypeA = "auto"
574            fdtypeB = "auto"
575            fallback = "288"
576            isa irq 6
577            bus: floppy-bus.0
578              type floppy-bus
579              dev: floppy, id ""
580                unit = 1 (0x1)
581                drive = "none0"
582                logical_block_size = 512 (512 B)
583                physical_block_size = 512 (512 B)
584                min_io_size = 0 (0 B)
585                opt_io_size = 0 (0 B)
586                discard_granularity = 4294967295 (4 GiB)
587                write-cache = "auto"
588                share-rw = false
589                drive-type = "144"
590none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
591    Attached to:      /machine/peripheral-anon/device[0]
592    Removable device: not locked, tray closed
593    Cache mode:       writeback
594
595ide1-cd0: [not inserted]
596    Attached to:      /machine/unattached/device[21]
597    Removable device: not locked, tray closed
598
599sd0: [not inserted]
600    Removable device: not locked, tray closed
601(qemu) quit
602
603
604Testing: -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
605
606          dev: isa-fdc, id ""
607            iobase = 1008 (0x3f0)
608            irq = 6 (0x6)
609            dma = 2 (0x2)
610            driveA = ""
611            driveB = ""
612            check_media_rate = true
613            fdtypeA = "auto"
614            fdtypeB = "auto"
615            fallback = "288"
616            isa irq 6
617            bus: floppy-bus.0
618              type floppy-bus
619              dev: floppy, id ""
620                unit = 1 (0x1)
621                drive = "none1"
622                logical_block_size = 512 (512 B)
623                physical_block_size = 512 (512 B)
624                min_io_size = 0 (0 B)
625                opt_io_size = 0 (0 B)
626                discard_granularity = 4294967295 (4 GiB)
627                write-cache = "auto"
628                share-rw = false
629                drive-type = "144"
630              dev: floppy, id ""
631                unit = 0 (0x0)
632                drive = "none0"
633                logical_block_size = 512 (512 B)
634                physical_block_size = 512 (512 B)
635                min_io_size = 0 (0 B)
636                opt_io_size = 0 (0 B)
637                discard_granularity = 4294967295 (4 GiB)
638                write-cache = "auto"
639                share-rw = false
640                drive-type = "144"
641none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
642    Attached to:      /machine/peripheral-anon/device[0]
643    Removable device: not locked, tray closed
644    Cache mode:       writeback
645
646none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
647    Attached to:      /machine/peripheral-anon/device[1]
648    Removable device: not locked, tray closed
649    Cache mode:       writeback
650
651ide1-cd0: [not inserted]
652    Attached to:      /machine/unattached/device[21]
653    Removable device: not locked, tray closed
654
655sd0: [not inserted]
656    Removable device: not locked, tray closed
657(qemu) quit
658
659
660
661=== Mixing -fdX and -global ===
662
663Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=none0
664
665          dev: isa-fdc, id ""
666            iobase = 1008 (0x3f0)
667            irq = 6 (0x6)
668            dma = 2 (0x2)
669            driveA = ""
670            driveB = ""
671            check_media_rate = true
672            fdtypeA = "auto"
673            fdtypeB = "auto"
674            fallback = "288"
675            isa irq 6
676            bus: floppy-bus.0
677              type floppy-bus
678              dev: floppy, id ""
679                unit = 0 (0x0)
680                drive = "floppy0"
681                logical_block_size = 512 (512 B)
682                physical_block_size = 512 (512 B)
683                min_io_size = 0 (0 B)
684                opt_io_size = 0 (0 B)
685                discard_granularity = 4294967295 (4 GiB)
686                write-cache = "auto"
687                share-rw = false
688                drive-type = "144"
689              dev: floppy, id ""
690                unit = 1 (0x1)
691                drive = "none0"
692                logical_block_size = 512 (512 B)
693                physical_block_size = 512 (512 B)
694                min_io_size = 0 (0 B)
695                opt_io_size = 0 (0 B)
696                discard_granularity = 4294967295 (4 GiB)
697                write-cache = "auto"
698                share-rw = false
699                drive-type = "144"
700floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
701    Attached to:      /machine/unattached/device[16]
702    Removable device: not locked, tray closed
703    Cache mode:       writeback
704
705none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
706    Attached to:      /machine/unattached/device[15]
707    Removable device: not locked, tray closed
708    Cache mode:       writeback
709
710ide1-cd0: [not inserted]
711    Attached to:      /machine/unattached/device[23]
712    Removable device: not locked, tray closed
713
714sd0: [not inserted]
715    Removable device: not locked, tray closed
716(qemu) quit
717
718
719Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0
720
721          dev: isa-fdc, id ""
722            iobase = 1008 (0x3f0)
723            irq = 6 (0x6)
724            dma = 2 (0x2)
725            driveA = ""
726            driveB = ""
727            check_media_rate = true
728            fdtypeA = "auto"
729            fdtypeB = "auto"
730            fallback = "288"
731            isa irq 6
732            bus: floppy-bus.0
733              type floppy-bus
734              dev: floppy, id ""
735                unit = 1 (0x1)
736                drive = "floppy1"
737                logical_block_size = 512 (512 B)
738                physical_block_size = 512 (512 B)
739                min_io_size = 0 (0 B)
740                opt_io_size = 0 (0 B)
741                discard_granularity = 4294967295 (4 GiB)
742                write-cache = "auto"
743                share-rw = false
744                drive-type = "144"
745              dev: floppy, id ""
746                unit = 0 (0x0)
747                drive = "none0"
748                logical_block_size = 512 (512 B)
749                physical_block_size = 512 (512 B)
750                min_io_size = 0 (0 B)
751                opt_io_size = 0 (0 B)
752                discard_granularity = 4294967295 (4 GiB)
753                write-cache = "auto"
754                share-rw = false
755                drive-type = "144"
756floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
757    Attached to:      /machine/unattached/device[16]
758    Removable device: not locked, tray closed
759    Cache mode:       writeback
760
761none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
762    Attached to:      /machine/unattached/device[15]
763    Removable device: not locked, tray closed
764    Cache mode:       writeback
765
766ide1-cd0: [not inserted]
767    Attached to:      /machine/unattached/device[23]
768    Removable device: not locked, tray closed
769
770sd0: [not inserted]
771    Removable device: not locked, tray closed
772(qemu) quit
773
774
775Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0
776QEMU_PROG: Floppy unit 0 is in use
777
778Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=none0
779QEMU_PROG: Floppy unit 1 is in use
780
781Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0
782
783          dev: isa-fdc, id ""
784            iobase = 1008 (0x3f0)
785            irq = 6 (0x6)
786            dma = 2 (0x2)
787            driveA = ""
788            driveB = ""
789            check_media_rate = true
790            fdtypeA = "auto"
791            fdtypeB = "auto"
792            fallback = "288"
793            isa irq 6
794            bus: floppy-bus.0
795              type floppy-bus
796              dev: floppy, id ""
797                unit = 0 (0x0)
798                drive = "floppy0"
799                logical_block_size = 512 (512 B)
800                physical_block_size = 512 (512 B)
801                min_io_size = 0 (0 B)
802                opt_io_size = 0 (0 B)
803                discard_granularity = 4294967295 (4 GiB)
804                write-cache = "auto"
805                share-rw = false
806                drive-type = "144"
807floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
808    Attached to:      /machine/unattached/device[15]
809    Removable device: not locked, tray closed
810    Cache mode:       writeback
811
812none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
813    Attached to:      /machine/unattached/device[15]
814    Cache mode:       writeback
815
816ide1-cd0: [not inserted]
817    Attached to:      /machine/unattached/device[22]
818    Removable device: not locked, tray closed
819
820sd0: [not inserted]
821    Removable device: not locked, tray closed
822(qemu) quit
823
824
825
826=== Mixing -fdX and -device ===
827
828Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
829
830          dev: isa-fdc, id ""
831            iobase = 1008 (0x3f0)
832            irq = 6 (0x6)
833            dma = 2 (0x2)
834            driveA = ""
835            driveB = ""
836            check_media_rate = true
837            fdtypeA = "auto"
838            fdtypeB = "auto"
839            fallback = "288"
840            isa irq 6
841            bus: floppy-bus.0
842              type floppy-bus
843              dev: floppy, id ""
844                unit = 1 (0x1)
845                drive = "none0"
846                logical_block_size = 512 (512 B)
847                physical_block_size = 512 (512 B)
848                min_io_size = 0 (0 B)
849                opt_io_size = 0 (0 B)
850                discard_granularity = 4294967295 (4 GiB)
851                write-cache = "auto"
852                share-rw = false
853                drive-type = "144"
854              dev: floppy, id ""
855                unit = 0 (0x0)
856                drive = "floppy0"
857                logical_block_size = 512 (512 B)
858                physical_block_size = 512 (512 B)
859                min_io_size = 0 (0 B)
860                opt_io_size = 0 (0 B)
861                discard_granularity = 4294967295 (4 GiB)
862                write-cache = "auto"
863                share-rw = false
864                drive-type = "144"
865floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
866    Attached to:      /machine/unattached/device[15]
867    Removable device: not locked, tray closed
868    Cache mode:       writeback
869
870none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
871    Attached to:      /machine/peripheral-anon/device[0]
872    Removable device: not locked, tray closed
873    Cache mode:       writeback
874
875ide1-cd0: [not inserted]
876    Attached to:      /machine/unattached/device[22]
877    Removable device: not locked, tray closed
878
879sd0: [not inserted]
880    Removable device: not locked, tray closed
881(qemu) quit
882
883
884Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
885
886          dev: isa-fdc, id ""
887            iobase = 1008 (0x3f0)
888            irq = 6 (0x6)
889            dma = 2 (0x2)
890            driveA = ""
891            driveB = ""
892            check_media_rate = true
893            fdtypeA = "auto"
894            fdtypeB = "auto"
895            fallback = "288"
896            isa irq 6
897            bus: floppy-bus.0
898              type floppy-bus
899              dev: floppy, id ""
900                unit = 1 (0x1)
901                drive = "none0"
902                logical_block_size = 512 (512 B)
903                physical_block_size = 512 (512 B)
904                min_io_size = 0 (0 B)
905                opt_io_size = 0 (0 B)
906                discard_granularity = 4294967295 (4 GiB)
907                write-cache = "auto"
908                share-rw = false
909                drive-type = "144"
910              dev: floppy, id ""
911                unit = 0 (0x0)
912                drive = "floppy0"
913                logical_block_size = 512 (512 B)
914                physical_block_size = 512 (512 B)
915                min_io_size = 0 (0 B)
916                opt_io_size = 0 (0 B)
917                discard_granularity = 4294967295 (4 GiB)
918                write-cache = "auto"
919                share-rw = false
920                drive-type = "144"
921floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
922    Attached to:      /machine/unattached/device[15]
923    Removable device: not locked, tray closed
924    Cache mode:       writeback
925
926none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
927    Attached to:      /machine/peripheral-anon/device[0]
928    Removable device: not locked, tray closed
929    Cache mode:       writeback
930
931ide1-cd0: [not inserted]
932    Attached to:      /machine/unattached/device[22]
933    Removable device: not locked, tray closed
934
935sd0: [not inserted]
936    Removable device: not locked, tray closed
937(qemu) quit
938
939
940Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
941
942          dev: isa-fdc, id ""
943            iobase = 1008 (0x3f0)
944            irq = 6 (0x6)
945            dma = 2 (0x2)
946            driveA = ""
947            driveB = ""
948            check_media_rate = true
949            fdtypeA = "auto"
950            fdtypeB = "auto"
951            fallback = "288"
952            isa irq 6
953            bus: floppy-bus.0
954              type floppy-bus
955              dev: floppy, id ""
956                unit = 0 (0x0)
957                drive = "none0"
958                logical_block_size = 512 (512 B)
959                physical_block_size = 512 (512 B)
960                min_io_size = 0 (0 B)
961                opt_io_size = 0 (0 B)
962                discard_granularity = 4294967295 (4 GiB)
963                write-cache = "auto"
964                share-rw = false
965                drive-type = "144"
966              dev: floppy, id ""
967                unit = 1 (0x1)
968                drive = "floppy1"
969                logical_block_size = 512 (512 B)
970                physical_block_size = 512 (512 B)
971                min_io_size = 0 (0 B)
972                opt_io_size = 0 (0 B)
973                discard_granularity = 4294967295 (4 GiB)
974                write-cache = "auto"
975                share-rw = false
976                drive-type = "144"
977floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
978    Attached to:      /machine/unattached/device[15]
979    Removable device: not locked, tray closed
980    Cache mode:       writeback
981
982none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
983    Attached to:      /machine/peripheral-anon/device[0]
984    Removable device: not locked, tray closed
985    Cache mode:       writeback
986
987ide1-cd0: [not inserted]
988    Attached to:      /machine/unattached/device[22]
989    Removable device: not locked, tray closed
990
991sd0: [not inserted]
992    Removable device: not locked, tray closed
993(qemu) quit
994
995
996Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
997
998          dev: isa-fdc, id ""
999            iobase = 1008 (0x3f0)
1000            irq = 6 (0x6)
1001            dma = 2 (0x2)
1002            driveA = ""
1003            driveB = ""
1004            check_media_rate = true
1005            fdtypeA = "auto"
1006            fdtypeB = "auto"
1007            fallback = "288"
1008            isa irq 6
1009            bus: floppy-bus.0
1010              type floppy-bus
1011              dev: floppy, id ""
1012                unit = 0 (0x0)
1013                drive = "none0"
1014                logical_block_size = 512 (512 B)
1015                physical_block_size = 512 (512 B)
1016                min_io_size = 0 (0 B)
1017                opt_io_size = 0 (0 B)
1018                discard_granularity = 4294967295 (4 GiB)
1019                write-cache = "auto"
1020                share-rw = false
1021                drive-type = "144"
1022              dev: floppy, id ""
1023                unit = 1 (0x1)
1024                drive = "floppy1"
1025                logical_block_size = 512 (512 B)
1026                physical_block_size = 512 (512 B)
1027                min_io_size = 0 (0 B)
1028                opt_io_size = 0 (0 B)
1029                discard_granularity = 4294967295 (4 GiB)
1030                write-cache = "auto"
1031                share-rw = false
1032                drive-type = "144"
1033floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1034    Attached to:      /machine/unattached/device[15]
1035    Removable device: not locked, tray closed
1036    Cache mode:       writeback
1037
1038none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1039    Attached to:      /machine/peripheral-anon/device[0]
1040    Removable device: not locked, tray closed
1041    Cache mode:       writeback
1042
1043ide1-cd0: [not inserted]
1044    Attached to:      /machine/unattached/device[22]
1045    Removable device: not locked, tray closed
1046
1047sd0: [not inserted]
1048    Removable device: not locked, tray closed
1049(qemu) quit
1050
1051
1052Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
1053QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
1054
1055Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
1056QEMU_PROG: -device floppy,drive=none0,unit=1: Floppy unit 1 is in use
1057
1058
1059=== Mixing -drive and -device ===
1060
1061Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
1062
1063          dev: isa-fdc, id ""
1064            iobase = 1008 (0x3f0)
1065            irq = 6 (0x6)
1066            dma = 2 (0x2)
1067            driveA = ""
1068            driveB = ""
1069            check_media_rate = true
1070            fdtypeA = "auto"
1071            fdtypeB = "auto"
1072            fallback = "288"
1073            isa irq 6
1074            bus: floppy-bus.0
1075              type floppy-bus
1076              dev: floppy, id ""
1077                unit = 1 (0x1)
1078                drive = "none0"
1079                logical_block_size = 512 (512 B)
1080                physical_block_size = 512 (512 B)
1081                min_io_size = 0 (0 B)
1082                opt_io_size = 0 (0 B)
1083                discard_granularity = 4294967295 (4 GiB)
1084                write-cache = "auto"
1085                share-rw = false
1086                drive-type = "144"
1087              dev: floppy, id ""
1088                unit = 0 (0x0)
1089                drive = "floppy0"
1090                logical_block_size = 512 (512 B)
1091                physical_block_size = 512 (512 B)
1092                min_io_size = 0 (0 B)
1093                opt_io_size = 0 (0 B)
1094                discard_granularity = 4294967295 (4 GiB)
1095                write-cache = "auto"
1096                share-rw = false
1097                drive-type = "144"
1098floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1099    Attached to:      /machine/unattached/device[15]
1100    Removable device: not locked, tray closed
1101    Cache mode:       writeback
1102
1103none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1104    Attached to:      /machine/peripheral-anon/device[0]
1105    Removable device: not locked, tray closed
1106    Cache mode:       writeback
1107
1108ide1-cd0: [not inserted]
1109    Attached to:      /machine/unattached/device[22]
1110    Removable device: not locked, tray closed
1111
1112sd0: [not inserted]
1113    Removable device: not locked, tray closed
1114(qemu) quit
1115
1116
1117Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
1118
1119          dev: isa-fdc, id ""
1120            iobase = 1008 (0x3f0)
1121            irq = 6 (0x6)
1122            dma = 2 (0x2)
1123            driveA = ""
1124            driveB = ""
1125            check_media_rate = true
1126            fdtypeA = "auto"
1127            fdtypeB = "auto"
1128            fallback = "288"
1129            isa irq 6
1130            bus: floppy-bus.0
1131              type floppy-bus
1132              dev: floppy, id ""
1133                unit = 1 (0x1)
1134                drive = "none0"
1135                logical_block_size = 512 (512 B)
1136                physical_block_size = 512 (512 B)
1137                min_io_size = 0 (0 B)
1138                opt_io_size = 0 (0 B)
1139                discard_granularity = 4294967295 (4 GiB)
1140                write-cache = "auto"
1141                share-rw = false
1142                drive-type = "144"
1143              dev: floppy, id ""
1144                unit = 0 (0x0)
1145                drive = "floppy0"
1146                logical_block_size = 512 (512 B)
1147                physical_block_size = 512 (512 B)
1148                min_io_size = 0 (0 B)
1149                opt_io_size = 0 (0 B)
1150                discard_granularity = 4294967295 (4 GiB)
1151                write-cache = "auto"
1152                share-rw = false
1153                drive-type = "144"
1154floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1155    Attached to:      /machine/unattached/device[15]
1156    Removable device: not locked, tray closed
1157    Cache mode:       writeback
1158
1159none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1160    Attached to:      /machine/peripheral-anon/device[0]
1161    Removable device: not locked, tray closed
1162    Cache mode:       writeback
1163
1164ide1-cd0: [not inserted]
1165    Attached to:      /machine/unattached/device[22]
1166    Removable device: not locked, tray closed
1167
1168sd0: [not inserted]
1169    Removable device: not locked, tray closed
1170(qemu) quit
1171
1172
1173Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
1174QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
1175
1176
1177=== Mixing -global and -device ===
1178
1179Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0 -device floppy,drive=none1
1180
1181          dev: isa-fdc, id ""
1182            iobase = 1008 (0x3f0)
1183            irq = 6 (0x6)
1184            dma = 2 (0x2)
1185            driveA = ""
1186            driveB = ""
1187            check_media_rate = true
1188            fdtypeA = "auto"
1189            fdtypeB = "auto"
1190            fallback = "288"
1191            isa irq 6
1192            bus: floppy-bus.0
1193              type floppy-bus
1194              dev: floppy, id ""
1195                unit = 1 (0x1)
1196                drive = "none1"
1197                logical_block_size = 512 (512 B)
1198                physical_block_size = 512 (512 B)
1199                min_io_size = 0 (0 B)
1200                opt_io_size = 0 (0 B)
1201                discard_granularity = 4294967295 (4 GiB)
1202                write-cache = "auto"
1203                share-rw = false
1204                drive-type = "144"
1205              dev: floppy, id ""
1206                unit = 0 (0x0)
1207                drive = "none0"
1208                logical_block_size = 512 (512 B)
1209                physical_block_size = 512 (512 B)
1210                min_io_size = 0 (0 B)
1211                opt_io_size = 0 (0 B)
1212                discard_granularity = 4294967295 (4 GiB)
1213                write-cache = "auto"
1214                share-rw = false
1215                drive-type = "144"
1216none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1217    Attached to:      /machine/unattached/device[15]
1218    Removable device: not locked, tray closed
1219    Cache mode:       writeback
1220
1221none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1222    Attached to:      /machine/peripheral-anon/device[0]
1223    Removable device: not locked, tray closed
1224    Cache mode:       writeback
1225
1226ide1-cd0: [not inserted]
1227    Attached to:      /machine/unattached/device[22]
1228    Removable device: not locked, tray closed
1229
1230sd0: [not inserted]
1231    Removable device: not locked, tray closed
1232(qemu) quit
1233
1234
1235Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0 -device floppy,drive=none1,unit=1
1236
1237          dev: isa-fdc, id ""
1238            iobase = 1008 (0x3f0)
1239            irq = 6 (0x6)
1240            dma = 2 (0x2)
1241            driveA = ""
1242            driveB = ""
1243            check_media_rate = true
1244            fdtypeA = "auto"
1245            fdtypeB = "auto"
1246            fallback = "288"
1247            isa irq 6
1248            bus: floppy-bus.0
1249              type floppy-bus
1250              dev: floppy, id ""
1251                unit = 1 (0x1)
1252                drive = "none1"
1253                logical_block_size = 512 (512 B)
1254                physical_block_size = 512 (512 B)
1255                min_io_size = 0 (0 B)
1256                opt_io_size = 0 (0 B)
1257                discard_granularity = 4294967295 (4 GiB)
1258                write-cache = "auto"
1259                share-rw = false
1260                drive-type = "144"
1261              dev: floppy, id ""
1262                unit = 0 (0x0)
1263                drive = "none0"
1264                logical_block_size = 512 (512 B)
1265                physical_block_size = 512 (512 B)
1266                min_io_size = 0 (0 B)
1267                opt_io_size = 0 (0 B)
1268                discard_granularity = 4294967295 (4 GiB)
1269                write-cache = "auto"
1270                share-rw = false
1271                drive-type = "144"
1272none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1273    Attached to:      /machine/unattached/device[15]
1274    Removable device: not locked, tray closed
1275    Cache mode:       writeback
1276
1277none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1278    Attached to:      /machine/peripheral-anon/device[0]
1279    Removable device: not locked, tray closed
1280    Cache mode:       writeback
1281
1282ide1-cd0: [not inserted]
1283    Attached to:      /machine/unattached/device[22]
1284    Removable device: not locked, tray closed
1285
1286sd0: [not inserted]
1287    Removable device: not locked, tray closed
1288(qemu) quit
1289
1290
1291Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=none0 -device floppy,drive=none1
1292
1293          dev: isa-fdc, id ""
1294            iobase = 1008 (0x3f0)
1295            irq = 6 (0x6)
1296            dma = 2 (0x2)
1297            driveA = ""
1298            driveB = ""
1299            check_media_rate = true
1300            fdtypeA = "auto"
1301            fdtypeB = "auto"
1302            fallback = "288"
1303            isa irq 6
1304            bus: floppy-bus.0
1305              type floppy-bus
1306              dev: floppy, id ""
1307                unit = 0 (0x0)
1308                drive = "none1"
1309                logical_block_size = 512 (512 B)
1310                physical_block_size = 512 (512 B)
1311                min_io_size = 0 (0 B)
1312                opt_io_size = 0 (0 B)
1313                discard_granularity = 4294967295 (4 GiB)
1314                write-cache = "auto"
1315                share-rw = false
1316                drive-type = "144"
1317              dev: floppy, id ""
1318                unit = 1 (0x1)
1319                drive = "none0"
1320                logical_block_size = 512 (512 B)
1321                physical_block_size = 512 (512 B)
1322                min_io_size = 0 (0 B)
1323                opt_io_size = 0 (0 B)
1324                discard_granularity = 4294967295 (4 GiB)
1325                write-cache = "auto"
1326                share-rw = false
1327                drive-type = "144"
1328none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1329    Attached to:      /machine/unattached/device[15]
1330    Removable device: not locked, tray closed
1331    Cache mode:       writeback
1332
1333none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1334    Attached to:      /machine/peripheral-anon/device[0]
1335    Removable device: not locked, tray closed
1336    Cache mode:       writeback
1337
1338ide1-cd0: [not inserted]
1339    Attached to:      /machine/unattached/device[22]
1340    Removable device: not locked, tray closed
1341
1342sd0: [not inserted]
1343    Removable device: not locked, tray closed
1344(qemu) quit
1345
1346
1347Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=none0 -device floppy,drive=none1,unit=0
1348
1349          dev: isa-fdc, id ""
1350            iobase = 1008 (0x3f0)
1351            irq = 6 (0x6)
1352            dma = 2 (0x2)
1353            driveA = ""
1354            driveB = ""
1355            check_media_rate = true
1356            fdtypeA = "auto"
1357            fdtypeB = "auto"
1358            fallback = "288"
1359            isa irq 6
1360            bus: floppy-bus.0
1361              type floppy-bus
1362              dev: floppy, id ""
1363                unit = 0 (0x0)
1364                drive = "none1"
1365                logical_block_size = 512 (512 B)
1366                physical_block_size = 512 (512 B)
1367                min_io_size = 0 (0 B)
1368                opt_io_size = 0 (0 B)
1369                discard_granularity = 4294967295 (4 GiB)
1370                write-cache = "auto"
1371                share-rw = false
1372                drive-type = "144"
1373              dev: floppy, id ""
1374                unit = 1 (0x1)
1375                drive = "none0"
1376                logical_block_size = 512 (512 B)
1377                physical_block_size = 512 (512 B)
1378                min_io_size = 0 (0 B)
1379                opt_io_size = 0 (0 B)
1380                discard_granularity = 4294967295 (4 GiB)
1381                write-cache = "auto"
1382                share-rw = false
1383                drive-type = "144"
1384none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1385    Attached to:      /machine/unattached/device[15]
1386    Removable device: not locked, tray closed
1387    Cache mode:       writeback
1388
1389none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1390    Attached to:      /machine/peripheral-anon/device[0]
1391    Removable device: not locked, tray closed
1392    Cache mode:       writeback
1393
1394ide1-cd0: [not inserted]
1395    Attached to:      /machine/unattached/device[22]
1396    Removable device: not locked, tray closed
1397
1398sd0: [not inserted]
1399    Removable device: not locked, tray closed
1400(qemu) quit
1401
1402
1403Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global floppy.drive=none0 -device floppy,unit=0
1404
1405          dev: isa-fdc, id ""
1406            iobase = 1008 (0x3f0)
1407            irq = 6 (0x6)
1408            dma = 2 (0x2)
1409            driveA = ""
1410            driveB = ""
1411            check_media_rate = true
1412            fdtypeA = "auto"
1413            fdtypeB = "auto"
1414            fallback = "288"
1415            isa irq 6
1416            bus: floppy-bus.0
1417              type floppy-bus
1418              dev: floppy, id ""
1419                unit = 0 (0x0)
1420                drive = "none0"
1421                logical_block_size = 512 (512 B)
1422                physical_block_size = 512 (512 B)
1423                min_io_size = 0 (0 B)
1424                opt_io_size = 0 (0 B)
1425                discard_granularity = 4294967295 (4 GiB)
1426                write-cache = "auto"
1427                share-rw = false
1428                drive-type = "144"
1429none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1430    Attached to:      /machine/peripheral-anon/device[0]
1431    Removable device: not locked, tray closed
1432    Cache mode:       writeback
1433
1434ide1-cd0: [not inserted]
1435    Attached to:      /machine/unattached/device[21]
1436    Removable device: not locked, tray closed
1437
1438sd0: [not inserted]
1439    Removable device: not locked, tray closed
1440(qemu) quit
1441
1442
1443Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0 -device floppy,drive=none1,unit=0
1444QEMU_PROG: -device floppy,drive=none1,unit=0: Floppy unit 0 is in use
1445
1446Testing: -drive if=none,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=none0 -device floppy,drive=none1,unit=1
1447QEMU_PROG: -device floppy,drive=none1,unit=1: Floppy unit 1 is in use
1448
1449Testing: -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
1450
1451          dev: isa-fdc, id ""
1452            iobase = 1008 (0x3f0)
1453            irq = 6 (0x6)
1454            dma = 2 (0x2)
1455            driveA = ""
1456            driveB = ""
1457            check_media_rate = true
1458            fdtypeA = "auto"
1459            fdtypeB = "auto"
1460            fallback = "288"
1461            isa irq 6
1462            bus: floppy-bus.0
1463              type floppy-bus
1464              dev: floppy, id ""
1465                unit = 0 (0x0)
1466                drive = "none1"
1467                logical_block_size = 512 (512 B)
1468                physical_block_size = 512 (512 B)
1469                min_io_size = 0 (0 B)
1470                opt_io_size = 0 (0 B)
1471                discard_granularity = 4294967295 (4 GiB)
1472                write-cache = "auto"
1473                share-rw = false
1474                drive-type = "144"
1475none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1476    Attached to:      /machine/peripheral-anon/device[0]
1477    Cache mode:       writeback
1478
1479none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1480    Attached to:      /machine/peripheral-anon/device[0]
1481    Removable device: not locked, tray closed
1482    Cache mode:       writeback
1483
1484ide1-cd0: [not inserted]
1485    Attached to:      /machine/unattached/device[21]
1486    Removable device: not locked, tray closed
1487
1488sd0: [not inserted]
1489    Removable device: not locked, tray closed
1490(qemu) quit
1491
1492
1493
1494=== Attempt to use drive twice ===
1495
1496Testing: -drive if=none -device floppy,drive=none0 -device floppy -device floppy,drive=none0
1497QEMU_PROG: -device floppy,drive=none0: Drive 'none0' is already in use by another device
1498
1499Testing: -drive if=none -global floppy.drive=none0 -device floppy -device floppy
1500QEMU_PROG: -device floppy: can't apply global floppy.drive=none0: Drive 'none0' is already in use by another device
1501
1502Testing: -fda  -device floppy,drive=floppy0
1503QEMU_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?)
1504
1505Testing: -fda  -global floppy.drive=floppy0
1506QEMU_PROG: Drive 'floppy0' is already in use because it has been automatically connected to another device (did you need 'if=none' in the drive options?)
1507
1508Testing: -device floppy,drive=floppy0
1509QEMU_PROG: -device floppy,drive=floppy0: Property 'floppy.drive' can't find value 'floppy0'
1510
1511
1512=== Too many floppy drives ===
1513
1514Testing: -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 -global isa-fdc.driveB=none0 -device floppy,drive=none1
1515QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
1516
1517
1518=== Creating an empty drive with anonymous BB ===
1519
1520Testing: -device floppy
1521
1522          dev: isa-fdc, id ""
1523            iobase = 1008 (0x3f0)
1524            irq = 6 (0x6)
1525            dma = 2 (0x2)
1526            driveA = ""
1527            driveB = ""
1528            check_media_rate = true
1529            fdtypeA = "auto"
1530            fdtypeB = "auto"
1531            fallback = "288"
1532            isa irq 6
1533            bus: floppy-bus.0
1534              type floppy-bus
1535              dev: floppy, id ""
1536                unit = 0 (0x0)
1537                drive = ""
1538                logical_block_size = 512 (512 B)
1539                physical_block_size = 512 (512 B)
1540                min_io_size = 0 (0 B)
1541                opt_io_size = 0 (0 B)
1542                discard_granularity = 4294967295 (4 GiB)
1543                write-cache = "auto"
1544                share-rw = false
1545                drive-type = "288"
1546
1547Testing: -device floppy,drive-type=120
1548
1549          dev: isa-fdc, id ""
1550            iobase = 1008 (0x3f0)
1551            irq = 6 (0x6)
1552            dma = 2 (0x2)
1553            driveA = ""
1554            driveB = ""
1555            check_media_rate = true
1556            fdtypeA = "auto"
1557            fdtypeB = "auto"
1558            fallback = "288"
1559            isa irq 6
1560            bus: floppy-bus.0
1561              type floppy-bus
1562              dev: floppy, id ""
1563                unit = 0 (0x0)
1564                drive = ""
1565                logical_block_size = 512 (512 B)
1566                physical_block_size = 512 (512 B)
1567                min_io_size = 0 (0 B)
1568                opt_io_size = 0 (0 B)
1569                discard_granularity = 4294967295 (4 GiB)
1570                write-cache = "auto"
1571                share-rw = false
1572                drive-type = "120"
1573
1574Testing: -device floppy,drive-type=144
1575
1576          dev: isa-fdc, id ""
1577            iobase = 1008 (0x3f0)
1578            irq = 6 (0x6)
1579            dma = 2 (0x2)
1580            driveA = ""
1581            driveB = ""
1582            check_media_rate = true
1583            fdtypeA = "auto"
1584            fdtypeB = "auto"
1585            fallback = "288"
1586            isa irq 6
1587            bus: floppy-bus.0
1588              type floppy-bus
1589              dev: floppy, id ""
1590                unit = 0 (0x0)
1591                drive = ""
1592                logical_block_size = 512 (512 B)
1593                physical_block_size = 512 (512 B)
1594                min_io_size = 0 (0 B)
1595                opt_io_size = 0 (0 B)
1596                discard_granularity = 4294967295 (4 GiB)
1597                write-cache = "auto"
1598                share-rw = false
1599                drive-type = "144"
1600
1601Testing: -device floppy,drive-type=288
1602
1603          dev: isa-fdc, id ""
1604            iobase = 1008 (0x3f0)
1605            irq = 6 (0x6)
1606            dma = 2 (0x2)
1607            driveA = ""
1608            driveB = ""
1609            check_media_rate = true
1610            fdtypeA = "auto"
1611            fdtypeB = "auto"
1612            fallback = "288"
1613            isa irq 6
1614            bus: floppy-bus.0
1615              type floppy-bus
1616              dev: floppy, id ""
1617                unit = 0 (0x0)
1618                drive = ""
1619                logical_block_size = 512 (512 B)
1620                physical_block_size = 512 (512 B)
1621                min_io_size = 0 (0 B)
1622                opt_io_size = 0 (0 B)
1623                discard_granularity = 4294967295 (4 GiB)
1624                write-cache = "auto"
1625                share-rw = false
1626                drive-type = "288"
1627
1628
1629=== Try passing different drive size with image ===
1630
1631Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
1632
1633          dev: isa-fdc, id ""
1634            iobase = 1008 (0x3f0)
1635            irq = 6 (0x6)
1636            dma = 2 (0x2)
1637            driveA = ""
1638            driveB = ""
1639            check_media_rate = true
1640            fdtypeA = "auto"
1641            fdtypeB = "auto"
1642            fallback = "288"
1643            isa irq 6
1644            bus: floppy-bus.0
1645              type floppy-bus
1646              dev: floppy, id ""
1647                unit = 0 (0x0)
1648                drive = "none0"
1649                logical_block_size = 512 (512 B)
1650                physical_block_size = 512 (512 B)
1651                min_io_size = 0 (0 B)
1652                opt_io_size = 0 (0 B)
1653                discard_granularity = 4294967295 (4 GiB)
1654                write-cache = "auto"
1655                share-rw = false
1656                drive-type = "120"
1657none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1658    Attached to:      /machine/peripheral-anon/device[0]
1659    Removable device: not locked, tray closed
1660    Cache mode:       writeback
1661
1662ide1-cd0: [not inserted]
1663    Attached to:      /machine/unattached/device[21]
1664    Removable device: not locked, tray closed
1665
1666sd0: [not inserted]
1667    Removable device: not locked, tray closed
1668(qemu) quit
1669
1670
1671Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
1672
1673          dev: isa-fdc, id ""
1674            iobase = 1008 (0x3f0)
1675            irq = 6 (0x6)
1676            dma = 2 (0x2)
1677            driveA = ""
1678            driveB = ""
1679            check_media_rate = true
1680            fdtypeA = "auto"
1681            fdtypeB = "auto"
1682            fallback = "288"
1683            isa irq 6
1684            bus: floppy-bus.0
1685              type floppy-bus
1686              dev: floppy, id ""
1687                unit = 0 (0x0)
1688                drive = "none0"
1689                logical_block_size = 512 (512 B)
1690                physical_block_size = 512 (512 B)
1691                min_io_size = 0 (0 B)
1692                opt_io_size = 0 (0 B)
1693                discard_granularity = 4294967295 (4 GiB)
1694                write-cache = "auto"
1695                share-rw = false
1696                drive-type = "288"
1697none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1698    Attached to:      /machine/peripheral-anon/device[0]
1699    Removable device: not locked, tray closed
1700    Cache mode:       writeback
1701
1702ide1-cd0: [not inserted]
1703    Attached to:      /machine/unattached/device[21]
1704    Removable device: not locked, tray closed
1705
1706sd0: [not inserted]
1707    Removable device: not locked, tray closed
1708(qemu) quit
1709
1710
1711
1712=== Try passing different block sizes ===
1713
1714Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
1715
1716          dev: isa-fdc, id ""
1717            iobase = 1008 (0x3f0)
1718            irq = 6 (0x6)
1719            dma = 2 (0x2)
1720            driveA = ""
1721            driveB = ""
1722            check_media_rate = true
1723            fdtypeA = "auto"
1724            fdtypeB = "auto"
1725            fallback = "288"
1726            isa irq 6
1727            bus: floppy-bus.0
1728              type floppy-bus
1729              dev: floppy, id ""
1730                unit = 0 (0x0)
1731                drive = "none0"
1732                logical_block_size = 512 (512 B)
1733                physical_block_size = 512 (512 B)
1734                min_io_size = 0 (0 B)
1735                opt_io_size = 0 (0 B)
1736                discard_granularity = 4294967295 (4 GiB)
1737                write-cache = "auto"
1738                share-rw = false
1739                drive-type = "144"
1740none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1741    Attached to:      /machine/peripheral-anon/device[0]
1742    Removable device: not locked, tray closed
1743    Cache mode:       writeback
1744
1745ide1-cd0: [not inserted]
1746    Attached to:      /machine/unattached/device[21]
1747    Removable device: not locked, tray closed
1748
1749sd0: [not inserted]
1750    Removable device: not locked, tray closed
1751(qemu) quit
1752
1753
1754Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
1755
1756          dev: isa-fdc, id ""
1757            iobase = 1008 (0x3f0)
1758            irq = 6 (0x6)
1759            dma = 2 (0x2)
1760            driveA = ""
1761            driveB = ""
1762            check_media_rate = true
1763            fdtypeA = "auto"
1764            fdtypeB = "auto"
1765            fallback = "288"
1766            isa irq 6
1767            bus: floppy-bus.0
1768              type floppy-bus
1769              dev: floppy, id ""
1770                unit = 0 (0x0)
1771                drive = "none0"
1772                logical_block_size = 512 (512 B)
1773                physical_block_size = 512 (512 B)
1774                min_io_size = 0 (0 B)
1775                opt_io_size = 0 (0 B)
1776                discard_granularity = 4294967295 (4 GiB)
1777                write-cache = "auto"
1778                share-rw = false
1779                drive-type = "144"
1780none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1781    Attached to:      /machine/peripheral-anon/device[0]
1782    Removable device: not locked, tray closed
1783    Cache mode:       writeback
1784
1785ide1-cd0: [not inserted]
1786    Attached to:      /machine/unattached/device[21]
1787    Removable device: not locked, tray closed
1788
1789sd0: [not inserted]
1790    Removable device: not locked, tray closed
1791(qemu) quit
1792
1793
1794Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1795QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1796
1797Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1798QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1799
1800
1801=== Writethrough caching ===
1802    Cache mode:       writeback
1803    Cache mode:       writeback
1804    Cache mode:       writethrough
1805*** done
1806