xref: /openbmc/qemu/tests/qemu-iotests/142.out (revision f101c9fe)
1QA output created by 142
2Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728
3Formatting 'TEST_DIR/t.IMGFMT.snap', fmt=IMGFMT size=134217728
4Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base backing_fmt=IMGFMT
5
6=== Simple test for all cache modes ===
7
8Testing: -drive file=TEST_DIR/t.qcow2,cache=none
9QEMU X.Y.Z monitor - type 'help' for more information
10(qemu) quit
11
12Testing: -drive file=TEST_DIR/t.qcow2,cache=directsync
13QEMU X.Y.Z monitor - type 'help' for more information
14(qemu) quit
15
16Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback
17QEMU X.Y.Z monitor - type 'help' for more information
18(qemu) quit
19
20Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough
21QEMU X.Y.Z monitor - type 'help' for more information
22(qemu) quit
23
24Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe
25QEMU X.Y.Z monitor - type 'help' for more information
26(qemu) quit
27
28Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value
29QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value: invalid cache option
30
31
32=== Check inheritance of cache modes ===
33
34
35--- Configure cache modes on the command line ---
36
37cache.direct=on on none0
38    Cache mode:       writeback, direct
39    Cache mode:       writeback, direct
40    Cache mode:       writeback, direct
41    Cache mode:       writeback, direct
42    Cache mode:       writeback, direct
43
44cache.direct=on on file
45    Cache mode:       writeback
46    Cache mode:       writeback
47    Cache mode:       writeback, direct
48    Cache mode:       writeback
49    Cache mode:       writeback
50
51cache.direct=on on backing
52    Cache mode:       writeback
53    Cache mode:       writeback
54    Cache mode:       writeback
55    Cache mode:       writeback, direct
56    Cache mode:       writeback, direct
57
58cache.direct=on on backing-file
59    Cache mode:       writeback
60    Cache mode:       writeback
61    Cache mode:       writeback
62    Cache mode:       writeback
63    Cache mode:       writeback, direct
64
65
66cache.writeback=off on none0
67    Cache mode:       writethrough
68    Cache mode:       writeback
69    Cache mode:       writeback
70    Cache mode:       writeback
71    Cache mode:       writeback
72
73cache.writeback=off on file
74QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,file.cache.writeback=off: Block protocol 'file' doesn't support the option 'cache.writeback'
75
76cache.writeback=off on backing
77QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.cache.writeback=off: Could not open backing file: Block format 'qcow2' does not support the option 'cache.writeback'
78
79cache.writeback=off on backing-file
80QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.file.cache.writeback=off: Could not open backing file: Block protocol 'file' doesn't support the option 'cache.writeback'
81
82
83cache.no-flush=on on none0
84    Cache mode:       writeback, ignore flushes
85    Cache mode:       writeback, ignore flushes
86    Cache mode:       writeback, ignore flushes
87    Cache mode:       writeback, ignore flushes
88    Cache mode:       writeback, ignore flushes
89
90cache.no-flush=on on file
91    Cache mode:       writeback
92    Cache mode:       writeback
93    Cache mode:       writeback, ignore flushes
94    Cache mode:       writeback
95    Cache mode:       writeback
96
97cache.no-flush=on on backing
98    Cache mode:       writeback
99    Cache mode:       writeback
100    Cache mode:       writeback
101    Cache mode:       writeback, ignore flushes
102    Cache mode:       writeback, ignore flushes
103
104cache.no-flush=on on backing-file
105    Cache mode:       writeback
106    Cache mode:       writeback
107    Cache mode:       writeback
108    Cache mode:       writeback
109    Cache mode:       writeback, ignore flushes
110
111--- Cache modes after reopen (live snapshot) ---
112
113cache.direct=on on none0
114    Cache mode:       writeback, direct
115    Cache mode:       writeback, direct
116    Cache mode:       writeback, direct
117    Cache mode:       writeback, direct
118    Cache mode:       writeback, direct
119
120cache.direct=on on file
121    Cache mode:       writeback
122    Cache mode:       writeback
123    Cache mode:       writeback, direct
124    Cache mode:       writeback
125    Cache mode:       writeback
126
127cache.direct=on on backing
128    Cache mode:       writeback
129    Cache mode:       writeback
130    Cache mode:       writeback
131    Cache mode:       writeback, direct
132    Cache mode:       writeback, direct
133
134cache.direct=on on backing-file
135    Cache mode:       writeback
136    Cache mode:       writeback
137    Cache mode:       writeback
138    Cache mode:       writeback
139    Cache mode:       writeback, direct
140
141
142cache.writeback=off on none0
143    Cache mode:       writethrough
144    Cache mode:       writeback
145    Cache mode:       writeback
146    Cache mode:       writeback
147    Cache mode:       writeback
148
149cache.writeback=off on file
150QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,file.cache.writeback=off: Block protocol 'file' doesn't support the option 'cache.writeback'
151
152cache.writeback=off on backing
153QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.cache.writeback=off: Could not open backing file: Block format 'qcow2' does not support the option 'cache.writeback'
154
155cache.writeback=off on backing-file
156QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.file.cache.writeback=off: Could not open backing file: Block protocol 'file' doesn't support the option 'cache.writeback'
157
158
159cache.no-flush=on on none0
160    Cache mode:       writeback, ignore flushes
161    Cache mode:       writeback, ignore flushes
162    Cache mode:       writeback, ignore flushes
163    Cache mode:       writeback, ignore flushes
164    Cache mode:       writeback, ignore flushes
165
166cache.no-flush=on on file
167    Cache mode:       writeback
168    Cache mode:       writeback
169    Cache mode:       writeback, ignore flushes
170    Cache mode:       writeback
171    Cache mode:       writeback
172
173cache.no-flush=on on backing
174    Cache mode:       writeback
175    Cache mode:       writeback
176    Cache mode:       writeback
177    Cache mode:       writeback, ignore flushes
178    Cache mode:       writeback, ignore flushes
179
180cache.no-flush=on on backing-file
181    Cache mode:       writeback
182    Cache mode:       writeback
183    Cache mode:       writeback
184    Cache mode:       writeback
185    Cache mode:       writeback, ignore flushes
186
187--- Change cache modes with reopen (qemu-io command, flags) ---
188
189cache.direct=on on none0
190    Cache mode:       writeback, direct
191    Cache mode:       writeback, direct
192    Cache mode:       writeback, direct
193    Cache mode:       writeback, direct
194    Cache mode:       writeback, direct
195
196cache.direct=on on file
197    Cache mode:       writeback, direct
198    Cache mode:       writeback, direct
199    Cache mode:       writeback, direct
200    Cache mode:       writeback, direct
201    Cache mode:       writeback, direct
202
203cache.direct=on on backing
204    Cache mode:       writeback, direct
205    Cache mode:       writeback, direct
206    Cache mode:       writeback, direct
207    Cache mode:       writeback, direct
208    Cache mode:       writeback, direct
209
210cache.direct=on on backing-file
211    Cache mode:       writeback, direct
212    Cache mode:       writeback, direct
213    Cache mode:       writeback, direct
214    Cache mode:       writeback, direct
215    Cache mode:       writeback, direct
216
217
218cache.writeback=off on none0
219    Cache mode:       writeback, direct
220    Cache mode:       writeback, direct
221    Cache mode:       writeback, direct
222    Cache mode:       writeback, direct
223    Cache mode:       writeback, direct
224
225cache.writeback=off on file
226QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,file.cache.writeback=off: Block protocol 'file' doesn't support the option 'cache.writeback'
227
228cache.writeback=off on backing
229QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.cache.writeback=off: Could not open backing file: Block format 'qcow2' does not support the option 'cache.writeback'
230
231cache.writeback=off on backing-file
232QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.file.cache.writeback=off: Could not open backing file: Block protocol 'file' doesn't support the option 'cache.writeback'
233
234
235cache.no-flush=on on none0
236    Cache mode:       writeback, direct
237    Cache mode:       writeback, direct
238    Cache mode:       writeback, direct
239    Cache mode:       writeback, direct
240    Cache mode:       writeback, direct
241
242cache.no-flush=on on file
243    Cache mode:       writeback, direct
244    Cache mode:       writeback, direct
245    Cache mode:       writeback, direct, ignore flushes
246    Cache mode:       writeback, direct
247    Cache mode:       writeback, direct
248
249cache.no-flush=on on backing
250    Cache mode:       writeback, direct
251    Cache mode:       writeback, direct
252    Cache mode:       writeback, direct
253    Cache mode:       writeback, direct, ignore flushes
254    Cache mode:       writeback, direct, ignore flushes
255
256cache.no-flush=on on backing-file
257    Cache mode:       writeback, direct
258    Cache mode:       writeback, direct
259    Cache mode:       writeback, direct
260    Cache mode:       writeback, direct
261    Cache mode:       writeback, direct, ignore flushes
262
263--- Change cache modes with reopen (qemu-io command, options) ---
264
265cache.direct=on on none0
266    Cache mode:       writeback, direct
267    Cache mode:       writeback, direct
268    Cache mode:       writeback, direct
269    Cache mode:       writeback, direct
270    Cache mode:       writeback, direct
271
272cache.direct=on on file
273    Cache mode:       writeback, direct
274    Cache mode:       writeback, direct
275    Cache mode:       writeback, direct
276    Cache mode:       writeback, direct
277    Cache mode:       writeback, direct
278
279cache.direct=on on backing
280    Cache mode:       writeback, direct
281    Cache mode:       writeback, direct
282    Cache mode:       writeback, direct
283    Cache mode:       writeback, direct
284    Cache mode:       writeback, direct
285
286cache.direct=on on backing-file
287    Cache mode:       writeback, direct
288    Cache mode:       writeback, direct
289    Cache mode:       writeback, direct
290    Cache mode:       writeback, direct
291    Cache mode:       writeback, direct
292
293
294cache.writeback=off on none0
295    Cache mode:       writethrough, direct
296    Cache mode:       writeback, direct
297    Cache mode:       writeback, direct
298    Cache mode:       writeback, direct
299    Cache mode:       writeback, direct
300
301cache.writeback=off on file
302QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,file.cache.writeback=off: Block protocol 'file' doesn't support the option 'cache.writeback'
303
304cache.writeback=off on backing
305QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.cache.writeback=off: Could not open backing file: Block format 'qcow2' does not support the option 'cache.writeback'
306
307cache.writeback=off on backing-file
308QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.file.cache.writeback=off: Could not open backing file: Block protocol 'file' doesn't support the option 'cache.writeback'
309
310
311cache.no-flush=on on none0
312    Cache mode:       writeback, direct, ignore flushes
313    Cache mode:       writeback, direct, ignore flushes
314    Cache mode:       writeback, direct, ignore flushes
315    Cache mode:       writeback, direct, ignore flushes
316    Cache mode:       writeback, direct, ignore flushes
317
318cache.no-flush=on on file
319    Cache mode:       writeback, direct
320    Cache mode:       writeback, direct
321    Cache mode:       writeback, direct, ignore flushes
322    Cache mode:       writeback, direct
323    Cache mode:       writeback, direct
324
325cache.no-flush=on on backing
326    Cache mode:       writeback, direct
327    Cache mode:       writeback, direct
328    Cache mode:       writeback, direct
329    Cache mode:       writeback, direct, ignore flushes
330    Cache mode:       writeback, direct, ignore flushes
331
332cache.no-flush=on on backing-file
333    Cache mode:       writeback, direct
334    Cache mode:       writeback, direct
335    Cache mode:       writeback, direct
336    Cache mode:       writeback, direct
337    Cache mode:       writeback, direct, ignore flushes
338
339--- Change cache modes after snapshot ---
340
341cache.direct=on on none0
342    Cache mode:       writeback, direct
343    Cache mode:       writeback, direct
344    Cache mode:       writeback, direct
345    Cache mode:       writeback, direct
346    Cache mode:       writeback, direct
347
348cache.direct=on on file
349    Cache mode:       writeback, direct
350    Cache mode:       writeback
351    Cache mode:       writeback, direct
352    Cache mode:       writeback
353    Cache mode:       writeback
354
355cache.direct=on on backing
356    Cache mode:       writeback, direct
357    Cache mode:       writeback
358    Cache mode:       writeback
359    Cache mode:       writeback, direct
360    Cache mode:       writeback, direct
361
362cache.direct=on on backing-file
363    Cache mode:       writeback, direct
364    Cache mode:       writeback
365    Cache mode:       writeback
366    Cache mode:       writeback
367    Cache mode:       writeback, direct
368
369
370cache.writeback=off on none0
371    Cache mode:       writeback, direct
372    Cache mode:       writeback
373    Cache mode:       writeback
374    Cache mode:       writeback
375    Cache mode:       writeback
376
377cache.writeback=off on file
378QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,file.cache.writeback=off: Block protocol 'file' doesn't support the option 'cache.writeback'
379
380cache.writeback=off on backing
381QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.cache.writeback=off: Could not open backing file: Block format 'qcow2' does not support the option 'cache.writeback'
382
383cache.writeback=off on backing-file
384QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.file.cache.writeback=off: Could not open backing file: Block protocol 'file' doesn't support the option 'cache.writeback'
385
386
387cache.no-flush=on on none0
388    Cache mode:       writeback, direct
389    Cache mode:       writeback, ignore flushes
390    Cache mode:       writeback, ignore flushes
391    Cache mode:       writeback, ignore flushes
392    Cache mode:       writeback, ignore flushes
393
394cache.no-flush=on on file
395    Cache mode:       writeback, direct
396    Cache mode:       writeback
397    Cache mode:       writeback, ignore flushes
398    Cache mode:       writeback
399    Cache mode:       writeback
400
401cache.no-flush=on on backing
402    Cache mode:       writeback, direct
403    Cache mode:       writeback
404    Cache mode:       writeback
405    Cache mode:       writeback, ignore flushes
406    Cache mode:       writeback, ignore flushes
407
408cache.no-flush=on on backing-file
409    Cache mode:       writeback, direct
410    Cache mode:       writeback
411    Cache mode:       writeback
412    Cache mode:       writeback
413    Cache mode:       writeback, ignore flushes
414
415--- Change cache mode in parent, child has explicit option in JSON ---
416
417    Cache mode:       writeback, direct, ignore flushes
418    Cache mode:       writeback, direct, ignore flushes
419    Cache mode:       writeback, direct, ignore flushes
420    Cache mode:       writeback, ignore flushes
421
422=== Check that referenced BDSes don't inherit ===
423
424
425--- Configure cache modes on the command line ---
426
427cache.direct=on on blk
428    Cache mode:       writeback, direct
429    Cache mode:       writeback
430    Cache mode:       writeback
431    Cache mode:       writeback
432
433cache.direct=on on file
434    Cache mode:       writeback
435    Cache mode:       writeback, direct
436    Cache mode:       writeback
437    Cache mode:       writeback
438
439cache.direct=on on backing
440    Cache mode:       writeback
441    Cache mode:       writeback
442    Cache mode:       writeback, direct
443    Cache mode:       writeback
444
445cache.direct=on on backing-file
446    Cache mode:       writeback
447    Cache mode:       writeback
448    Cache mode:       writeback
449    Cache mode:       writeback, direct
450
451
452cache.writeback=off on blk
453    Cache mode:       writeback
454    Cache mode:       writeback
455    Cache mode:       writeback
456    Cache mode:       writeback
457
458cache.writeback=off on file
459    Cache mode:       writeback
460    Cache mode:       writeback
461    Cache mode:       writeback
462    Cache mode:       writeback
463
464cache.writeback=off on backing
465    Cache mode:       writeback
466    Cache mode:       writeback
467    Cache mode:       writeback
468    Cache mode:       writeback
469
470cache.writeback=off on backing-file
471    Cache mode:       writeback
472    Cache mode:       writeback
473    Cache mode:       writeback
474    Cache mode:       writeback
475
476
477cache.no-flush=on on blk
478    Cache mode:       writeback, ignore flushes
479    Cache mode:       writeback
480    Cache mode:       writeback
481    Cache mode:       writeback
482
483cache.no-flush=on on file
484    Cache mode:       writeback
485    Cache mode:       writeback, ignore flushes
486    Cache mode:       writeback
487    Cache mode:       writeback
488
489cache.no-flush=on on backing
490    Cache mode:       writeback
491    Cache mode:       writeback
492    Cache mode:       writeback, ignore flushes
493    Cache mode:       writeback
494
495cache.no-flush=on on backing-file
496    Cache mode:       writeback
497    Cache mode:       writeback
498    Cache mode:       writeback
499    Cache mode:       writeback, ignore flushes
500
501--- Cache modes after reopen (live snapshot) ---
502
503cache.direct=on on blk
504    Cache mode:       writeback, direct
505    Cache mode:       writeback, direct
506    Cache mode:       writeback
507    Cache mode:       writeback
508    Cache mode:       writeback
509
510cache.direct=on on file
511    Cache mode:       writeback
512    Cache mode:       writeback
513    Cache mode:       writeback, direct
514    Cache mode:       writeback
515    Cache mode:       writeback
516
517cache.direct=on on backing
518    Cache mode:       writeback
519    Cache mode:       writeback
520    Cache mode:       writeback
521    Cache mode:       writeback, direct
522    Cache mode:       writeback
523
524cache.direct=on on backing-file
525    Cache mode:       writeback
526    Cache mode:       writeback
527    Cache mode:       writeback
528    Cache mode:       writeback
529    Cache mode:       writeback, direct
530
531
532cache.writeback=off on blk
533    Cache mode:       writethrough
534    Cache mode:       writeback
535    Cache mode:       writeback
536    Cache mode:       writeback
537    Cache mode:       writeback
538
539cache.writeback=off on file
540    Cache mode:       writeback
541    Cache mode:       writeback
542    Cache mode:       writeback
543    Cache mode:       writeback
544    Cache mode:       writeback
545
546cache.writeback=off on backing
547    Cache mode:       writeback
548    Cache mode:       writeback
549    Cache mode:       writeback
550    Cache mode:       writeback
551    Cache mode:       writeback
552
553cache.writeback=off on backing-file
554    Cache mode:       writeback
555    Cache mode:       writeback
556    Cache mode:       writeback
557    Cache mode:       writeback
558    Cache mode:       writeback
559
560
561cache.no-flush=on on blk
562    Cache mode:       writeback, ignore flushes
563    Cache mode:       writeback, ignore flushes
564    Cache mode:       writeback
565    Cache mode:       writeback
566    Cache mode:       writeback
567
568cache.no-flush=on on file
569    Cache mode:       writeback
570    Cache mode:       writeback
571    Cache mode:       writeback, ignore flushes
572    Cache mode:       writeback
573    Cache mode:       writeback
574
575cache.no-flush=on on backing
576    Cache mode:       writeback
577    Cache mode:       writeback
578    Cache mode:       writeback
579    Cache mode:       writeback, ignore flushes
580    Cache mode:       writeback
581
582cache.no-flush=on on backing-file
583    Cache mode:       writeback
584    Cache mode:       writeback
585    Cache mode:       writeback
586    Cache mode:       writeback
587    Cache mode:       writeback, ignore flushes
588
589--- Change cache modes with reopen (qemu-io command, flags) ---
590
591cache.direct=on on blk
592    Cache mode:       writeback, direct
593    Cache mode:       writeback
594    Cache mode:       writeback
595    Cache mode:       writeback
596
597cache.direct=on on file
598    Cache mode:       writeback, direct
599    Cache mode:       writeback, direct
600    Cache mode:       writeback
601    Cache mode:       writeback
602
603cache.direct=on on backing
604    Cache mode:       writeback, direct
605    Cache mode:       writeback
606    Cache mode:       writeback, direct
607    Cache mode:       writeback
608
609cache.direct=on on backing-file
610    Cache mode:       writeback, direct
611    Cache mode:       writeback
612    Cache mode:       writeback
613    Cache mode:       writeback, direct
614
615
616cache.writeback=off on blk
617    Cache mode:       writeback, direct
618    Cache mode:       writeback
619    Cache mode:       writeback
620    Cache mode:       writeback
621
622cache.writeback=off on file
623    Cache mode:       writeback, direct
624    Cache mode:       writeback
625    Cache mode:       writeback
626    Cache mode:       writeback
627
628cache.writeback=off on backing
629    Cache mode:       writeback, direct
630    Cache mode:       writeback
631    Cache mode:       writeback
632    Cache mode:       writeback
633
634cache.writeback=off on backing-file
635    Cache mode:       writeback, direct
636    Cache mode:       writeback
637    Cache mode:       writeback
638    Cache mode:       writeback
639
640
641cache.no-flush=on on blk
642    Cache mode:       writeback, direct
643    Cache mode:       writeback
644    Cache mode:       writeback
645    Cache mode:       writeback
646
647cache.no-flush=on on file
648    Cache mode:       writeback, direct
649    Cache mode:       writeback, ignore flushes
650    Cache mode:       writeback
651    Cache mode:       writeback
652
653cache.no-flush=on on backing
654    Cache mode:       writeback, direct
655    Cache mode:       writeback
656    Cache mode:       writeback, ignore flushes
657    Cache mode:       writeback
658
659cache.no-flush=on on backing-file
660    Cache mode:       writeback, direct
661    Cache mode:       writeback
662    Cache mode:       writeback
663    Cache mode:       writeback, ignore flushes
664
665=== Reopening children instead of the root ===
666
667
668--- Basic reopen ---
669
670cache.direct=on on none0
671    Cache mode:       writeback, direct
672    Cache mode:       writeback, direct
673    Cache mode:       writeback, direct
674    Cache mode:       writeback, direct
675    Cache mode:       writeback, direct
676
677cache.direct=on on file
678    Cache mode:       writeback
679    Cache mode:       writeback
680    Cache mode:       writeback, direct
681    Cache mode:       writeback, direct
682    Cache mode:       writeback, direct
683
684cache.direct=on on backing
685    Cache mode:       writeback
686    Cache mode:       writeback
687    Cache mode:       writeback
688    Cache mode:       writeback, direct
689    Cache mode:       writeback, direct
690
691cache.direct=on on backing-file
692    Cache mode:       writeback
693    Cache mode:       writeback
694    Cache mode:       writeback
695    Cache mode:       writeback, direct
696    Cache mode:       writeback, direct
697
698
699cache.writeback=off on none0
700    Cache mode:       writethrough
701    Cache mode:       writeback
702    Cache mode:       writeback
703    Cache mode:       writeback, direct
704    Cache mode:       writeback, direct
705
706cache.writeback=off on file
707QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,file.cache.writeback=off: Block protocol 'file' doesn't support the option 'cache.writeback'
708
709cache.writeback=off on backing
710QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.cache.writeback=off: Could not open backing file: Block format 'qcow2' does not support the option 'cache.writeback'
711
712cache.writeback=off on backing-file
713QEMU_PROG: -drive if=none,file=TEST_DIR/t.qcow2,backing.file.filename=TEST_DIR/t.qcow2.base,node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,backing.file.cache.writeback=off: Could not open backing file: Block protocol 'file' doesn't support the option 'cache.writeback'
714
715
716cache.no-flush=on on none0
717    Cache mode:       writeback, ignore flushes
718    Cache mode:       writeback, ignore flushes
719    Cache mode:       writeback, ignore flushes
720    Cache mode:       writeback, direct, ignore flushes
721    Cache mode:       writeback, direct, ignore flushes
722
723cache.no-flush=on on file
724    Cache mode:       writeback
725    Cache mode:       writeback
726    Cache mode:       writeback, ignore flushes
727    Cache mode:       writeback, direct
728    Cache mode:       writeback, direct
729
730cache.no-flush=on on backing
731    Cache mode:       writeback
732    Cache mode:       writeback
733    Cache mode:       writeback
734    Cache mode:       writeback, direct, ignore flushes
735    Cache mode:       writeback, direct, ignore flushes
736
737cache.no-flush=on on backing-file
738    Cache mode:       writeback
739    Cache mode:       writeback
740    Cache mode:       writeback
741    Cache mode:       writeback, direct
742    Cache mode:       writeback, direct, ignore flushes
743
744--- Change cache mode after reopening child ---
745
746    Cache mode:       writeback, direct
747    Cache mode:       writeback
748    Cache mode:       writeback, direct
749    Cache mode:       writeback, ignore flushes
750*** done
751