xref: /qemu/tests/qemu-iotests/172.out (revision 20171739685c77d84a5694890b4e365dc2159216)
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 (0x200)
209                physical_block_size = 512 (0x200)
210                min_io_size = 0 (0x0)
211                opt_io_size = 0 (0x0)
212                discard_granularity = 4294967295 (0xffffffff)
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 (0x200)
220                physical_block_size = 512 (0x200)
221                min_io_size = 0 (0x0)
222                opt_io_size = 0 (0x0)
223                discard_granularity = 4294967295 (0xffffffff)
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 = 1 (0x1)
680                drive = "none0"
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 = 0 (0x0)
691                drive = "floppy0"
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[15]
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[16]
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
776
777          dev: isa-fdc, id ""
778            iobase = 1008 (0x3f0)
779            irq = 6 (0x6)
780            dma = 2 (0x2)
781            driveA = ""
782            driveB = ""
783            check_media_rate = true
784            fdtypeA = "auto"
785            fdtypeB = "auto"
786            fallback = "288"
787            isa irq 6
788            bus: floppy-bus.0
789              type floppy-bus
790              dev: floppy, id ""
791                unit = 0 (0x0)
792                drive = "floppy0"
793                logical_block_size = 512 (512 B)
794                physical_block_size = 512 (512 B)
795                min_io_size = 0 (0 B)
796                opt_io_size = 0 (0 B)
797                discard_granularity = 4294967295 (4 GiB)
798                write-cache = "auto"
799                share-rw = false
800                drive-type = "144"
801floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
802    Attached to:      /machine/unattached/device[15]
803    Removable device: not locked, tray closed
804    Cache mode:       writeback
805
806none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
807    Attached to:      /machine/unattached/device[14]
808    Cache mode:       writeback
809
810ide1-cd0: [not inserted]
811    Attached to:      /machine/unattached/device[22]
812    Removable device: not locked, tray closed
813
814sd0: [not inserted]
815    Removable device: not locked, tray closed
816(qemu) quit
817
818
819Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=none0
820
821          dev: isa-fdc, id ""
822            iobase = 1008 (0x3f0)
823            irq = 6 (0x6)
824            dma = 2 (0x2)
825            driveA = ""
826            driveB = ""
827            check_media_rate = true
828            fdtypeA = "auto"
829            fdtypeB = "auto"
830            fallback = "288"
831            isa irq 6
832            bus: floppy-bus.0
833              type floppy-bus
834              dev: floppy, id ""
835                unit = 1 (0x1)
836                drive = "floppy1"
837                logical_block_size = 512 (512 B)
838                physical_block_size = 512 (512 B)
839                min_io_size = 0 (0 B)
840                opt_io_size = 0 (0 B)
841                discard_granularity = 4294967295 (4 GiB)
842                write-cache = "auto"
843                share-rw = false
844                drive-type = "144"
845floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
846    Attached to:      /machine/unattached/device[15]
847    Removable device: not locked, tray closed
848    Cache mode:       writeback
849
850none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
851    Attached to:      /machine/unattached/device[14]
852    Cache mode:       writeback
853
854ide1-cd0: [not inserted]
855    Attached to:      /machine/unattached/device[22]
856    Removable device: not locked, tray closed
857
858sd0: [not inserted]
859    Removable device: not locked, tray closed
860(qemu) quit
861
862
863
864=== Mixing -fdX and -device ===
865
866Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
867
868          dev: isa-fdc, id ""
869            iobase = 1008 (0x3f0)
870            irq = 6 (0x6)
871            dma = 2 (0x2)
872            driveA = ""
873            driveB = ""
874            check_media_rate = true
875            fdtypeA = "auto"
876            fdtypeB = "auto"
877            fallback = "288"
878            isa irq 6
879            bus: floppy-bus.0
880              type floppy-bus
881              dev: floppy, id ""
882                unit = 1 (0x1)
883                drive = "none0"
884                logical_block_size = 512 (512 B)
885                physical_block_size = 512 (512 B)
886                min_io_size = 0 (0 B)
887                opt_io_size = 0 (0 B)
888                discard_granularity = 4294967295 (4 GiB)
889                write-cache = "auto"
890                share-rw = false
891                drive-type = "144"
892              dev: floppy, id ""
893                unit = 0 (0x0)
894                drive = "floppy0"
895                logical_block_size = 512 (512 B)
896                physical_block_size = 512 (512 B)
897                min_io_size = 0 (0 B)
898                opt_io_size = 0 (0 B)
899                discard_granularity = 4294967295 (4 GiB)
900                write-cache = "auto"
901                share-rw = false
902                drive-type = "144"
903floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
904    Attached to:      /machine/unattached/device[15]
905    Removable device: not locked, tray closed
906    Cache mode:       writeback
907
908none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
909    Attached to:      /machine/peripheral-anon/device[0]
910    Removable device: not locked, tray closed
911    Cache mode:       writeback
912
913ide1-cd0: [not inserted]
914    Attached to:      /machine/unattached/device[22]
915    Removable device: not locked, tray closed
916
917sd0: [not inserted]
918    Removable device: not locked, tray closed
919(qemu) quit
920
921
922Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
923
924          dev: isa-fdc, id ""
925            iobase = 1008 (0x3f0)
926            irq = 6 (0x6)
927            dma = 2 (0x2)
928            driveA = ""
929            driveB = ""
930            check_media_rate = true
931            fdtypeA = "auto"
932            fdtypeB = "auto"
933            fallback = "288"
934            isa irq 6
935            bus: floppy-bus.0
936              type floppy-bus
937              dev: floppy, id ""
938                unit = 1 (0x1)
939                drive = "none0"
940                logical_block_size = 512 (512 B)
941                physical_block_size = 512 (512 B)
942                min_io_size = 0 (0 B)
943                opt_io_size = 0 (0 B)
944                discard_granularity = 4294967295 (4 GiB)
945                write-cache = "auto"
946                share-rw = false
947                drive-type = "144"
948              dev: floppy, id ""
949                unit = 0 (0x0)
950                drive = "floppy0"
951                logical_block_size = 512 (512 B)
952                physical_block_size = 512 (512 B)
953                min_io_size = 0 (0 B)
954                opt_io_size = 0 (0 B)
955                discard_granularity = 4294967295 (4 GiB)
956                write-cache = "auto"
957                share-rw = false
958                drive-type = "144"
959floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
960    Attached to:      /machine/unattached/device[15]
961    Removable device: not locked, tray closed
962    Cache mode:       writeback
963
964none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
965    Attached to:      /machine/peripheral-anon/device[0]
966    Removable device: not locked, tray closed
967    Cache mode:       writeback
968
969ide1-cd0: [not inserted]
970    Attached to:      /machine/unattached/device[22]
971    Removable device: not locked, tray closed
972
973sd0: [not inserted]
974    Removable device: not locked, tray closed
975(qemu) quit
976
977
978Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
979
980          dev: isa-fdc, id ""
981            iobase = 1008 (0x3f0)
982            irq = 6 (0x6)
983            dma = 2 (0x2)
984            driveA = ""
985            driveB = ""
986            check_media_rate = true
987            fdtypeA = "auto"
988            fdtypeB = "auto"
989            fallback = "288"
990            isa irq 6
991            bus: floppy-bus.0
992              type floppy-bus
993              dev: floppy, id ""
994                unit = 0 (0x0)
995                drive = "none0"
996                logical_block_size = 512 (512 B)
997                physical_block_size = 512 (512 B)
998                min_io_size = 0 (0 B)
999                opt_io_size = 0 (0 B)
1000                discard_granularity = 4294967295 (4 GiB)
1001                write-cache = "auto"
1002                share-rw = false
1003                drive-type = "144"
1004              dev: floppy, id ""
1005                unit = 1 (0x1)
1006                drive = "floppy1"
1007                logical_block_size = 512 (512 B)
1008                physical_block_size = 512 (512 B)
1009                min_io_size = 0 (0 B)
1010                opt_io_size = 0 (0 B)
1011                discard_granularity = 4294967295 (4 GiB)
1012                write-cache = "auto"
1013                share-rw = false
1014                drive-type = "144"
1015floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1016    Attached to:      /machine/unattached/device[15]
1017    Removable device: not locked, tray closed
1018    Cache mode:       writeback
1019
1020none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1021    Attached to:      /machine/peripheral-anon/device[0]
1022    Removable device: not locked, tray closed
1023    Cache mode:       writeback
1024
1025ide1-cd0: [not inserted]
1026    Attached to:      /machine/unattached/device[22]
1027    Removable device: not locked, tray closed
1028
1029sd0: [not inserted]
1030    Removable device: not locked, tray closed
1031(qemu) quit
1032
1033
1034Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
1035
1036          dev: isa-fdc, id ""
1037            iobase = 1008 (0x3f0)
1038            irq = 6 (0x6)
1039            dma = 2 (0x2)
1040            driveA = ""
1041            driveB = ""
1042            check_media_rate = true
1043            fdtypeA = "auto"
1044            fdtypeB = "auto"
1045            fallback = "288"
1046            isa irq 6
1047            bus: floppy-bus.0
1048              type floppy-bus
1049              dev: floppy, id ""
1050                unit = 0 (0x0)
1051                drive = "none0"
1052                logical_block_size = 512 (512 B)
1053                physical_block_size = 512 (512 B)
1054                min_io_size = 0 (0 B)
1055                opt_io_size = 0 (0 B)
1056                discard_granularity = 4294967295 (4 GiB)
1057                write-cache = "auto"
1058                share-rw = false
1059                drive-type = "144"
1060              dev: floppy, id ""
1061                unit = 1 (0x1)
1062                drive = "floppy1"
1063                logical_block_size = 512 (512 B)
1064                physical_block_size = 512 (512 B)
1065                min_io_size = 0 (0 B)
1066                opt_io_size = 0 (0 B)
1067                discard_granularity = 4294967295 (4 GiB)
1068                write-cache = "auto"
1069                share-rw = false
1070                drive-type = "144"
1071floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1072    Attached to:      /machine/unattached/device[15]
1073    Removable device: not locked, tray closed
1074    Cache mode:       writeback
1075
1076none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1077    Attached to:      /machine/peripheral-anon/device[0]
1078    Removable device: not locked, tray closed
1079    Cache mode:       writeback
1080
1081ide1-cd0: [not inserted]
1082    Attached to:      /machine/unattached/device[22]
1083    Removable device: not locked, tray closed
1084
1085sd0: [not inserted]
1086    Removable device: not locked, tray closed
1087(qemu) quit
1088
1089
1090Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
1091QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
1092
1093Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
1094QEMU_PROG: -device floppy,drive=none0,unit=1: Floppy unit 1 is in use
1095
1096
1097=== Mixing -drive and -device ===
1098
1099Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
1100
1101          dev: isa-fdc, id ""
1102            iobase = 1008 (0x3f0)
1103            irq = 6 (0x6)
1104            dma = 2 (0x2)
1105            driveA = ""
1106            driveB = ""
1107            check_media_rate = true
1108            fdtypeA = "auto"
1109            fdtypeB = "auto"
1110            fallback = "288"
1111            isa irq 6
1112            bus: floppy-bus.0
1113              type floppy-bus
1114              dev: floppy, id ""
1115                unit = 1 (0x1)
1116                drive = "none0"
1117                logical_block_size = 512 (512 B)
1118                physical_block_size = 512 (512 B)
1119                min_io_size = 0 (0 B)
1120                opt_io_size = 0 (0 B)
1121                discard_granularity = 4294967295 (4 GiB)
1122                write-cache = "auto"
1123                share-rw = false
1124                drive-type = "144"
1125              dev: floppy, id ""
1126                unit = 0 (0x0)
1127                drive = "floppy0"
1128                logical_block_size = 512 (512 B)
1129                physical_block_size = 512 (512 B)
1130                min_io_size = 0 (0 B)
1131                opt_io_size = 0 (0 B)
1132                discard_granularity = 4294967295 (4 GiB)
1133                write-cache = "auto"
1134                share-rw = false
1135                drive-type = "144"
1136floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1137    Attached to:      /machine/unattached/device[15]
1138    Removable device: not locked, tray closed
1139    Cache mode:       writeback
1140
1141none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1142    Attached to:      /machine/peripheral-anon/device[0]
1143    Removable device: not locked, tray closed
1144    Cache mode:       writeback
1145
1146ide1-cd0: [not inserted]
1147    Attached to:      /machine/unattached/device[22]
1148    Removable device: not locked, tray closed
1149
1150sd0: [not inserted]
1151    Removable device: not locked, tray closed
1152(qemu) quit
1153
1154
1155Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
1156
1157          dev: isa-fdc, id ""
1158            iobase = 1008 (0x3f0)
1159            irq = 6 (0x6)
1160            dma = 2 (0x2)
1161            driveA = ""
1162            driveB = ""
1163            check_media_rate = true
1164            fdtypeA = "auto"
1165            fdtypeB = "auto"
1166            fallback = "288"
1167            isa irq 6
1168            bus: floppy-bus.0
1169              type floppy-bus
1170              dev: floppy, id ""
1171                unit = 1 (0x1)
1172                drive = "none0"
1173                logical_block_size = 512 (512 B)
1174                physical_block_size = 512 (512 B)
1175                min_io_size = 0 (0 B)
1176                opt_io_size = 0 (0 B)
1177                discard_granularity = 4294967295 (4 GiB)
1178                write-cache = "auto"
1179                share-rw = false
1180                drive-type = "144"
1181              dev: floppy, id ""
1182                unit = 0 (0x0)
1183                drive = "floppy0"
1184                logical_block_size = 512 (512 B)
1185                physical_block_size = 512 (512 B)
1186                min_io_size = 0 (0 B)
1187                opt_io_size = 0 (0 B)
1188                discard_granularity = 4294967295 (4 GiB)
1189                write-cache = "auto"
1190                share-rw = false
1191                drive-type = "144"
1192floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1193    Attached to:      /machine/unattached/device[15]
1194    Removable device: not locked, tray closed
1195    Cache mode:       writeback
1196
1197none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1198    Attached to:      /machine/peripheral-anon/device[0]
1199    Removable device: not locked, tray closed
1200    Cache mode:       writeback
1201
1202ide1-cd0: [not inserted]
1203    Attached to:      /machine/unattached/device[22]
1204    Removable device: not locked, tray closed
1205
1206sd0: [not inserted]
1207    Removable device: not locked, tray closed
1208(qemu) quit
1209
1210
1211Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
1212QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
1213
1214
1215=== Mixing -global and -device ===
1216
1217Testing: -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
1218
1219          dev: isa-fdc, id ""
1220            iobase = 1008 (0x3f0)
1221            irq = 6 (0x6)
1222            dma = 2 (0x2)
1223            driveA = ""
1224            driveB = ""
1225            check_media_rate = true
1226            fdtypeA = "auto"
1227            fdtypeB = "auto"
1228            fallback = "288"
1229            isa irq 6
1230            bus: floppy-bus.0
1231              type floppy-bus
1232              dev: floppy, id ""
1233                unit = 1 (0x1)
1234                drive = "none1"
1235                logical_block_size = 512 (512 B)
1236                physical_block_size = 512 (512 B)
1237                min_io_size = 0 (0 B)
1238                opt_io_size = 0 (0 B)
1239                discard_granularity = 4294967295 (4 GiB)
1240                write-cache = "auto"
1241                share-rw = false
1242                drive-type = "144"
1243              dev: floppy, id ""
1244                unit = 0 (0x0)
1245                drive = "none0"
1246                logical_block_size = 512 (512 B)
1247                physical_block_size = 512 (512 B)
1248                min_io_size = 0 (0 B)
1249                opt_io_size = 0 (0 B)
1250                discard_granularity = 4294967295 (4 GiB)
1251                write-cache = "auto"
1252                share-rw = false
1253                drive-type = "144"
1254none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1255    Attached to:      /machine/unattached/device[15]
1256    Removable device: not locked, tray closed
1257    Cache mode:       writeback
1258
1259none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1260    Attached to:      /machine/peripheral-anon/device[0]
1261    Removable device: not locked, tray closed
1262    Cache mode:       writeback
1263
1264ide1-cd0: [not inserted]
1265    Attached to:      /machine/unattached/device[22]
1266    Removable device: not locked, tray closed
1267
1268sd0: [not inserted]
1269    Removable device: not locked, tray closed
1270(qemu) quit
1271
1272
1273Testing: -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
1274
1275          dev: isa-fdc, id ""
1276            iobase = 1008 (0x3f0)
1277            irq = 6 (0x6)
1278            dma = 2 (0x2)
1279            driveA = ""
1280            driveB = ""
1281            check_media_rate = true
1282            fdtypeA = "auto"
1283            fdtypeB = "auto"
1284            fallback = "288"
1285            isa irq 6
1286            bus: floppy-bus.0
1287              type floppy-bus
1288              dev: floppy, id ""
1289                unit = 1 (0x1)
1290                drive = "none1"
1291                logical_block_size = 512 (512 B)
1292                physical_block_size = 512 (512 B)
1293                min_io_size = 0 (0 B)
1294                opt_io_size = 0 (0 B)
1295                discard_granularity = 4294967295 (4 GiB)
1296                write-cache = "auto"
1297                share-rw = false
1298                drive-type = "144"
1299              dev: floppy, id ""
1300                unit = 0 (0x0)
1301                drive = "none0"
1302                logical_block_size = 512 (512 B)
1303                physical_block_size = 512 (512 B)
1304                min_io_size = 0 (0 B)
1305                opt_io_size = 0 (0 B)
1306                discard_granularity = 4294967295 (4 GiB)
1307                write-cache = "auto"
1308                share-rw = false
1309                drive-type = "144"
1310none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1311    Attached to:      /machine/unattached/device[15]
1312    Removable device: not locked, tray closed
1313    Cache mode:       writeback
1314
1315none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1316    Attached to:      /machine/peripheral-anon/device[0]
1317    Removable device: not locked, tray closed
1318    Cache mode:       writeback
1319
1320ide1-cd0: [not inserted]
1321    Attached to:      /machine/unattached/device[22]
1322    Removable device: not locked, tray closed
1323
1324sd0: [not inserted]
1325    Removable device: not locked, tray closed
1326(qemu) quit
1327
1328
1329Testing: -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
1330
1331          dev: isa-fdc, id ""
1332            iobase = 1008 (0x3f0)
1333            irq = 6 (0x6)
1334            dma = 2 (0x2)
1335            driveA = ""
1336            driveB = ""
1337            check_media_rate = true
1338            fdtypeA = "auto"
1339            fdtypeB = "auto"
1340            fallback = "288"
1341            isa irq 6
1342            bus: floppy-bus.0
1343              type floppy-bus
1344              dev: floppy, id ""
1345                unit = 0 (0x0)
1346                drive = "none1"
1347                logical_block_size = 512 (512 B)
1348                physical_block_size = 512 (512 B)
1349                min_io_size = 0 (0 B)
1350                opt_io_size = 0 (0 B)
1351                discard_granularity = 4294967295 (4 GiB)
1352                write-cache = "auto"
1353                share-rw = false
1354                drive-type = "144"
1355              dev: floppy, id ""
1356                unit = 1 (0x1)
1357                drive = "none0"
1358                logical_block_size = 512 (512 B)
1359                physical_block_size = 512 (512 B)
1360                min_io_size = 0 (0 B)
1361                opt_io_size = 0 (0 B)
1362                discard_granularity = 4294967295 (4 GiB)
1363                write-cache = "auto"
1364                share-rw = false
1365                drive-type = "144"
1366none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1367    Attached to:      /machine/unattached/device[15]
1368    Removable device: not locked, tray closed
1369    Cache mode:       writeback
1370
1371none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1372    Attached to:      /machine/peripheral-anon/device[0]
1373    Removable device: not locked, tray closed
1374    Cache mode:       writeback
1375
1376ide1-cd0: [not inserted]
1377    Attached to:      /machine/unattached/device[22]
1378    Removable device: not locked, tray closed
1379
1380sd0: [not inserted]
1381    Removable device: not locked, tray closed
1382(qemu) quit
1383
1384
1385Testing: -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
1386
1387          dev: isa-fdc, id ""
1388            iobase = 1008 (0x3f0)
1389            irq = 6 (0x6)
1390            dma = 2 (0x2)
1391            driveA = ""
1392            driveB = ""
1393            check_media_rate = true
1394            fdtypeA = "auto"
1395            fdtypeB = "auto"
1396            fallback = "288"
1397            isa irq 6
1398            bus: floppy-bus.0
1399              type floppy-bus
1400              dev: floppy, id ""
1401                unit = 0 (0x0)
1402                drive = "none1"
1403                logical_block_size = 512 (512 B)
1404                physical_block_size = 512 (512 B)
1405                min_io_size = 0 (0 B)
1406                opt_io_size = 0 (0 B)
1407                discard_granularity = 4294967295 (4 GiB)
1408                write-cache = "auto"
1409                share-rw = false
1410                drive-type = "144"
1411              dev: floppy, id ""
1412                unit = 1 (0x1)
1413                drive = "none0"
1414                logical_block_size = 512 (512 B)
1415                physical_block_size = 512 (512 B)
1416                min_io_size = 0 (0 B)
1417                opt_io_size = 0 (0 B)
1418                discard_granularity = 4294967295 (4 GiB)
1419                write-cache = "auto"
1420                share-rw = false
1421                drive-type = "144"
1422none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1423    Attached to:      /machine/unattached/device[15]
1424    Removable device: not locked, tray closed
1425    Cache mode:       writeback
1426
1427none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
1428    Attached to:      /machine/peripheral-anon/device[0]
1429    Removable device: not locked, tray closed
1430    Cache mode:       writeback
1431
1432ide1-cd0: [not inserted]
1433    Attached to:      /machine/unattached/device[22]
1434    Removable device: not locked, tray closed
1435
1436sd0: [not inserted]
1437    Removable device: not locked, tray closed
1438(qemu) quit
1439
1440
1441Testing: -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
1442QEMU_PROG: -device floppy,drive=none1,unit=0: Floppy unit 0 is in use
1443
1444Testing: -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
1445QEMU_PROG: -device floppy,drive=none1,unit=1: Floppy unit 1 is in use
1446
1447
1448=== Attempt to use drive twice ===
1449
1450Testing: -drive if=none -device floppy,drive=none0 -device floppy -device floppy,drive=none0
1451QEMU_PROG: -device floppy,drive=none0: Drive 'none0' is already in use by another device
1452
1453Testing: -fda  -device floppy,drive=floppy0
1454QEMU_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?)
1455
1456Testing: -device floppy,drive=floppy0
1457QEMU_PROG: -device floppy,drive=floppy0: Property 'floppy.drive' can't find value 'floppy0'
1458
1459
1460=== Too many floppy drives ===
1461
1462Testing: -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
1463QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
1464
1465
1466=== Creating an empty drive with anonymous BB ===
1467
1468Testing: -device floppy
1469
1470          dev: isa-fdc, id ""
1471            iobase = 1008 (0x3f0)
1472            irq = 6 (0x6)
1473            dma = 2 (0x2)
1474            driveA = ""
1475            driveB = ""
1476            check_media_rate = true
1477            fdtypeA = "auto"
1478            fdtypeB = "auto"
1479            fallback = "288"
1480            isa irq 6
1481            bus: floppy-bus.0
1482              type floppy-bus
1483              dev: floppy, id ""
1484                unit = 0 (0x0)
1485                drive = ""
1486                logical_block_size = 512 (512 B)
1487                physical_block_size = 512 (512 B)
1488                min_io_size = 0 (0 B)
1489                opt_io_size = 0 (0 B)
1490                discard_granularity = 4294967295 (4 GiB)
1491                write-cache = "auto"
1492                share-rw = false
1493                drive-type = "288"
1494
1495Testing: -device floppy,drive-type=120
1496
1497          dev: isa-fdc, id ""
1498            iobase = 1008 (0x3f0)
1499            irq = 6 (0x6)
1500            dma = 2 (0x2)
1501            driveA = ""
1502            driveB = ""
1503            check_media_rate = true
1504            fdtypeA = "auto"
1505            fdtypeB = "auto"
1506            fallback = "288"
1507            isa irq 6
1508            bus: floppy-bus.0
1509              type floppy-bus
1510              dev: floppy, id ""
1511                unit = 0 (0x0)
1512                drive = ""
1513                logical_block_size = 512 (512 B)
1514                physical_block_size = 512 (512 B)
1515                min_io_size = 0 (0 B)
1516                opt_io_size = 0 (0 B)
1517                discard_granularity = 4294967295 (4 GiB)
1518                write-cache = "auto"
1519                share-rw = false
1520                drive-type = "120"
1521
1522Testing: -device floppy,drive-type=144
1523
1524          dev: isa-fdc, id ""
1525            iobase = 1008 (0x3f0)
1526            irq = 6 (0x6)
1527            dma = 2 (0x2)
1528            driveA = ""
1529            driveB = ""
1530            check_media_rate = true
1531            fdtypeA = "auto"
1532            fdtypeB = "auto"
1533            fallback = "288"
1534            isa irq 6
1535            bus: floppy-bus.0
1536              type floppy-bus
1537              dev: floppy, id ""
1538                unit = 0 (0x0)
1539                drive = ""
1540                logical_block_size = 512 (512 B)
1541                physical_block_size = 512 (512 B)
1542                min_io_size = 0 (0 B)
1543                opt_io_size = 0 (0 B)
1544                discard_granularity = 4294967295 (4 GiB)
1545                write-cache = "auto"
1546                share-rw = false
1547                drive-type = "144"
1548
1549Testing: -device floppy,drive-type=288
1550
1551          dev: isa-fdc, id ""
1552            iobase = 1008 (0x3f0)
1553            irq = 6 (0x6)
1554            dma = 2 (0x2)
1555            driveA = ""
1556            driveB = ""
1557            check_media_rate = true
1558            fdtypeA = "auto"
1559            fdtypeB = "auto"
1560            fallback = "288"
1561            isa irq 6
1562            bus: floppy-bus.0
1563              type floppy-bus
1564              dev: floppy, id ""
1565                unit = 0 (0x0)
1566                drive = ""
1567                logical_block_size = 512 (512 B)
1568                physical_block_size = 512 (512 B)
1569                min_io_size = 0 (0 B)
1570                opt_io_size = 0 (0 B)
1571                discard_granularity = 4294967295 (4 GiB)
1572                write-cache = "auto"
1573                share-rw = false
1574                drive-type = "288"
1575
1576
1577=== Try passing different drive size with image ===
1578
1579Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
1580
1581          dev: isa-fdc, id ""
1582            iobase = 1008 (0x3f0)
1583            irq = 6 (0x6)
1584            dma = 2 (0x2)
1585            driveA = ""
1586            driveB = ""
1587            check_media_rate = true
1588            fdtypeA = "auto"
1589            fdtypeB = "auto"
1590            fallback = "288"
1591            isa irq 6
1592            bus: floppy-bus.0
1593              type floppy-bus
1594              dev: floppy, id ""
1595                unit = 0 (0x0)
1596                drive = "none0"
1597                logical_block_size = 512 (512 B)
1598                physical_block_size = 512 (512 B)
1599                min_io_size = 0 (0 B)
1600                opt_io_size = 0 (0 B)
1601                discard_granularity = 4294967295 (4 GiB)
1602                write-cache = "auto"
1603                share-rw = false
1604                drive-type = "120"
1605none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1606    Attached to:      /machine/peripheral-anon/device[0]
1607    Removable device: not locked, tray closed
1608    Cache mode:       writeback
1609
1610ide1-cd0: [not inserted]
1611    Attached to:      /machine/unattached/device[21]
1612    Removable device: not locked, tray closed
1613
1614sd0: [not inserted]
1615    Removable device: not locked, tray closed
1616(qemu) quit
1617
1618
1619Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
1620
1621          dev: isa-fdc, id ""
1622            iobase = 1008 (0x3f0)
1623            irq = 6 (0x6)
1624            dma = 2 (0x2)
1625            driveA = ""
1626            driveB = ""
1627            check_media_rate = true
1628            fdtypeA = "auto"
1629            fdtypeB = "auto"
1630            fallback = "288"
1631            isa irq 6
1632            bus: floppy-bus.0
1633              type floppy-bus
1634              dev: floppy, id ""
1635                unit = 0 (0x0)
1636                drive = "none0"
1637                logical_block_size = 512 (512 B)
1638                physical_block_size = 512 (512 B)
1639                min_io_size = 0 (0 B)
1640                opt_io_size = 0 (0 B)
1641                discard_granularity = 4294967295 (4 GiB)
1642                write-cache = "auto"
1643                share-rw = false
1644                drive-type = "288"
1645none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1646    Attached to:      /machine/peripheral-anon/device[0]
1647    Removable device: not locked, tray closed
1648    Cache mode:       writeback
1649
1650ide1-cd0: [not inserted]
1651    Attached to:      /machine/unattached/device[21]
1652    Removable device: not locked, tray closed
1653
1654sd0: [not inserted]
1655    Removable device: not locked, tray closed
1656(qemu) quit
1657
1658
1659
1660=== Try passing different block sizes ===
1661
1662Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
1663
1664          dev: isa-fdc, id ""
1665            iobase = 1008 (0x3f0)
1666            irq = 6 (0x6)
1667            dma = 2 (0x2)
1668            driveA = ""
1669            driveB = ""
1670            check_media_rate = true
1671            fdtypeA = "auto"
1672            fdtypeB = "auto"
1673            fallback = "288"
1674            isa irq 6
1675            bus: floppy-bus.0
1676              type floppy-bus
1677              dev: floppy, id ""
1678                unit = 0 (0x0)
1679                drive = "none0"
1680                logical_block_size = 512 (512 B)
1681                physical_block_size = 512 (512 B)
1682                min_io_size = 0 (0 B)
1683                opt_io_size = 0 (0 B)
1684                discard_granularity = 4294967295 (4 GiB)
1685                write-cache = "auto"
1686                share-rw = false
1687                drive-type = "144"
1688none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1689    Attached to:      /machine/peripheral-anon/device[0]
1690    Removable device: not locked, tray closed
1691    Cache mode:       writeback
1692
1693ide1-cd0: [not inserted]
1694    Attached to:      /machine/unattached/device[21]
1695    Removable device: not locked, tray closed
1696
1697sd0: [not inserted]
1698    Removable device: not locked, tray closed
1699(qemu) quit
1700
1701
1702Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
1703
1704          dev: isa-fdc, id ""
1705            iobase = 1008 (0x3f0)
1706            irq = 6 (0x6)
1707            dma = 2 (0x2)
1708            driveA = ""
1709            driveB = ""
1710            check_media_rate = true
1711            fdtypeA = "auto"
1712            fdtypeB = "auto"
1713            fallback = "288"
1714            isa irq 6
1715            bus: floppy-bus.0
1716              type floppy-bus
1717              dev: floppy, id ""
1718                unit = 0 (0x0)
1719                drive = "none0"
1720                logical_block_size = 512 (512 B)
1721                physical_block_size = 512 (512 B)
1722                min_io_size = 0 (0 B)
1723                opt_io_size = 0 (0 B)
1724                discard_granularity = 4294967295 (4 GiB)
1725                write-cache = "auto"
1726                share-rw = false
1727                drive-type = "144"
1728none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1729    Attached to:      /machine/peripheral-anon/device[0]
1730    Removable device: not locked, tray closed
1731    Cache mode:       writeback
1732
1733ide1-cd0: [not inserted]
1734    Attached to:      /machine/unattached/device[21]
1735    Removable device: not locked, tray closed
1736
1737sd0: [not inserted]
1738    Removable device: not locked, tray closed
1739(qemu) quit
1740
1741
1742Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1743QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1744
1745Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1746QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1747
1748
1749=== Writethrough caching ===
1750    Cache mode:       writeback
1751    Cache mode:       writeback
1752    Cache mode:       writethrough
1753*** done
1754