1 QA output created by 142
2 Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728
3 Formatting 'TEST_DIR/t.IMGFMT.snap', fmt=IMGFMT size=134217728
4 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
6 === Simple test for all cache modes ===
8 Testing: -drive file=TEST_DIR/t.qcow2,cache=none
9 QEMU X.Y.Z monitor - type 'help' for more information
10 (qemu) q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
12 Testing: -drive file=TEST_DIR/t.qcow2,cache=directsync
13 QEMU X.Y.Z monitor - type 'help' for more information
14 (qemu) q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
16 Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback
17 QEMU X.Y.Z monitor - type 'help' for more information
18 (qemu) q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
20 Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough
21 QEMU X.Y.Z monitor - type 'help' for more information
22 (qemu) q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
24 Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe
25 QEMU X.Y.Z monitor - type 'help' for more information
26 (qemu) q
\e[K
\e[Dqu
\e[K
\e[D
\e[Dqui
\e[K
\e[D
\e[D
\e[Dquit
\e[K
28 Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value
29 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value: invalid cache option
32 === Check inheritance of cache modes ===
35 --- Configure cache modes on the command line ---
37 cache.direct=on on none0
38 Cache mode: writeback, direct
39 Cache mode: writeback, direct
40 Cache mode: writeback, direct
41 Cache mode: writeback, direct
43 cache.direct=on on file
45 Cache mode: writeback, direct
49 cache.direct=on on backing
52 Cache mode: writeback, direct
53 Cache mode: writeback, direct
55 cache.direct=on on backing-file
59 Cache mode: writeback, direct
62 cache.writeback=off on none0
63 Cache mode: writethrough
65 Cache mode: writethrough
68 cache.writeback=off on file
70 Cache mode: writethrough
74 cache.writeback=off on backing
77 Cache mode: writethrough
80 cache.writeback=off on backing-file
84 Cache mode: writethrough
87 cache.no-flush=on on none0
88 Cache mode: writeback, ignore flushes
89 Cache mode: writeback, ignore flushes
90 Cache mode: writeback, ignore flushes
91 Cache mode: writeback, ignore flushes
93 cache.no-flush=on on file
95 Cache mode: writeback, ignore flushes
99 cache.no-flush=on on backing
100 Cache mode: writeback
101 Cache mode: writeback
102 Cache mode: writeback, ignore flushes
103 Cache mode: writeback, ignore flushes
105 cache.no-flush=on on backing-file
106 Cache mode: writeback
107 Cache mode: writeback
108 Cache mode: writeback
109 Cache mode: writeback, ignore flushes
111 --- Cache modes after reopen (live snapshot) ---
113 cache.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
120 cache.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
127 cache.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
134 cache.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
142 cache.writeback=off on none0
143 Cache mode: writethrough
144 Cache mode: writethrough
145 Cache mode: writeback
146 Cache mode: writethrough
147 Cache mode: writeback
149 cache.writeback=off on file
150 Cache mode: writeback
151 Cache mode: writeback
152 Cache mode: writethrough
153 Cache mode: writeback
154 Cache mode: writeback
156 cache.writeback=off on backing
157 Cache mode: writeback
158 Cache mode: writeback
159 Cache mode: writeback
160 Cache mode: writethrough
161 Cache mode: writeback
163 cache.writeback=off on backing-file
164 Cache mode: writeback
165 Cache mode: writeback
166 Cache mode: writeback
167 Cache mode: writeback
168 Cache mode: writethrough
171 cache.no-flush=on on none0
172 Cache mode: writeback, ignore flushes
173 Cache mode: writeback, ignore flushes
174 Cache mode: writeback, ignore flushes
175 Cache mode: writeback, ignore flushes
176 Cache mode: writeback, ignore flushes
178 cache.no-flush=on on file
179 Cache mode: writeback
180 Cache mode: writeback
181 Cache mode: writeback, ignore flushes
182 Cache mode: writeback
183 Cache mode: writeback
185 cache.no-flush=on on backing
186 Cache mode: writeback
187 Cache mode: writeback
188 Cache mode: writeback
189 Cache mode: writeback, ignore flushes
190 Cache mode: writeback, ignore flushes
192 cache.no-flush=on on backing-file
193 Cache mode: writeback
194 Cache mode: writeback
195 Cache mode: writeback
196 Cache mode: writeback
197 Cache mode: writeback, ignore flushes
199 --- Change cache modes with reopen (qemu-io command, flags) ---
201 cache.direct=on on none0
202 Cache mode: writeback, direct
203 Cache mode: writeback, direct
204 Cache mode: writeback, direct
205 Cache mode: writeback, direct
207 cache.direct=on on file
208 Cache mode: writeback, direct
209 Cache mode: writeback, direct
210 Cache mode: writeback, direct
211 Cache mode: writeback, direct
213 cache.direct=on on backing
214 Cache mode: writeback, direct
215 Cache mode: writeback, direct
216 Cache mode: writeback, direct
217 Cache mode: writeback, direct
219 cache.direct=on on backing-file
220 Cache mode: writeback, direct
221 Cache mode: writeback, direct
222 Cache mode: writeback, direct
223 Cache mode: writeback, direct
226 cache.writeback=off on none0
227 Cache mode: writeback, direct
228 Cache mode: writeback, direct
229 Cache mode: writeback, direct
230 Cache mode: writeback, direct
232 cache.writeback=off on file
233 Cache mode: writeback, direct
234 Cache mode: writethrough, direct
235 Cache mode: writeback, direct
236 Cache mode: writeback, direct
238 cache.writeback=off on backing
239 Cache mode: writeback, direct
240 Cache mode: writeback, direct
241 Cache mode: writethrough, direct
242 Cache mode: writeback, direct
244 cache.writeback=off on backing-file
245 Cache mode: writeback, direct
246 Cache mode: writeback, direct
247 Cache mode: writeback, direct
248 Cache mode: writethrough, direct
251 cache.no-flush=on on none0
252 Cache mode: writeback, direct
253 Cache mode: writeback, direct
254 Cache mode: writeback, direct
255 Cache mode: writeback, direct
257 cache.no-flush=on on file
258 Cache mode: writeback, direct
259 Cache mode: writeback, direct, ignore flushes
260 Cache mode: writeback, direct
261 Cache mode: writeback, direct
263 cache.no-flush=on on backing
264 Cache mode: writeback, direct
265 Cache mode: writeback, direct
266 Cache mode: writeback, direct, ignore flushes
267 Cache mode: writeback, direct, ignore flushes
269 cache.no-flush=on on backing-file
270 Cache mode: writeback, direct
271 Cache mode: writeback, direct
272 Cache mode: writeback, direct
273 Cache mode: writeback, direct, ignore flushes
275 --- Change cache modes with reopen (qemu-io command, options) ---
277 cache.direct=on on none0
278 Cache mode: writeback, direct
279 Cache mode: writeback, direct
280 Cache mode: writeback, direct
281 Cache mode: writeback, direct
283 cache.direct=on on file
284 Cache mode: writeback, direct
285 Cache mode: writeback, direct
286 Cache mode: writeback, direct
287 Cache mode: writeback, direct
289 cache.direct=on on backing
290 Cache mode: writeback, direct
291 Cache mode: writeback, direct
292 Cache mode: writeback, direct
293 Cache mode: writeback, direct
295 cache.direct=on on backing-file
296 Cache mode: writeback, direct
297 Cache mode: writeback, direct
298 Cache mode: writeback, direct
299 Cache mode: writeback, direct
302 cache.writeback=off on none0
303 Cache mode: writethrough, direct
304 Cache mode: writeback, direct
305 Cache mode: writethrough, direct
306 Cache mode: writeback, direct
308 cache.writeback=off on file
309 Cache mode: writeback, direct
310 Cache mode: writethrough, direct
311 Cache mode: writeback, direct
312 Cache mode: writeback, direct
314 cache.writeback=off on backing
315 Cache mode: writeback, direct
316 Cache mode: writeback, direct
317 Cache mode: writethrough, direct
318 Cache mode: writeback, direct
320 cache.writeback=off on backing-file
321 Cache mode: writeback, direct
322 Cache mode: writeback, direct
323 Cache mode: writeback, direct
324 Cache mode: writethrough, direct
327 cache.no-flush=on on none0
328 Cache mode: writeback, direct, ignore flushes
329 Cache mode: writeback, direct, ignore flushes
330 Cache mode: writeback, direct, ignore flushes
331 Cache mode: writeback, direct, ignore flushes
333 cache.no-flush=on on file
334 Cache mode: writeback, direct
335 Cache mode: writeback, direct, ignore flushes
336 Cache mode: writeback, direct
337 Cache mode: writeback, direct
339 cache.no-flush=on on backing
340 Cache mode: writeback, direct
341 Cache mode: writeback, direct
342 Cache mode: writeback, direct, ignore flushes
343 Cache mode: writeback, direct, ignore flushes
345 cache.no-flush=on on backing-file
346 Cache mode: writeback, direct
347 Cache mode: writeback, direct
348 Cache mode: writeback, direct
349 Cache mode: writeback, direct, ignore flushes
351 --- Change cache modes after snapshot ---
353 cache.direct=on on none0
354 Cache mode: writeback, direct
355 Cache mode: writeback, direct
356 Cache mode: writeback, direct
357 Cache mode: writeback, direct
358 Cache mode: writeback, direct
360 cache.direct=on on file
361 Cache mode: writeback, direct
362 Cache mode: writeback
363 Cache mode: writeback, direct
364 Cache mode: writeback
365 Cache mode: writeback
367 cache.direct=on on backing
368 Cache mode: writeback, direct
369 Cache mode: writeback
370 Cache mode: writeback
371 Cache mode: writeback, direct
372 Cache mode: writeback, direct
374 cache.direct=on on backing-file
375 Cache mode: writeback, direct
376 Cache mode: writeback
377 Cache mode: writeback
378 Cache mode: writeback
379 Cache mode: writeback, direct
382 cache.writeback=off on none0
383 Cache mode: writeback, direct
384 Cache mode: writethrough
385 Cache mode: writeback
386 Cache mode: writethrough
387 Cache mode: writeback
389 cache.writeback=off on file
390 Cache mode: writeback, direct
391 Cache mode: writeback
392 Cache mode: writethrough
393 Cache mode: writeback
394 Cache mode: writeback
396 cache.writeback=off on backing
397 Cache mode: writeback, direct
398 Cache mode: writeback
399 Cache mode: writeback
400 Cache mode: writethrough
401 Cache mode: writeback
403 cache.writeback=off on backing-file
404 Cache mode: writeback, direct
405 Cache mode: writeback
406 Cache mode: writeback
407 Cache mode: writeback
408 Cache mode: writethrough
411 cache.no-flush=on on none0
412 Cache mode: writeback, direct
413 Cache mode: writeback, ignore flushes
414 Cache mode: writeback, ignore flushes
415 Cache mode: writeback, ignore flushes
416 Cache mode: writeback, ignore flushes
418 cache.no-flush=on on file
419 Cache mode: writeback, direct
420 Cache mode: writeback
421 Cache mode: writeback, ignore flushes
422 Cache mode: writeback
423 Cache mode: writeback
425 cache.no-flush=on on backing
426 Cache mode: writeback, direct
427 Cache mode: writeback
428 Cache mode: writeback
429 Cache mode: writeback, ignore flushes
430 Cache mode: writeback, ignore flushes
432 cache.no-flush=on on backing-file
433 Cache mode: writeback, direct
434 Cache mode: writeback
435 Cache mode: writeback
436 Cache mode: writeback
437 Cache mode: writeback, ignore flushes
439 --- Change cache mode in parent, child has explicit option in JSON ---
441 Cache mode: writethrough, direct, ignore flushes
442 Cache mode: writeback, direct, ignore flushes
443 Cache mode: writethrough, ignore flushes
445 === Check that referenced BDSes don't inherit ===
448 --- Configure cache modes on the command line ---
450 cache.direct=on on blk
451 Cache mode: writeback, direct
452 Cache mode: writeback
453 Cache mode: writeback
454 Cache mode: writeback
456 cache.direct=on on file
457 Cache mode: writeback
458 Cache mode: writeback, direct
459 Cache mode: writeback
460 Cache mode: writeback
462 cache.direct=on on backing
463 Cache mode: writeback
464 Cache mode: writeback
465 Cache mode: writeback, direct
466 Cache mode: writeback
468 cache.direct=on on backing-file
469 Cache mode: writeback
470 Cache mode: writeback
471 Cache mode: writeback
472 Cache mode: writeback, direct
475 cache.writeback=off on blk
476 Cache mode: writethrough
477 Cache mode: writeback
478 Cache mode: writeback
479 Cache mode: writeback
481 cache.writeback=off on file
482 Cache mode: writeback
483 Cache mode: writethrough
484 Cache mode: writeback
485 Cache mode: writeback
487 cache.writeback=off on backing
488 Cache mode: writeback
489 Cache mode: writeback
490 Cache mode: writethrough
491 Cache mode: writeback
493 cache.writeback=off on backing-file
494 Cache mode: writeback
495 Cache mode: writeback
496 Cache mode: writeback
497 Cache mode: writethrough
500 cache.no-flush=on on blk
501 Cache mode: writeback, ignore flushes
502 Cache mode: writeback
503 Cache mode: writeback
504 Cache mode: writeback
506 cache.no-flush=on on file
507 Cache mode: writeback
508 Cache mode: writeback, ignore flushes
509 Cache mode: writeback
510 Cache mode: writeback
512 cache.no-flush=on on backing
513 Cache mode: writeback
514 Cache mode: writeback
515 Cache mode: writeback, ignore flushes
516 Cache mode: writeback
518 cache.no-flush=on on backing-file
519 Cache mode: writeback
520 Cache mode: writeback
521 Cache mode: writeback
522 Cache mode: writeback, ignore flushes
524 --- Cache modes after reopen (live snapshot) ---
526 cache.direct=on on blk
527 Cache mode: writeback, direct
528 Cache mode: writeback, direct
529 Cache mode: writeback
530 Cache mode: writeback
531 Cache mode: writeback
533 cache.direct=on on file
534 Cache mode: writeback
535 Cache mode: writeback
536 Cache mode: writeback, direct
537 Cache mode: writeback
538 Cache mode: writeback
540 cache.direct=on on backing
541 Cache mode: writeback
542 Cache mode: writeback
543 Cache mode: writeback
544 Cache mode: writeback, direct
545 Cache mode: writeback
547 cache.direct=on on backing-file
548 Cache mode: writeback
549 Cache mode: writeback
550 Cache mode: writeback
551 Cache mode: writeback
552 Cache mode: writeback, direct
555 cache.writeback=off on blk
556 Cache mode: writethrough
557 Cache mode: writethrough
558 Cache mode: writeback
559 Cache mode: writeback
560 Cache mode: writeback
562 cache.writeback=off on file
563 Cache mode: writeback
564 Cache mode: writeback
565 Cache mode: writethrough
566 Cache mode: writeback
567 Cache mode: writeback
569 cache.writeback=off on backing
570 Cache mode: writeback
571 Cache mode: writeback
572 Cache mode: writeback
573 Cache mode: writethrough
574 Cache mode: writeback
576 cache.writeback=off on backing-file
577 Cache mode: writeback
578 Cache mode: writeback
579 Cache mode: writeback
580 Cache mode: writeback
581 Cache mode: writethrough
584 cache.no-flush=on on blk
585 Cache mode: writeback, ignore flushes
586 Cache mode: writeback, ignore flushes
587 Cache mode: writeback
588 Cache mode: writeback
589 Cache mode: writeback
591 cache.no-flush=on on file
592 Cache mode: writeback
593 Cache mode: writeback
594 Cache mode: writeback, ignore flushes
595 Cache mode: writeback
596 Cache mode: writeback
598 cache.no-flush=on on backing
599 Cache mode: writeback
600 Cache mode: writeback
601 Cache mode: writeback
602 Cache mode: writeback, ignore flushes
603 Cache mode: writeback
605 cache.no-flush=on on backing-file
606 Cache mode: writeback
607 Cache mode: writeback
608 Cache mode: writeback
609 Cache mode: writeback
610 Cache mode: writeback, ignore flushes
612 --- Change cache modes with reopen (qemu-io command, flags) ---
614 cache.direct=on on blk
615 Cache mode: writeback, direct
616 Cache mode: writeback
617 Cache mode: writeback
618 Cache mode: writeback
620 cache.direct=on on file
621 Cache mode: writeback, direct
622 Cache mode: writeback, direct
623 Cache mode: writeback
624 Cache mode: writeback
626 cache.direct=on on backing
627 Cache mode: writeback, direct
628 Cache mode: writeback
629 Cache mode: writeback, direct
630 Cache mode: writeback
632 cache.direct=on on backing-file
633 Cache mode: writeback, direct
634 Cache mode: writeback
635 Cache mode: writeback
636 Cache mode: writeback, direct
639 cache.writeback=off on blk
640 Cache mode: writeback, direct
641 Cache mode: writeback
642 Cache mode: writeback
643 Cache mode: writeback
645 cache.writeback=off on file
646 Cache mode: writeback, direct
647 Cache mode: writethrough
648 Cache mode: writeback
649 Cache mode: writeback
651 cache.writeback=off on backing
652 Cache mode: writeback, direct
653 Cache mode: writeback
654 Cache mode: writethrough
655 Cache mode: writeback
657 cache.writeback=off on backing-file
658 Cache mode: writeback, direct
659 Cache mode: writeback
660 Cache mode: writeback
661 Cache mode: writethrough
664 cache.no-flush=on on blk
665 Cache mode: writeback, direct
666 Cache mode: writeback
667 Cache mode: writeback
668 Cache mode: writeback
670 cache.no-flush=on on file
671 Cache mode: writeback, direct
672 Cache mode: writeback, ignore flushes
673 Cache mode: writeback
674 Cache mode: writeback
676 cache.no-flush=on on backing
677 Cache mode: writeback, direct
678 Cache mode: writeback
679 Cache mode: writeback, ignore flushes
680 Cache mode: writeback
682 cache.no-flush=on on backing-file
683 Cache mode: writeback, direct
684 Cache mode: writeback
685 Cache mode: writeback
686 Cache mode: writeback, ignore flushes
688 === Reopening children instead of the root ===
693 cache.direct=on on none0
694 Cache mode: writeback, direct
695 Cache mode: writeback, direct
696 Cache mode: writeback, direct
697 Cache mode: writeback, direct
699 cache.direct=on on file
700 Cache mode: writeback
701 Cache mode: writeback, direct
702 Cache mode: writeback, direct
703 Cache mode: writeback, direct
705 cache.direct=on on backing
706 Cache mode: writeback
707 Cache mode: writeback
708 Cache mode: writeback, direct
709 Cache mode: writeback, direct
711 cache.direct=on on backing-file
712 Cache mode: writeback
713 Cache mode: writeback
714 Cache mode: writeback, direct
715 Cache mode: writeback, direct
718 cache.writeback=off on none0
719 Cache mode: writethrough
720 Cache mode: writeback
721 Cache mode: writethrough, direct
722 Cache mode: writeback, direct
724 cache.writeback=off on file
725 Cache mode: writeback
726 Cache mode: writethrough
727 Cache mode: writeback, direct
728 Cache mode: writeback, direct
730 cache.writeback=off on backing
731 Cache mode: writeback
732 Cache mode: writeback
733 Cache mode: writethrough, direct
734 Cache mode: writeback, direct
736 cache.writeback=off on backing-file
737 Cache mode: writeback
738 Cache mode: writeback
739 Cache mode: writeback, direct
740 Cache mode: writethrough, direct
743 cache.no-flush=on on none0
744 Cache mode: writeback, ignore flushes
745 Cache mode: writeback, ignore flushes
746 Cache mode: writeback, direct, ignore flushes
747 Cache mode: writeback, direct, ignore flushes
749 cache.no-flush=on on file
750 Cache mode: writeback
751 Cache mode: writeback, ignore flushes
752 Cache mode: writeback, direct
753 Cache mode: writeback, direct
755 cache.no-flush=on on backing
756 Cache mode: writeback
757 Cache mode: writeback
758 Cache mode: writeback, direct, ignore flushes
759 Cache mode: writeback, direct, ignore flushes
761 cache.no-flush=on on backing-file
762 Cache mode: writeback
763 Cache mode: writeback
764 Cache mode: writeback, direct
765 Cache mode: writeback, direct, ignore flushes
767 --- Change cache mode after reopening child ---
769 Cache mode: writeback, direct
770 Cache mode: writethrough
771 Cache mode: writeback, direct
772 Cache mode: writeback, ignore flushes