blob: bdafa3ace36004c8529c32e002c85d1e2dc19575 [file] [log] [blame]
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +01001QA output created by 039
2
3== Checking that image is clean on shutdown ==
Fam Zheng74864582014-12-09 15:38:03 +08004Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +01005wrote 512/512 bytes at offset 0
6512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Max Reitz0485e6e2019-11-07 17:36:49 +01007incompatible_features []
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +01008No errors were found on the image.
9
10== Creating a dirty image file ==
Fam Zheng74864582014-12-09 15:38:03 +080011Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010012wrote 512/512 bytes at offset 0
13512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Andrey Shinkevich036d8cb2019-09-04 12:11:19 +030014./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" )
Max Reitz0485e6e2019-11-07 17:36:49 +010015incompatible_features [0]
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010016ERROR cluster 5 refcount=0 reference=1
Max Reitzb3f3a302013-09-02 16:36:15 +020017ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010018
192 errors were found on the image.
20Data may be corrupted, or further writes to the image may corrupt it.
21
22== Read-only access must still work ==
23read 512/512 bytes at offset 0
24512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Max Reitz0485e6e2019-11-07 17:36:49 +010025incompatible_features [0]
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010026
27== Repairing the image file must succeed ==
Max Reitzd26e6ec2014-10-22 14:09:42 +020028ERROR cluster 5 refcount=0 reference=1
29Rebuilding refcount structure
30Repairing cluster 1 refcount=1 reference=0
31Repairing cluster 2 refcount=1 reference=0
Stefan Hajnoczi058f8f12012-08-09 13:05:56 +010032The following inconsistencies were found and repaired:
33
34 0 leaked clusters
35 1 corruptions
36
37Double checking the fixed image now...
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010038No errors were found on the image.
Max Reitz0485e6e2019-11-07 17:36:49 +010039incompatible_features []
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010040
41== Data should still be accessible after repair ==
42read 512/512 bytes at offset 0
43512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
44
45== Opening a dirty image read/write should repair it ==
Fam Zheng74864582014-12-09 15:38:03 +080046Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010047wrote 512/512 bytes at offset 0
48512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Andrey Shinkevich036d8cb2019-09-04 12:11:19 +030049./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" )
Max Reitz0485e6e2019-11-07 17:36:49 +010050incompatible_features [0]
Max Reitzd26e6ec2014-10-22 14:09:42 +020051ERROR cluster 5 refcount=0 reference=1
52Rebuilding refcount structure
53Repairing cluster 1 refcount=1 reference=0
54Repairing cluster 2 refcount=1 reference=0
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010055wrote 512/512 bytes at offset 0
56512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Max Reitz0485e6e2019-11-07 17:36:49 +010057incompatible_features []
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010058
59== Creating an image file with lazy_refcounts=off ==
Fam Zheng74864582014-12-09 15:38:03 +080060Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010061wrote 512/512 bytes at offset 0
62512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Andrey Shinkevich036d8cb2019-09-04 12:11:19 +030063./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" )
Max Reitz0485e6e2019-11-07 17:36:49 +010064incompatible_features []
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010065No errors were found on the image.
Kevin Wolf4c2e5f82014-04-03 13:47:50 +020066
67== Committing to a backing file with lazy_refcounts=on ==
Fam Zheng74864582014-12-09 15:38:03 +080068Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728
Kővágó, Zoltánfe646692015-07-07 16:42:10 +020069Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
Kevin Wolf4c2e5f82014-04-03 13:47:50 +020070wrote 512/512 bytes at offset 0
71512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
72Image committed.
Max Reitz0485e6e2019-11-07 17:36:49 +010073incompatible_features []
74incompatible_features []
Kevin Wolf4c2e5f82014-04-03 13:47:50 +020075No errors were found on the image.
76No errors were found on the image.
Kevin Wolfe6150532015-09-04 18:26:09 +020077
78== Changing lazy_refcounts setting at runtime ==
79Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
80wrote 512/512 bytes at offset 0
81512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Andrey Shinkevich036d8cb2019-09-04 12:11:19 +030082./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" )
Max Reitz0485e6e2019-11-07 17:36:49 +010083incompatible_features [0]
Kevin Wolfe6150532015-09-04 18:26:09 +020084ERROR cluster 5 refcount=0 reference=1
85ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0
86
872 errors were found on the image.
88Data may be corrupted, or further writes to the image may corrupt it.
89Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
90wrote 512/512 bytes at offset 0
91512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
Andrey Shinkevich036d8cb2019-09-04 12:11:19 +030092./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" )
Max Reitz0485e6e2019-11-07 17:36:49 +010093incompatible_features []
Kevin Wolfe6150532015-09-04 18:26:09 +020094No errors were found on the image.
Stefan Hajnoczidc68afe2012-07-27 09:05:24 +010095*** done