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