2012-07-27 10:05:24 +02:00
|
|
|
QA output created by 039
|
|
|
|
|
|
|
|
== Checking that image is clean on shutdown ==
|
2014-12-09 08:38:03 +01:00
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
2012-07-27 10:05:24 +02:00
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
incompatible_features 0x0
|
|
|
|
No errors were found on the image.
|
|
|
|
|
|
|
|
== Creating a dirty image file ==
|
2014-12-09 08:38:03 +01:00
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
2012-07-27 10:05:24 +02:00
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
2017-09-12 16:44:54 +02:00
|
|
|
./common.rc: Killed ( if [ "${VALGRIND_QEMU}" == "y" ]; then
|
2016-05-10 18:11:27 +02:00
|
|
|
exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
else
|
2016-05-10 18:11:27 +02:00
|
|
|
exec "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
fi )
|
2012-07-27 10:05:24 +02:00
|
|
|
incompatible_features 0x1
|
|
|
|
ERROR cluster 5 refcount=0 reference=1
|
2013-09-02 16:36:15 +02:00
|
|
|
ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0
|
2012-07-27 10:05:24 +02:00
|
|
|
|
|
|
|
2 errors were found on the image.
|
|
|
|
Data may be corrupted, or further writes to the image may corrupt it.
|
|
|
|
|
|
|
|
== Read-only access must still work ==
|
|
|
|
read 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
incompatible_features 0x1
|
|
|
|
|
|
|
|
== Repairing the image file must succeed ==
|
2014-10-22 14:09:42 +02:00
|
|
|
ERROR cluster 5 refcount=0 reference=1
|
|
|
|
Rebuilding refcount structure
|
|
|
|
Repairing cluster 1 refcount=1 reference=0
|
|
|
|
Repairing cluster 2 refcount=1 reference=0
|
2012-08-09 14:05:56 +02:00
|
|
|
The following inconsistencies were found and repaired:
|
|
|
|
|
|
|
|
0 leaked clusters
|
|
|
|
1 corruptions
|
|
|
|
|
|
|
|
Double checking the fixed image now...
|
2012-07-27 10:05:24 +02:00
|
|
|
No errors were found on the image.
|
|
|
|
incompatible_features 0x0
|
|
|
|
|
|
|
|
== Data should still be accessible after repair ==
|
|
|
|
read 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
|
|
|
|
== Opening a dirty image read/write should repair it ==
|
2014-12-09 08:38:03 +01:00
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
2012-07-27 10:05:24 +02:00
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
2017-09-12 16:44:54 +02:00
|
|
|
./common.rc: Killed ( if [ "${VALGRIND_QEMU}" == "y" ]; then
|
2016-05-10 18:11:27 +02:00
|
|
|
exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
else
|
2016-05-10 18:11:27 +02:00
|
|
|
exec "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
fi )
|
2012-07-27 10:05:24 +02:00
|
|
|
incompatible_features 0x1
|
2014-10-22 14:09:42 +02:00
|
|
|
ERROR cluster 5 refcount=0 reference=1
|
|
|
|
Rebuilding refcount structure
|
|
|
|
Repairing cluster 1 refcount=1 reference=0
|
|
|
|
Repairing cluster 2 refcount=1 reference=0
|
2012-07-27 10:05:24 +02:00
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
incompatible_features 0x0
|
|
|
|
|
|
|
|
== Creating an image file with lazy_refcounts=off ==
|
2014-12-09 08:38:03 +01:00
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
2012-07-27 10:05:24 +02:00
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
2017-09-12 16:44:54 +02:00
|
|
|
./common.rc: Killed ( if [ "${VALGRIND_QEMU}" == "y" ]; then
|
2016-05-10 18:11:27 +02:00
|
|
|
exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
else
|
2016-05-10 18:11:27 +02:00
|
|
|
exec "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
fi )
|
2012-07-27 10:05:24 +02:00
|
|
|
incompatible_features 0x0
|
|
|
|
No errors were found on the image.
|
2014-04-03 13:47:50 +02:00
|
|
|
|
|
|
|
== Committing to a backing file with lazy_refcounts=on ==
|
2014-12-09 08:38:03 +01:00
|
|
|
Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728
|
2015-07-07 16:42:10 +02:00
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base
|
2014-04-03 13:47:50 +02:00
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
Image committed.
|
|
|
|
incompatible_features 0x0
|
|
|
|
incompatible_features 0x0
|
|
|
|
No errors were found on the image.
|
|
|
|
No errors were found on the image.
|
2015-09-04 18:26:09 +02:00
|
|
|
|
|
|
|
== Changing lazy_refcounts setting at runtime ==
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
2017-09-12 16:44:54 +02:00
|
|
|
./common.rc: Killed ( if [ "${VALGRIND_QEMU}" == "y" ]; then
|
2016-05-10 18:11:27 +02:00
|
|
|
exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
else
|
2016-05-10 18:11:27 +02:00
|
|
|
exec "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
fi )
|
2015-09-04 18:26:09 +02:00
|
|
|
incompatible_features 0x1
|
|
|
|
ERROR cluster 5 refcount=0 reference=1
|
|
|
|
ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0
|
|
|
|
|
|
|
|
2 errors were found on the image.
|
|
|
|
Data may be corrupted, or further writes to the image may corrupt it.
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728
|
|
|
|
wrote 512/512 bytes at offset 0
|
|
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
2017-09-12 16:44:54 +02:00
|
|
|
./common.rc: Killed ( if [ "${VALGRIND_QEMU}" == "y" ]; then
|
2016-05-10 18:11:27 +02:00
|
|
|
exec valgrind --log-file="${VALGRIND_LOGFILE}" --error-exitcode=99 "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
else
|
2016-05-10 18:11:27 +02:00
|
|
|
exec "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@";
|
2015-10-30 20:25:18 +01:00
|
|
|
fi )
|
2015-09-04 18:26:09 +02:00
|
|
|
incompatible_features 0x0
|
|
|
|
No errors were found on the image.
|
2012-07-27 10:05:24 +02:00
|
|
|
*** done
|