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