xref: /qemu/tests/qemu-iotests/172.out (revision 6a1a643301417381b1eefc324f6fe9e8cff48840)
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
190
191=== Using -drive options ===
192
193Testing: -drive if=floppy,file=TEST_DIR/t.qcow2
194
195          dev: isa-fdc, id ""
196            iobase = 1008 (0x3f0)
197            irq = 6 (0x6)
198            dma = 2 (0x2)
199            driveA = ""
200            driveB = ""
201            check_media_rate = true
202            fdtypeA = "auto"
203            fdtypeB = "auto"
204            fallback = "288"
205            isa irq 6
206            bus: floppy-bus.0
207              type floppy-bus
208              dev: floppy, id ""
209                unit = 0 (0x0)
210                drive = "floppy0"
211                logical_block_size = 512 (512 B)
212                physical_block_size = 512 (512 B)
213                min_io_size = 0 (0 B)
214                opt_io_size = 0 (0 B)
215                discard_granularity = 4294967295 (4 GiB)
216                write-cache = "auto"
217                share-rw = false
218                drive-type = "144"
219floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
220    Attached to:      /machine/unattached/device[15]
221    Removable device: not locked, tray closed
222    Cache mode:       writeback
223
224ide1-cd0: [not inserted]
225    Attached to:      /machine/unattached/device[22]
226    Removable device: not locked, tray closed
227
228sd0: [not inserted]
229    Removable device: not locked, tray closed
230(qemu) quit
231
232
233Testing: -drive if=floppy,file=TEST_DIR/t.qcow2,index=1
234
235          dev: isa-fdc, id ""
236            iobase = 1008 (0x3f0)
237            irq = 6 (0x6)
238            dma = 2 (0x2)
239            driveA = ""
240            driveB = ""
241            check_media_rate = true
242            fdtypeA = "auto"
243            fdtypeB = "auto"
244            fallback = "288"
245            isa irq 6
246            bus: floppy-bus.0
247              type floppy-bus
248              dev: floppy, id ""
249                unit = 1 (0x1)
250                drive = "floppy1"
251                logical_block_size = 512 (512 B)
252                physical_block_size = 512 (512 B)
253                min_io_size = 0 (0 B)
254                opt_io_size = 0 (0 B)
255                discard_granularity = 4294967295 (4 GiB)
256                write-cache = "auto"
257                share-rw = false
258                drive-type = "144"
259              dev: floppy, id ""
260                unit = 0 (0x0)
261                drive = "floppy0"
262                logical_block_size = 512 (512 B)
263                physical_block_size = 512 (512 B)
264                min_io_size = 0 (0 B)
265                opt_io_size = 0 (0 B)
266                discard_granularity = 4294967295 (4 GiB)
267                write-cache = "auto"
268                share-rw = false
269                drive-type = "288"
270floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
271    Attached to:      /machine/unattached/device[16]
272    Removable device: not locked, tray closed
273    Cache mode:       writeback
274
275ide1-cd0: [not inserted]
276    Attached to:      /machine/unattached/device[23]
277    Removable device: not locked, tray closed
278
279floppy0: [not inserted]
280    Attached to:      /machine/unattached/device[15]
281    Removable device: not locked, tray closed
282
283sd0: [not inserted]
284    Removable device: not locked, tray closed
285(qemu) quit
286
287
288Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=floppy,file=TEST_DIR/t.qcow2.2,index=1
289
290          dev: isa-fdc, id ""
291            iobase = 1008 (0x3f0)
292            irq = 6 (0x6)
293            dma = 2 (0x2)
294            driveA = ""
295            driveB = ""
296            check_media_rate = true
297            fdtypeA = "auto"
298            fdtypeB = "auto"
299            fallback = "288"
300            isa irq 6
301            bus: floppy-bus.0
302              type floppy-bus
303              dev: floppy, id ""
304                unit = 1 (0x1)
305                drive = "floppy1"
306                logical_block_size = 512 (512 B)
307                physical_block_size = 512 (512 B)
308                min_io_size = 0 (0 B)
309                opt_io_size = 0 (0 B)
310                discard_granularity = 4294967295 (4 GiB)
311                write-cache = "auto"
312                share-rw = false
313                drive-type = "144"
314              dev: floppy, id ""
315                unit = 0 (0x0)
316                drive = "floppy0"
317                logical_block_size = 512 (512 B)
318                physical_block_size = 512 (512 B)
319                min_io_size = 0 (0 B)
320                opt_io_size = 0 (0 B)
321                discard_granularity = 4294967295 (4 GiB)
322                write-cache = "auto"
323                share-rw = false
324                drive-type = "144"
325floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
326    Attached to:      /machine/unattached/device[15]
327    Removable device: not locked, tray closed
328    Cache mode:       writeback
329
330floppy1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
331    Attached to:      /machine/unattached/device[16]
332    Removable device: not locked, tray closed
333    Cache mode:       writeback
334
335ide1-cd0: [not inserted]
336    Attached to:      /machine/unattached/device[23]
337    Removable device: not locked, tray closed
338
339sd0: [not inserted]
340    Removable device: not locked, tray closed
341(qemu) quit
342
343
344
345=== Using -drive if=none and -global ===
346
347Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global isa-fdc.driveA=none0
348
349          dev: isa-fdc, id ""
350            iobase = 1008 (0x3f0)
351            irq = 6 (0x6)
352            dma = 2 (0x2)
353            driveA = ""
354            driveB = ""
355            check_media_rate = true
356            fdtypeA = "auto"
357            fdtypeB = "auto"
358            fallback = "288"
359            isa irq 6
360            bus: floppy-bus.0
361              type floppy-bus
362              dev: floppy, id ""
363                unit = 0 (0x0)
364                drive = "none0"
365                logical_block_size = 512 (512 B)
366                physical_block_size = 512 (512 B)
367                min_io_size = 0 (0 B)
368                opt_io_size = 0 (0 B)
369                discard_granularity = 4294967295 (4 GiB)
370                write-cache = "auto"
371                share-rw = false
372                drive-type = "144"
373none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
374    Attached to:      /machine/unattached/device[15]
375    Removable device: not locked, tray closed
376    Cache mode:       writeback
377
378ide1-cd0: [not inserted]
379    Attached to:      /machine/unattached/device[22]
380    Removable device: not locked, tray closed
381
382sd0: [not inserted]
383    Removable device: not locked, tray closed
384(qemu) quit
385
386
387Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global isa-fdc.driveB=none0
388
389          dev: isa-fdc, id ""
390            iobase = 1008 (0x3f0)
391            irq = 6 (0x6)
392            dma = 2 (0x2)
393            driveA = ""
394            driveB = ""
395            check_media_rate = true
396            fdtypeA = "auto"
397            fdtypeB = "auto"
398            fallback = "288"
399            isa irq 6
400            bus: floppy-bus.0
401              type floppy-bus
402              dev: floppy, id ""
403                unit = 1 (0x1)
404                drive = "none0"
405                logical_block_size = 512 (512 B)
406                physical_block_size = 512 (512 B)
407                min_io_size = 0 (0 B)
408                opt_io_size = 0 (0 B)
409                discard_granularity = 4294967295 (4 GiB)
410                write-cache = "auto"
411                share-rw = false
412                drive-type = "144"
413none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
414    Attached to:      /machine/unattached/device[15]
415    Removable device: not locked, tray closed
416    Cache mode:       writeback
417
418ide1-cd0: [not inserted]
419    Attached to:      /machine/unattached/device[22]
420    Removable device: not locked, tray closed
421
422sd0: [not inserted]
423    Removable device: not locked, tray closed
424(qemu) quit
425
426
427Testing: -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
428
429          dev: isa-fdc, id ""
430            iobase = 1008 (0x3f0)
431            irq = 6 (0x6)
432            dma = 2 (0x2)
433            driveA = ""
434            driveB = ""
435            check_media_rate = true
436            fdtypeA = "auto"
437            fdtypeB = "auto"
438            fallback = "288"
439            isa irq 6
440            bus: floppy-bus.0
441              type floppy-bus
442              dev: floppy, id ""
443                unit = 1 (0x1)
444                drive = "none1"
445                logical_block_size = 512 (512 B)
446                physical_block_size = 512 (512 B)
447                min_io_size = 0 (0 B)
448                opt_io_size = 0 (0 B)
449                discard_granularity = 4294967295 (4 GiB)
450                write-cache = "auto"
451                share-rw = false
452                drive-type = "144"
453              dev: floppy, id ""
454                unit = 0 (0x0)
455                drive = "none0"
456                logical_block_size = 512 (512 B)
457                physical_block_size = 512 (512 B)
458                min_io_size = 0 (0 B)
459                opt_io_size = 0 (0 B)
460                discard_granularity = 4294967295 (4 GiB)
461                write-cache = "auto"
462                share-rw = false
463                drive-type = "144"
464none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
465    Attached to:      /machine/unattached/device[15]
466    Removable device: not locked, tray closed
467    Cache mode:       writeback
468
469none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
470    Attached to:      /machine/unattached/device[16]
471    Removable device: not locked, tray closed
472    Cache mode:       writeback
473
474ide1-cd0: [not inserted]
475    Attached to:      /machine/unattached/device[23]
476    Removable device: not locked, tray closed
477
478sd0: [not inserted]
479    Removable device: not locked, tray closed
480(qemu) quit
481
482
483
484=== Using -drive if=none and -device ===
485
486Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0
487
488          dev: isa-fdc, id ""
489            iobase = 1008 (0x3f0)
490            irq = 6 (0x6)
491            dma = 2 (0x2)
492            driveA = ""
493            driveB = ""
494            check_media_rate = true
495            fdtypeA = "auto"
496            fdtypeB = "auto"
497            fallback = "288"
498            isa irq 6
499            bus: floppy-bus.0
500              type floppy-bus
501              dev: floppy, id ""
502                unit = 0 (0x0)
503                drive = "none0"
504                logical_block_size = 512 (512 B)
505                physical_block_size = 512 (512 B)
506                min_io_size = 0 (0 B)
507                opt_io_size = 0 (0 B)
508                discard_granularity = 4294967295 (4 GiB)
509                write-cache = "auto"
510                share-rw = false
511                drive-type = "144"
512none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
513    Attached to:      /machine/peripheral-anon/device[0]
514    Removable device: not locked, tray closed
515    Cache mode:       writeback
516
517ide1-cd0: [not inserted]
518    Attached to:      /machine/unattached/device[21]
519    Removable device: not locked, tray closed
520
521sd0: [not inserted]
522    Removable device: not locked, tray closed
523(qemu) quit
524
525
526Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,unit=1
527
528          dev: isa-fdc, id ""
529            iobase = 1008 (0x3f0)
530            irq = 6 (0x6)
531            dma = 2 (0x2)
532            driveA = ""
533            driveB = ""
534            check_media_rate = true
535            fdtypeA = "auto"
536            fdtypeB = "auto"
537            fallback = "288"
538            isa irq 6
539            bus: floppy-bus.0
540              type floppy-bus
541              dev: floppy, id ""
542                unit = 1 (0x1)
543                drive = "none0"
544                logical_block_size = 512 (512 B)
545                physical_block_size = 512 (512 B)
546                min_io_size = 0 (0 B)
547                opt_io_size = 0 (0 B)
548                discard_granularity = 4294967295 (4 GiB)
549                write-cache = "auto"
550                share-rw = false
551                drive-type = "144"
552none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
553    Attached to:      /machine/peripheral-anon/device[0]
554    Removable device: not locked, tray closed
555    Cache mode:       writeback
556
557ide1-cd0: [not inserted]
558    Attached to:      /machine/unattached/device[21]
559    Removable device: not locked, tray closed
560
561sd0: [not inserted]
562    Removable device: not locked, tray closed
563(qemu) quit
564
565
566Testing: -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
567
568          dev: isa-fdc, id ""
569            iobase = 1008 (0x3f0)
570            irq = 6 (0x6)
571            dma = 2 (0x2)
572            driveA = ""
573            driveB = ""
574            check_media_rate = true
575            fdtypeA = "auto"
576            fdtypeB = "auto"
577            fallback = "288"
578            isa irq 6
579            bus: floppy-bus.0
580              type floppy-bus
581              dev: floppy, id ""
582                unit = 1 (0x1)
583                drive = "none1"
584                logical_block_size = 512 (512 B)
585                physical_block_size = 512 (512 B)
586                min_io_size = 0 (0 B)
587                opt_io_size = 0 (0 B)
588                discard_granularity = 4294967295 (4 GiB)
589                write-cache = "auto"
590                share-rw = false
591                drive-type = "144"
592              dev: floppy, id ""
593                unit = 0 (0x0)
594                drive = "none0"
595                logical_block_size = 512 (512 B)
596                physical_block_size = 512 (512 B)
597                min_io_size = 0 (0 B)
598                opt_io_size = 0 (0 B)
599                discard_granularity = 4294967295 (4 GiB)
600                write-cache = "auto"
601                share-rw = false
602                drive-type = "144"
603none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
604    Attached to:      /machine/peripheral-anon/device[0]
605    Removable device: not locked, tray closed
606    Cache mode:       writeback
607
608none1 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
609    Attached to:      /machine/peripheral-anon/device[1]
610    Removable device: not locked, tray closed
611    Cache mode:       writeback
612
613ide1-cd0: [not inserted]
614    Attached to:      /machine/unattached/device[21]
615    Removable device: not locked, tray closed
616
617sd0: [not inserted]
618    Removable device: not locked, tray closed
619(qemu) quit
620
621
622
623=== Mixing -fdX and -global ===
624
625Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=none0
626
627          dev: isa-fdc, id ""
628            iobase = 1008 (0x3f0)
629            irq = 6 (0x6)
630            dma = 2 (0x2)
631            driveA = ""
632            driveB = ""
633            check_media_rate = true
634            fdtypeA = "auto"
635            fdtypeB = "auto"
636            fallback = "288"
637            isa irq 6
638            bus: floppy-bus.0
639              type floppy-bus
640              dev: floppy, id ""
641                unit = 1 (0x1)
642                drive = "none0"
643                logical_block_size = 512 (512 B)
644                physical_block_size = 512 (512 B)
645                min_io_size = 0 (0 B)
646                opt_io_size = 0 (0 B)
647                discard_granularity = 4294967295 (4 GiB)
648                write-cache = "auto"
649                share-rw = false
650                drive-type = "144"
651              dev: floppy, id ""
652                unit = 0 (0x0)
653                drive = "floppy0"
654                logical_block_size = 512 (512 B)
655                physical_block_size = 512 (512 B)
656                min_io_size = 0 (0 B)
657                opt_io_size = 0 (0 B)
658                discard_granularity = 4294967295 (4 GiB)
659                write-cache = "auto"
660                share-rw = false
661                drive-type = "144"
662floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
663    Attached to:      /machine/unattached/device[15]
664    Removable device: not locked, tray closed
665    Cache mode:       writeback
666
667none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
668    Attached to:      /machine/unattached/device[16]
669    Removable device: not locked, tray closed
670    Cache mode:       writeback
671
672ide1-cd0: [not inserted]
673    Attached to:      /machine/unattached/device[23]
674    Removable device: not locked, tray closed
675
676sd0: [not inserted]
677    Removable device: not locked, tray closed
678(qemu) quit
679
680
681Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0
682
683          dev: isa-fdc, id ""
684            iobase = 1008 (0x3f0)
685            irq = 6 (0x6)
686            dma = 2 (0x2)
687            driveA = ""
688            driveB = ""
689            check_media_rate = true
690            fdtypeA = "auto"
691            fdtypeB = "auto"
692            fallback = "288"
693            isa irq 6
694            bus: floppy-bus.0
695              type floppy-bus
696              dev: floppy, id ""
697                unit = 1 (0x1)
698                drive = "floppy1"
699                logical_block_size = 512 (512 B)
700                physical_block_size = 512 (512 B)
701                min_io_size = 0 (0 B)
702                opt_io_size = 0 (0 B)
703                discard_granularity = 4294967295 (4 GiB)
704                write-cache = "auto"
705                share-rw = false
706                drive-type = "144"
707              dev: floppy, id ""
708                unit = 0 (0x0)
709                drive = "none0"
710                logical_block_size = 512 (512 B)
711                physical_block_size = 512 (512 B)
712                min_io_size = 0 (0 B)
713                opt_io_size = 0 (0 B)
714                discard_granularity = 4294967295 (4 GiB)
715                write-cache = "auto"
716                share-rw = false
717                drive-type = "144"
718floppy1 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
719    Attached to:      /machine/unattached/device[16]
720    Removable device: not locked, tray closed
721    Cache mode:       writeback
722
723none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
724    Attached to:      /machine/unattached/device[15]
725    Removable device: not locked, tray closed
726    Cache mode:       writeback
727
728ide1-cd0: [not inserted]
729    Attached to:      /machine/unattached/device[23]
730    Removable device: not locked, tray closed
731
732sd0: [not inserted]
733    Removable device: not locked, tray closed
734(qemu) quit
735
736
737Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0
738
739          dev: isa-fdc, id ""
740            iobase = 1008 (0x3f0)
741            irq = 6 (0x6)
742            dma = 2 (0x2)
743            driveA = ""
744            driveB = ""
745            check_media_rate = true
746            fdtypeA = "auto"
747            fdtypeB = "auto"
748            fallback = "288"
749            isa irq 6
750            bus: floppy-bus.0
751              type floppy-bus
752              dev: floppy, id ""
753                unit = 0 (0x0)
754                drive = "floppy0"
755                logical_block_size = 512 (512 B)
756                physical_block_size = 512 (512 B)
757                min_io_size = 0 (0 B)
758                opt_io_size = 0 (0 B)
759                discard_granularity = 4294967295 (4 GiB)
760                write-cache = "auto"
761                share-rw = false
762                drive-type = "144"
763floppy0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
764    Attached to:      /machine/unattached/device[15]
765    Removable device: not locked, tray closed
766    Cache mode:       writeback
767
768none0 (NODE_NAME): TEST_DIR/t.qcow2.2 (qcow2)
769    Attached to:      /machine/unattached/device[14]
770    Cache mode:       writeback
771
772ide1-cd0: [not inserted]
773    Attached to:      /machine/unattached/device[22]
774    Removable device: not locked, tray closed
775
776sd0: [not inserted]
777    Removable device: not locked, tray closed
778(qemu) quit
779
780
781Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveB=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 = 1 (0x1)
798                drive = "floppy1"
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"
807floppy1 (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[14]
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 -drive if=none,file=TEST_DIR/t.qcow2.2 -global isa-fdc.driveA=none0 -device floppy,drive=none1,unit=0
1404QEMU_PROG: -device floppy,drive=none1,unit=0: Floppy unit 0 is in use
1405
1406Testing: -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
1407QEMU_PROG: -device floppy,drive=none1,unit=1: Floppy unit 1 is in use
1408
1409
1410=== Too many floppy drives ===
1411
1412Testing: -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
1413QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
1414
1415
1416=== Creating an empty drive with anonymous BB ===
1417
1418Testing: -device floppy
1419
1420          dev: isa-fdc, id ""
1421            iobase = 1008 (0x3f0)
1422            irq = 6 (0x6)
1423            dma = 2 (0x2)
1424            driveA = ""
1425            driveB = ""
1426            check_media_rate = true
1427            fdtypeA = "auto"
1428            fdtypeB = "auto"
1429            fallback = "288"
1430            isa irq 6
1431            bus: floppy-bus.0
1432              type floppy-bus
1433              dev: floppy, id ""
1434                unit = 0 (0x0)
1435                drive = ""
1436                logical_block_size = 512 (512 B)
1437                physical_block_size = 512 (512 B)
1438                min_io_size = 0 (0 B)
1439                opt_io_size = 0 (0 B)
1440                discard_granularity = 4294967295 (4 GiB)
1441                write-cache = "auto"
1442                share-rw = false
1443                drive-type = "288"
1444
1445Testing: -device floppy,drive-type=120
1446
1447          dev: isa-fdc, id ""
1448            iobase = 1008 (0x3f0)
1449            irq = 6 (0x6)
1450            dma = 2 (0x2)
1451            driveA = ""
1452            driveB = ""
1453            check_media_rate = true
1454            fdtypeA = "auto"
1455            fdtypeB = "auto"
1456            fallback = "288"
1457            isa irq 6
1458            bus: floppy-bus.0
1459              type floppy-bus
1460              dev: floppy, id ""
1461                unit = 0 (0x0)
1462                drive = ""
1463                logical_block_size = 512 (512 B)
1464                physical_block_size = 512 (512 B)
1465                min_io_size = 0 (0 B)
1466                opt_io_size = 0 (0 B)
1467                discard_granularity = 4294967295 (4 GiB)
1468                write-cache = "auto"
1469                share-rw = false
1470                drive-type = "120"
1471
1472Testing: -device floppy,drive-type=144
1473
1474          dev: isa-fdc, id ""
1475            iobase = 1008 (0x3f0)
1476            irq = 6 (0x6)
1477            dma = 2 (0x2)
1478            driveA = ""
1479            driveB = ""
1480            check_media_rate = true
1481            fdtypeA = "auto"
1482            fdtypeB = "auto"
1483            fallback = "288"
1484            isa irq 6
1485            bus: floppy-bus.0
1486              type floppy-bus
1487              dev: floppy, id ""
1488                unit = 0 (0x0)
1489                drive = ""
1490                logical_block_size = 512 (512 B)
1491                physical_block_size = 512 (512 B)
1492                min_io_size = 0 (0 B)
1493                opt_io_size = 0 (0 B)
1494                discard_granularity = 4294967295 (4 GiB)
1495                write-cache = "auto"
1496                share-rw = false
1497                drive-type = "144"
1498
1499Testing: -device floppy,drive-type=288
1500
1501          dev: isa-fdc, id ""
1502            iobase = 1008 (0x3f0)
1503            irq = 6 (0x6)
1504            dma = 2 (0x2)
1505            driveA = ""
1506            driveB = ""
1507            check_media_rate = true
1508            fdtypeA = "auto"
1509            fdtypeB = "auto"
1510            fallback = "288"
1511            isa irq 6
1512            bus: floppy-bus.0
1513              type floppy-bus
1514              dev: floppy, id ""
1515                unit = 0 (0x0)
1516                drive = ""
1517                logical_block_size = 512 (512 B)
1518                physical_block_size = 512 (512 B)
1519                min_io_size = 0 (0 B)
1520                opt_io_size = 0 (0 B)
1521                discard_granularity = 4294967295 (4 GiB)
1522                write-cache = "auto"
1523                share-rw = false
1524                drive-type = "288"
1525
1526
1527=== Try passing different drive size with image ===
1528
1529Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
1530
1531          dev: isa-fdc, id ""
1532            iobase = 1008 (0x3f0)
1533            irq = 6 (0x6)
1534            dma = 2 (0x2)
1535            driveA = ""
1536            driveB = ""
1537            check_media_rate = true
1538            fdtypeA = "auto"
1539            fdtypeB = "auto"
1540            fallback = "288"
1541            isa irq 6
1542            bus: floppy-bus.0
1543              type floppy-bus
1544              dev: floppy, id ""
1545                unit = 0 (0x0)
1546                drive = "none0"
1547                logical_block_size = 512 (512 B)
1548                physical_block_size = 512 (512 B)
1549                min_io_size = 0 (0 B)
1550                opt_io_size = 0 (0 B)
1551                discard_granularity = 4294967295 (4 GiB)
1552                write-cache = "auto"
1553                share-rw = false
1554                drive-type = "120"
1555none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1556    Attached to:      /machine/peripheral-anon/device[0]
1557    Removable device: not locked, tray closed
1558    Cache mode:       writeback
1559
1560ide1-cd0: [not inserted]
1561    Attached to:      /machine/unattached/device[21]
1562    Removable device: not locked, tray closed
1563
1564sd0: [not inserted]
1565    Removable device: not locked, tray closed
1566(qemu) quit
1567
1568
1569Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
1570
1571          dev: isa-fdc, id ""
1572            iobase = 1008 (0x3f0)
1573            irq = 6 (0x6)
1574            dma = 2 (0x2)
1575            driveA = ""
1576            driveB = ""
1577            check_media_rate = true
1578            fdtypeA = "auto"
1579            fdtypeB = "auto"
1580            fallback = "288"
1581            isa irq 6
1582            bus: floppy-bus.0
1583              type floppy-bus
1584              dev: floppy, id ""
1585                unit = 0 (0x0)
1586                drive = "none0"
1587                logical_block_size = 512 (512 B)
1588                physical_block_size = 512 (512 B)
1589                min_io_size = 0 (0 B)
1590                opt_io_size = 0 (0 B)
1591                discard_granularity = 4294967295 (4 GiB)
1592                write-cache = "auto"
1593                share-rw = false
1594                drive-type = "288"
1595none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1596    Attached to:      /machine/peripheral-anon/device[0]
1597    Removable device: not locked, tray closed
1598    Cache mode:       writeback
1599
1600ide1-cd0: [not inserted]
1601    Attached to:      /machine/unattached/device[21]
1602    Removable device: not locked, tray closed
1603
1604sd0: [not inserted]
1605    Removable device: not locked, tray closed
1606(qemu) quit
1607
1608
1609
1610=== Try passing different block sizes ===
1611
1612Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
1613
1614          dev: isa-fdc, id ""
1615            iobase = 1008 (0x3f0)
1616            irq = 6 (0x6)
1617            dma = 2 (0x2)
1618            driveA = ""
1619            driveB = ""
1620            check_media_rate = true
1621            fdtypeA = "auto"
1622            fdtypeB = "auto"
1623            fallback = "288"
1624            isa irq 6
1625            bus: floppy-bus.0
1626              type floppy-bus
1627              dev: floppy, id ""
1628                unit = 0 (0x0)
1629                drive = "none0"
1630                logical_block_size = 512 (512 B)
1631                physical_block_size = 512 (512 B)
1632                min_io_size = 0 (0 B)
1633                opt_io_size = 0 (0 B)
1634                discard_granularity = 4294967295 (4 GiB)
1635                write-cache = "auto"
1636                share-rw = false
1637                drive-type = "144"
1638none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1639    Attached to:      /machine/peripheral-anon/device[0]
1640    Removable device: not locked, tray closed
1641    Cache mode:       writeback
1642
1643ide1-cd0: [not inserted]
1644    Attached to:      /machine/unattached/device[21]
1645    Removable device: not locked, tray closed
1646
1647sd0: [not inserted]
1648    Removable device: not locked, tray closed
1649(qemu) quit
1650
1651
1652Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
1653
1654          dev: isa-fdc, id ""
1655            iobase = 1008 (0x3f0)
1656            irq = 6 (0x6)
1657            dma = 2 (0x2)
1658            driveA = ""
1659            driveB = ""
1660            check_media_rate = true
1661            fdtypeA = "auto"
1662            fdtypeB = "auto"
1663            fallback = "288"
1664            isa irq 6
1665            bus: floppy-bus.0
1666              type floppy-bus
1667              dev: floppy, id ""
1668                unit = 0 (0x0)
1669                drive = "none0"
1670                logical_block_size = 512 (512 B)
1671                physical_block_size = 512 (512 B)
1672                min_io_size = 0 (0 B)
1673                opt_io_size = 0 (0 B)
1674                discard_granularity = 4294967295 (4 GiB)
1675                write-cache = "auto"
1676                share-rw = false
1677                drive-type = "144"
1678none0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2)
1679    Attached to:      /machine/peripheral-anon/device[0]
1680    Removable device: not locked, tray closed
1681    Cache mode:       writeback
1682
1683ide1-cd0: [not inserted]
1684    Attached to:      /machine/unattached/device[21]
1685    Removable device: not locked, tray closed
1686
1687sd0: [not inserted]
1688    Removable device: not locked, tray closed
1689(qemu) quit
1690
1691
1692Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1693QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1694
1695Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1696QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1697
1698
1699=== Writethrough caching ===
1700    Cache mode:       writeback
1701    Cache mode:       writeback
1702    Cache mode:       writethrough
1703*** done
1704