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