1QA output created by 039 2 3== Checking that image is clean on shutdown == 4Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 5wrote 512/512 bytes at offset 0 6512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 7incompatible_features 0x0 8No errors were found on the image. 9 10== Creating a dirty image file == 11Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 12wrote 512/512 bytes at offset 0 13512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 14./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 15incompatible_features 0x1 16ERROR cluster 5 refcount=0 reference=1 17ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0 18 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) 25incompatible_features 0x1 26 27== Repairing the image file must succeed == 28ERROR cluster 5 refcount=0 reference=1 29Rebuilding refcount structure 30Repairing cluster 1 refcount=1 reference=0 31Repairing cluster 2 refcount=1 reference=0 32The following inconsistencies were found and repaired: 33 34 0 leaked clusters 35 1 corruptions 36 37Double checking the fixed image now... 38No errors were found on the image. 39incompatible_features 0x0 40 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 == 46Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 47wrote 512/512 bytes at offset 0 48512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 49./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 50incompatible_features 0x1 51ERROR cluster 5 refcount=0 reference=1 52Rebuilding refcount structure 53Repairing cluster 1 refcount=1 reference=0 54Repairing cluster 2 refcount=1 reference=0 55wrote 512/512 bytes at offset 0 56512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 57incompatible_features 0x0 58 59== Creating an image file with lazy_refcounts=off == 60Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 61wrote 512/512 bytes at offset 0 62512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 63./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 64incompatible_features 0x0 65No errors were found on the image. 66 67== Committing to a backing file with lazy_refcounts=on == 68Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728 69Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base 70wrote 512/512 bytes at offset 0 71512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 72Image committed. 73incompatible_features 0x0 74incompatible_features 0x0 75No errors were found on the image. 76No errors were found on the image. 77 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) 82./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 83incompatible_features 0x1 84ERROR 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) 92./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) 93incompatible_features 0x0 94No errors were found on the image. 95*** done 96