xref: /openbmc/qemu/tests/qemu-iotests/172.out (revision 354908ce)
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"
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 (512 B)
85                physical_block_size = 512 (512 B)
86                min_io_size = 0 (0 B)
87                opt_io_size = 0 (0 B)
88                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
96                physical_block_size = 512 (512 B)
97                min_io_size = 0 (0 B)
98                opt_io_size = 0 (0 B)
99                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
123                physical_block_size = 512 (512 B)
124                min_io_size = 0 (0 B)
125                opt_io_size = 0 (0 B)
126                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
134                physical_block_size = 512 (512 B)
135                min_io_size = 0 (0 B)
136                opt_io_size = 0 (0 B)
137                discard_granularity = 4294967295 (4 GiB)
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 (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"
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 (512 B)
191                physical_block_size = 512 (512 B)
192                min_io_size = 0 (0 B)
193                opt_io_size = 0 (0 B)
194                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
202                physical_block_size = 512 (512 B)
203                min_io_size = 0 (0 B)
204                opt_io_size = 0 (0 B)
205                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
229                physical_block_size = 512 (512 B)
230                min_io_size = 0 (0 B)
231                opt_io_size = 0 (0 B)
232                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
240                physical_block_size = 512 (512 B)
241                min_io_size = 0 (0 B)
242                opt_io_size = 0 (0 B)
243                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
270                physical_block_size = 512 (512 B)
271                min_io_size = 0 (0 B)
272                opt_io_size = 0 (0 B)
273                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
297                physical_block_size = 512 (512 B)
298                min_io_size = 0 (0 B)
299                opt_io_size = 0 (0 B)
300                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
324                physical_block_size = 512 (512 B)
325                min_io_size = 0 (0 B)
326                opt_io_size = 0 (0 B)
327                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
335                physical_block_size = 512 (512 B)
336                min_io_size = 0 (0 B)
337                opt_io_size = 0 (0 B)
338                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
365                physical_block_size = 512 (512 B)
366                min_io_size = 0 (0 B)
367                opt_io_size = 0 (0 B)
368                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
392                physical_block_size = 512 (512 B)
393                min_io_size = 0 (0 B)
394                opt_io_size = 0 (0 B)
395                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
419                physical_block_size = 512 (512 B)
420                min_io_size = 0 (0 B)
421                opt_io_size = 0 (0 B)
422                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
430                physical_block_size = 512 (512 B)
431                min_io_size = 0 (0 B)
432                opt_io_size = 0 (0 B)
433                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
460                physical_block_size = 512 (512 B)
461                min_io_size = 0 (0 B)
462                opt_io_size = 0 (0 B)
463                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
471                physical_block_size = 512 (512 B)
472                min_io_size = 0 (0 B)
473                opt_io_size = 0 (0 B)
474                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
498                physical_block_size = 512 (512 B)
499                min_io_size = 0 (0 B)
500                opt_io_size = 0 (0 B)
501                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
509                physical_block_size = 512 (512 B)
510                min_io_size = 0 (0 B)
511                opt_io_size = 0 (0 B)
512                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
536                physical_block_size = 512 (512 B)
537                min_io_size = 0 (0 B)
538                opt_io_size = 0 (0 B)
539                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
563                physical_block_size = 512 (512 B)
564                min_io_size = 0 (0 B)
565                opt_io_size = 0 (0 B)
566                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
593                physical_block_size = 512 (512 B)
594                min_io_size = 0 (0 B)
595                opt_io_size = 0 (0 B)
596                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
604                physical_block_size = 512 (512 B)
605                min_io_size = 0 (0 B)
606                opt_io_size = 0 (0 B)
607                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
631                physical_block_size = 512 (512 B)
632                min_io_size = 0 (0 B)
633                opt_io_size = 0 (0 B)
634                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
642                physical_block_size = 512 (512 B)
643                min_io_size = 0 (0 B)
644                opt_io_size = 0 (0 B)
645                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
669                physical_block_size = 512 (512 B)
670                min_io_size = 0 (0 B)
671                opt_io_size = 0 (0 B)
672                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
680                physical_block_size = 512 (512 B)
681                min_io_size = 0 (0 B)
682                opt_io_size = 0 (0 B)
683                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
707                physical_block_size = 512 (512 B)
708                min_io_size = 0 (0 B)
709                opt_io_size = 0 (0 B)
710                discard_granularity = 4294967295 (4 GiB)
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 (512 B)
718                physical_block_size = 512 (512 B)
719                min_io_size = 0 (0 B)
720                opt_io_size = 0 (0 B)
721                discard_granularity = 4294967295 (4 GiB)
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
728
729Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
730QEMU_PROG: -device floppy,drive=none0,unit=1: Floppy unit 1 is in use
731
732
733=== Mixing -drive and -device ===
734
735Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
736
737          dev: isa-fdc, id ""
738            iobase = 1008 (0x3f0)
739            irq = 6 (0x6)
740            dma = 2 (0x2)
741            driveA = ""
742            driveB = ""
743            check_media_rate = true
744            fdtypeA = "auto"
745            fdtypeB = "auto"
746            fallback = "288"
747            isa irq 6
748            bus: floppy-bus.0
749              type floppy-bus
750              dev: floppy, id ""
751                unit = 1 (0x1)
752                drive = "none0"
753                logical_block_size = 512 (512 B)
754                physical_block_size = 512 (512 B)
755                min_io_size = 0 (0 B)
756                opt_io_size = 0 (0 B)
757                discard_granularity = 4294967295 (4 GiB)
758                write-cache = "auto"
759                share-rw = false
760                drive-type = "144"
761              dev: floppy, id ""
762                unit = 0 (0x0)
763                drive = "floppy0"
764                logical_block_size = 512 (512 B)
765                physical_block_size = 512 (512 B)
766                min_io_size = 0 (0 B)
767                opt_io_size = 0 (0 B)
768                discard_granularity = 4294967295 (4 GiB)
769                write-cache = "auto"
770                share-rw = false
771                drive-type = "144"
772
773Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
774
775          dev: isa-fdc, id ""
776            iobase = 1008 (0x3f0)
777            irq = 6 (0x6)
778            dma = 2 (0x2)
779            driveA = ""
780            driveB = ""
781            check_media_rate = true
782            fdtypeA = "auto"
783            fdtypeB = "auto"
784            fallback = "288"
785            isa irq 6
786            bus: floppy-bus.0
787              type floppy-bus
788              dev: floppy, id ""
789                unit = 1 (0x1)
790                drive = "none0"
791                logical_block_size = 512 (512 B)
792                physical_block_size = 512 (512 B)
793                min_io_size = 0 (0 B)
794                opt_io_size = 0 (0 B)
795                discard_granularity = 4294967295 (4 GiB)
796                write-cache = "auto"
797                share-rw = false
798                drive-type = "144"
799              dev: floppy, id ""
800                unit = 0 (0x0)
801                drive = "floppy0"
802                logical_block_size = 512 (512 B)
803                physical_block_size = 512 (512 B)
804                min_io_size = 0 (0 B)
805                opt_io_size = 0 (0 B)
806                discard_granularity = 4294967295 (4 GiB)
807                write-cache = "auto"
808                share-rw = false
809                drive-type = "144"
810
811Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
812QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
813
814
815=== Mixing -global and -device ===
816
817Testing: -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
818
819          dev: isa-fdc, id ""
820            iobase = 1008 (0x3f0)
821            irq = 6 (0x6)
822            dma = 2 (0x2)
823            driveA = ""
824            driveB = ""
825            check_media_rate = true
826            fdtypeA = "auto"
827            fdtypeB = "auto"
828            fallback = "288"
829            isa irq 6
830            bus: floppy-bus.0
831              type floppy-bus
832              dev: floppy, id ""
833                unit = 1 (0x1)
834                drive = "none1"
835                logical_block_size = 512 (512 B)
836                physical_block_size = 512 (512 B)
837                min_io_size = 0 (0 B)
838                opt_io_size = 0 (0 B)
839                discard_granularity = 4294967295 (4 GiB)
840                write-cache = "auto"
841                share-rw = false
842                drive-type = "144"
843              dev: floppy, id ""
844                unit = 0 (0x0)
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
855Testing: -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
856
857          dev: isa-fdc, id ""
858            iobase = 1008 (0x3f0)
859            irq = 6 (0x6)
860            dma = 2 (0x2)
861            driveA = ""
862            driveB = ""
863            check_media_rate = true
864            fdtypeA = "auto"
865            fdtypeB = "auto"
866            fallback = "288"
867            isa irq 6
868            bus: floppy-bus.0
869              type floppy-bus
870              dev: floppy, id ""
871                unit = 1 (0x1)
872                drive = "none1"
873                logical_block_size = 512 (512 B)
874                physical_block_size = 512 (512 B)
875                min_io_size = 0 (0 B)
876                opt_io_size = 0 (0 B)
877                discard_granularity = 4294967295 (4 GiB)
878                write-cache = "auto"
879                share-rw = false
880                drive-type = "144"
881              dev: floppy, id ""
882                unit = 0 (0x0)
883                drive = "none0"
884                logical_block_size = 512 (512 B)
885                physical_block_size = 512 (512 B)
886                min_io_size = 0 (0 B)
887                opt_io_size = 0 (0 B)
888                discard_granularity = 4294967295 (4 GiB)
889                write-cache = "auto"
890                share-rw = false
891                drive-type = "144"
892
893Testing: -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
894
895          dev: isa-fdc, id ""
896            iobase = 1008 (0x3f0)
897            irq = 6 (0x6)
898            dma = 2 (0x2)
899            driveA = ""
900            driveB = ""
901            check_media_rate = true
902            fdtypeA = "auto"
903            fdtypeB = "auto"
904            fallback = "288"
905            isa irq 6
906            bus: floppy-bus.0
907              type floppy-bus
908              dev: floppy, id ""
909                unit = 0 (0x0)
910                drive = "none1"
911                logical_block_size = 512 (512 B)
912                physical_block_size = 512 (512 B)
913                min_io_size = 0 (0 B)
914                opt_io_size = 0 (0 B)
915                discard_granularity = 4294967295 (4 GiB)
916                write-cache = "auto"
917                share-rw = false
918                drive-type = "144"
919              dev: floppy, id ""
920                unit = 1 (0x1)
921                drive = "none0"
922                logical_block_size = 512 (512 B)
923                physical_block_size = 512 (512 B)
924                min_io_size = 0 (0 B)
925                opt_io_size = 0 (0 B)
926                discard_granularity = 4294967295 (4 GiB)
927                write-cache = "auto"
928                share-rw = false
929                drive-type = "144"
930
931Testing: -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
932
933          dev: isa-fdc, id ""
934            iobase = 1008 (0x3f0)
935            irq = 6 (0x6)
936            dma = 2 (0x2)
937            driveA = ""
938            driveB = ""
939            check_media_rate = true
940            fdtypeA = "auto"
941            fdtypeB = "auto"
942            fallback = "288"
943            isa irq 6
944            bus: floppy-bus.0
945              type floppy-bus
946              dev: floppy, id ""
947                unit = 0 (0x0)
948                drive = "none1"
949                logical_block_size = 512 (512 B)
950                physical_block_size = 512 (512 B)
951                min_io_size = 0 (0 B)
952                opt_io_size = 0 (0 B)
953                discard_granularity = 4294967295 (4 GiB)
954                write-cache = "auto"
955                share-rw = false
956                drive-type = "144"
957              dev: floppy, id ""
958                unit = 1 (0x1)
959                drive = "none0"
960                logical_block_size = 512 (512 B)
961                physical_block_size = 512 (512 B)
962                min_io_size = 0 (0 B)
963                opt_io_size = 0 (0 B)
964                discard_granularity = 4294967295 (4 GiB)
965                write-cache = "auto"
966                share-rw = false
967                drive-type = "144"
968
969Testing: -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
970QEMU_PROG: -device floppy,drive=none1,unit=0: Floppy unit 0 is in use
971
972Testing: -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
973QEMU_PROG: -device floppy,drive=none1,unit=1: Floppy unit 1 is in use
974
975
976=== Too many floppy drives ===
977
978Testing: -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
979QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
980
981
982=== Creating an empty drive with anonymous BB ===
983
984Testing: -device floppy
985
986          dev: isa-fdc, id ""
987            iobase = 1008 (0x3f0)
988            irq = 6 (0x6)
989            dma = 2 (0x2)
990            driveA = ""
991            driveB = ""
992            check_media_rate = true
993            fdtypeA = "auto"
994            fdtypeB = "auto"
995            fallback = "288"
996            isa irq 6
997            bus: floppy-bus.0
998              type floppy-bus
999              dev: floppy, id ""
1000                unit = 0 (0x0)
1001                drive = ""
1002                logical_block_size = 512 (512 B)
1003                physical_block_size = 512 (512 B)
1004                min_io_size = 0 (0 B)
1005                opt_io_size = 0 (0 B)
1006                discard_granularity = 4294967295 (4 GiB)
1007                write-cache = "auto"
1008                share-rw = false
1009                drive-type = "288"
1010
1011Testing: -device floppy,drive-type=120
1012
1013          dev: isa-fdc, id ""
1014            iobase = 1008 (0x3f0)
1015            irq = 6 (0x6)
1016            dma = 2 (0x2)
1017            driveA = ""
1018            driveB = ""
1019            check_media_rate = true
1020            fdtypeA = "auto"
1021            fdtypeB = "auto"
1022            fallback = "288"
1023            isa irq 6
1024            bus: floppy-bus.0
1025              type floppy-bus
1026              dev: floppy, id ""
1027                unit = 0 (0x0)
1028                drive = ""
1029                logical_block_size = 512 (512 B)
1030                physical_block_size = 512 (512 B)
1031                min_io_size = 0 (0 B)
1032                opt_io_size = 0 (0 B)
1033                discard_granularity = 4294967295 (4 GiB)
1034                write-cache = "auto"
1035                share-rw = false
1036                drive-type = "120"
1037
1038Testing: -device floppy,drive-type=144
1039
1040          dev: isa-fdc, id ""
1041            iobase = 1008 (0x3f0)
1042            irq = 6 (0x6)
1043            dma = 2 (0x2)
1044            driveA = ""
1045            driveB = ""
1046            check_media_rate = true
1047            fdtypeA = "auto"
1048            fdtypeB = "auto"
1049            fallback = "288"
1050            isa irq 6
1051            bus: floppy-bus.0
1052              type floppy-bus
1053              dev: floppy, id ""
1054                unit = 0 (0x0)
1055                drive = ""
1056                logical_block_size = 512 (512 B)
1057                physical_block_size = 512 (512 B)
1058                min_io_size = 0 (0 B)
1059                opt_io_size = 0 (0 B)
1060                discard_granularity = 4294967295 (4 GiB)
1061                write-cache = "auto"
1062                share-rw = false
1063                drive-type = "144"
1064
1065Testing: -device floppy,drive-type=288
1066
1067          dev: isa-fdc, id ""
1068            iobase = 1008 (0x3f0)
1069            irq = 6 (0x6)
1070            dma = 2 (0x2)
1071            driveA = ""
1072            driveB = ""
1073            check_media_rate = true
1074            fdtypeA = "auto"
1075            fdtypeB = "auto"
1076            fallback = "288"
1077            isa irq 6
1078            bus: floppy-bus.0
1079              type floppy-bus
1080              dev: floppy, id ""
1081                unit = 0 (0x0)
1082                drive = ""
1083                logical_block_size = 512 (512 B)
1084                physical_block_size = 512 (512 B)
1085                min_io_size = 0 (0 B)
1086                opt_io_size = 0 (0 B)
1087                discard_granularity = 4294967295 (4 GiB)
1088                write-cache = "auto"
1089                share-rw = false
1090                drive-type = "288"
1091
1092
1093=== Try passing different drive size with image ===
1094
1095Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
1096
1097          dev: isa-fdc, id ""
1098            iobase = 1008 (0x3f0)
1099            irq = 6 (0x6)
1100            dma = 2 (0x2)
1101            driveA = ""
1102            driveB = ""
1103            check_media_rate = true
1104            fdtypeA = "auto"
1105            fdtypeB = "auto"
1106            fallback = "288"
1107            isa irq 6
1108            bus: floppy-bus.0
1109              type floppy-bus
1110              dev: floppy, id ""
1111                unit = 0 (0x0)
1112                drive = "none0"
1113                logical_block_size = 512 (512 B)
1114                physical_block_size = 512 (512 B)
1115                min_io_size = 0 (0 B)
1116                opt_io_size = 0 (0 B)
1117                discard_granularity = 4294967295 (4 GiB)
1118                write-cache = "auto"
1119                share-rw = false
1120                drive-type = "120"
1121
1122Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
1123
1124          dev: isa-fdc, id ""
1125            iobase = 1008 (0x3f0)
1126            irq = 6 (0x6)
1127            dma = 2 (0x2)
1128            driveA = ""
1129            driveB = ""
1130            check_media_rate = true
1131            fdtypeA = "auto"
1132            fdtypeB = "auto"
1133            fallback = "288"
1134            isa irq 6
1135            bus: floppy-bus.0
1136              type floppy-bus
1137              dev: floppy, id ""
1138                unit = 0 (0x0)
1139                drive = "none0"
1140                logical_block_size = 512 (512 B)
1141                physical_block_size = 512 (512 B)
1142                min_io_size = 0 (0 B)
1143                opt_io_size = 0 (0 B)
1144                discard_granularity = 4294967295 (4 GiB)
1145                write-cache = "auto"
1146                share-rw = false
1147                drive-type = "288"
1148
1149
1150=== Try passing different block sizes ===
1151
1152Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
1153
1154          dev: isa-fdc, id ""
1155            iobase = 1008 (0x3f0)
1156            irq = 6 (0x6)
1157            dma = 2 (0x2)
1158            driveA = ""
1159            driveB = ""
1160            check_media_rate = true
1161            fdtypeA = "auto"
1162            fdtypeB = "auto"
1163            fallback = "288"
1164            isa irq 6
1165            bus: floppy-bus.0
1166              type floppy-bus
1167              dev: floppy, id ""
1168                unit = 0 (0x0)
1169                drive = "none0"
1170                logical_block_size = 512 (512 B)
1171                physical_block_size = 512 (512 B)
1172                min_io_size = 0 (0 B)
1173                opt_io_size = 0 (0 B)
1174                discard_granularity = 4294967295 (4 GiB)
1175                write-cache = "auto"
1176                share-rw = false
1177                drive-type = "144"
1178
1179Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
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 = 0 (0x0)
1196                drive = "none0"
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
1206Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1207QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1208
1209Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1210QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1211
1212
1213=== Writethrough caching ===
1214    Cache mode:       writeback
1215    Cache mode:       writeback
1216    Cache mode:       writethrough
1217*** done
1218