Merge tag 'kraxel-20221013-pull-request' of https://gitlab.com/kraxel/qemu into staging
[qemu/ar7.git] / tests / qemu-iotests / 172.out
blob07eebf358368eea6dedddb82207207f4ddfcdfcc
1 QA output created by 172
2 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=737280
3 Formatting 'TEST_DIR/t.IMGFMT.2', fmt=IMGFMT size=737280
4 Formatting 'TEST_DIR/t.IMGFMT.3', fmt=IMGFMT size=737280
7 === Default ===
9 Testing:
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"
36 === Using -fda/-fdb options ===
38 Testing: -fda TEST_DIR/t.qcow2
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"
63 floppy0 (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
68 ide1-cd0: [not inserted]
69     Attached to:      /machine/unattached/device[N]
70     Removable device: not locked, tray closed
72 sd0: [not inserted]
73     Removable device: not locked, tray closed
74 (qemu) quit
77 Testing: -fdb TEST_DIR/t.qcow2
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"
116 floppy1 (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
121 ide1-cd0: [not inserted]
122     Attached to:      /machine/unattached/device[N]
123     Removable device: not locked, tray closed
125 floppy0: [not inserted]
126     Attached to:      /machine/unattached/device[N]
127     Removable device: not locked, tray closed
129 sd0: [not inserted]
130     Removable device: not locked, tray closed
131 (qemu) quit
134 Testing: -fda TEST_DIR/t.qcow2 -fdb TEST_DIR/t.qcow2.2
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"
173 floppy0 (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
178 floppy1 (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
183 ide1-cd0: [not inserted]
184     Attached to:      /machine/unattached/device[N]
185     Removable device: not locked, tray closed
187 sd0: [not inserted]
188     Removable device: not locked, tray closed
189 (qemu) quit
192 Testing: -fdb 
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"
233 === Using -drive options ===
235 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2
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"
260 floppy0 (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
265 ide1-cd0: [not inserted]
266     Attached to:      /machine/unattached/device[N]
267     Removable device: not locked, tray closed
269 sd0: [not inserted]
270     Removable device: not locked, tray closed
271 (qemu) quit
274 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2,index=1
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"
313 floppy1 (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
318 ide1-cd0: [not inserted]
319     Attached to:      /machine/unattached/device[N]
320     Removable device: not locked, tray closed
322 floppy0: [not inserted]
323     Attached to:      /machine/unattached/device[N]
324     Removable device: not locked, tray closed
326 sd0: [not inserted]
327     Removable device: not locked, tray closed
328 (qemu) quit
331 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=floppy,file=TEST_DIR/t.qcow2.2,index=1
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"
370 floppy0 (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
375 floppy1 (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
380 ide1-cd0: [not inserted]
381     Attached to:      /machine/unattached/device[N]
382     Removable device: not locked, tray closed
384 sd0: [not inserted]
385     Removable device: not locked, tray closed
386 (qemu) quit
390 === Using -drive if=none and -device ===
392 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0
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"
417 none0 (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
422 ide1-cd0: [not inserted]
423     Attached to:      /machine/unattached/device[N]
424     Removable device: not locked, tray closed
426 sd0: [not inserted]
427     Removable device: not locked, tray closed
428 (qemu) quit
431 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,unit=1
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"
456 none0 (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
461 ide1-cd0: [not inserted]
462     Attached to:      /machine/unattached/device[N]
463     Removable device: not locked, tray closed
465 sd0: [not inserted]
466     Removable device: not locked, tray closed
467 (qemu) quit
470 Testing: -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
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"
509 none0 (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
514 none1 (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
519 ide1-cd0: [not inserted]
520     Attached to:      /machine/unattached/device[N]
521     Removable device: not locked, tray closed
523 sd0: [not inserted]
524     Removable device: not locked, tray closed
525 (qemu) quit
529 === Mixing -fdX and -global ===
531 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -global floppy.drive=none0
532 QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
535 === Mixing -fdX and -device ===
537 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
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"
576 floppy0 (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
581 none0 (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
586 ide1-cd0: [not inserted]
587     Attached to:      /machine/unattached/device[N]
588     Removable device: not locked, tray closed
590 sd0: [not inserted]
591     Removable device: not locked, tray closed
592 (qemu) quit
595 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
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"
634 floppy0 (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
639 none0 (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
644 ide1-cd0: [not inserted]
645     Attached to:      /machine/unattached/device[N]
646     Removable device: not locked, tray closed
648 sd0: [not inserted]
649     Removable device: not locked, tray closed
650 (qemu) quit
653 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
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"
692 floppy1 (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
697 none0 (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
702 ide1-cd0: [not inserted]
703     Attached to:      /machine/unattached/device[N]
704     Removable device: not locked, tray closed
706 sd0: [not inserted]
707     Removable device: not locked, tray closed
708 (qemu) quit
711 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
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"
750 floppy1 (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
755 none0 (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
760 ide1-cd0: [not inserted]
761     Attached to:      /machine/unattached/device[N]
762     Removable device: not locked, tray closed
764 sd0: [not inserted]
765     Removable device: not locked, tray closed
766 (qemu) quit
769 Testing: -fda TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
770 QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
772 Testing: -fdb TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
773 QEMU_PROG: -device floppy,drive=none0,unit=1: Floppy unit 1 is in use
776 === Mixing -drive and -device ===
778 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0
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"
817 floppy0 (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
822 none0 (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
827 ide1-cd0: [not inserted]
828     Attached to:      /machine/unattached/device[N]
829     Removable device: not locked, tray closed
831 sd0: [not inserted]
832     Removable device: not locked, tray closed
833 (qemu) quit
836 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=1
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"
875 floppy0 (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
880 none0 (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
885 ide1-cd0: [not inserted]
886     Attached to:      /machine/unattached/device[N]
887     Removable device: not locked, tray closed
889 sd0: [not inserted]
890     Removable device: not locked, tray closed
891 (qemu) quit
894 Testing: -drive if=floppy,file=TEST_DIR/t.qcow2 -drive if=none,file=TEST_DIR/t.qcow2.2 -device floppy,drive=none0,unit=0
895 QEMU_PROG: -device floppy,drive=none0,unit=0: Floppy unit 0 is in use
898 === Mixing -global and -device ===
900 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -global floppy.drive=none0 -device floppy,unit=0
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"
925 none0 (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
930 ide1-cd0: [not inserted]
931     Attached to:      /machine/unattached/device[N]
932     Removable device: not locked, tray closed
934 sd0: [not inserted]
935     Removable device: not locked, tray closed
936 (qemu) quit
939 Testing: -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
940 QEMU_PROG: -device floppy,drive=none1,unit=0: -global floppy.drive=... conflicts with drive=none1
943 === Attempt to use drive twice ===
945 Testing: -drive if=none -device floppy,drive=none0 -device floppy -device floppy,drive=none0
946 QEMU_PROG: -device floppy,drive=none0: Drive 'none0' is already in use by another device
948 Testing: -drive if=none -global floppy.drive=none0 -device floppy -device floppy
949 QEMU_PROG: -device floppy: can't apply global floppy.drive=none0: Drive 'none0' is already in use by another device
951 Testing: -fda  -device floppy,drive=floppy0
952 QEMU_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?)
954 Testing: -fda  -global floppy.drive=floppy0
955 QEMU_PROG: -global floppy.drive=... conflicts with drive=floppy0
957 Testing: -device floppy,drive=floppy0
958 QEMU_PROG: -device floppy,drive=floppy0: Property 'floppy.drive' can't find value 'floppy0'
961 === Too many floppy drives ===
963 Testing: -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
964 QEMU_PROG: -device floppy,drive=none1: Can't create floppy unit 2, bus supports only 2 units
967 === Creating an empty drive with anonymous BB ===
969 Testing: -device floppy
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"
995 Testing: -device floppy,drive-type=120
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"
1021 Testing: -device floppy,drive-type=144
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"
1047 Testing: -device floppy,drive-type=288
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"
1074 === Try passing different drive size with image ===
1076 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=120
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"
1101 none0 (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
1106 ide1-cd0: [not inserted]
1107     Attached to:      /machine/unattached/device[N]
1108     Removable device: not locked, tray closed
1110 sd0: [not inserted]
1111     Removable device: not locked, tray closed
1112 (qemu) quit
1115 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,drive-type=288
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"
1140 none0 (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
1145 ide1-cd0: [not inserted]
1146     Attached to:      /machine/unattached/device[N]
1147     Removable device: not locked, tray closed
1149 sd0: [not inserted]
1150     Removable device: not locked, tray closed
1151 (qemu) quit
1155 === Try passing different block sizes ===
1157 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=512
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"
1182 none0 (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
1187 ide1-cd0: [not inserted]
1188     Attached to:      /machine/unattached/device[N]
1189     Removable device: not locked, tray closed
1191 sd0: [not inserted]
1192     Removable device: not locked, tray closed
1193 (qemu) quit
1196 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=512
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"
1221 none0 (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
1226 ide1-cd0: [not inserted]
1227     Attached to:      /machine/unattached/device[N]
1228     Removable device: not locked, tray closed
1230 sd0: [not inserted]
1231     Removable device: not locked, tray closed
1232 (qemu) quit
1235 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,logical_block_size=4096
1236 QEMU_PROG: -device floppy,drive=none0,logical_block_size=4096: logical_block_size > physical_block_size not supported
1238 Testing: -drive if=none,file=TEST_DIR/t.qcow2 -device floppy,drive=none0,physical_block_size=1024
1239 QEMU_PROG: -device floppy,drive=none0,physical_block_size=1024: Physical and logical block size must be 512 for floppy
1242 === Writethrough caching ===
1243     Cache mode:       writeback
1244     Cache mode:       writeback
1245     Cache mode:       writethrough
1246 *** done