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