Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 1 | QA output created by 039 |
| 2 | |
| 3 | == Checking that image is clean on shutdown == |
Fam Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 4 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 5 | wrote 512/512 bytes at offset 0 |
| 6 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 7 | incompatible_features [] |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 8 | No errors were found on the image. |
| 9 | |
| 10 | == Creating a dirty image file == |
Fam Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 11 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 12 | wrote 512/512 bytes at offset 0 |
| 13 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Andrey Shinkevich | 036d8cb | 2019-09-04 12:11:19 +0300 | [diff] [blame] | 14 | ./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 15 | incompatible_features [0] |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 16 | ERROR cluster 5 refcount=0 reference=1 |
Max Reitz | b3f3a30 | 2013-09-02 16:36:15 +0200 | [diff] [blame] | 17 | ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0 |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 18 | |
| 19 | 2 errors were found on the image. |
| 20 | Data may be corrupted, or further writes to the image may corrupt it. |
| 21 | |
| 22 | == Read-only access must still work == |
| 23 | read 512/512 bytes at offset 0 |
| 24 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 25 | incompatible_features [0] |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 26 | |
| 27 | == Repairing the image file must succeed == |
Max Reitz | d26e6ec | 2014-10-22 14:09:42 +0200 | [diff] [blame] | 28 | ERROR cluster 5 refcount=0 reference=1 |
| 29 | Rebuilding refcount structure |
| 30 | Repairing cluster 1 refcount=1 reference=0 |
| 31 | Repairing cluster 2 refcount=1 reference=0 |
Stefan Hajnoczi | 058f8f1 | 2012-08-09 13:05:56 +0100 | [diff] [blame] | 32 | The following inconsistencies were found and repaired: |
| 33 | |
| 34 | 0 leaked clusters |
| 35 | 1 corruptions |
| 36 | |
| 37 | Double checking the fixed image now... |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 38 | No errors were found on the image. |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 39 | incompatible_features [] |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 40 | |
| 41 | == Data should still be accessible after repair == |
| 42 | read 512/512 bytes at offset 0 |
| 43 | 512 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 Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 46 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 47 | wrote 512/512 bytes at offset 0 |
| 48 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Andrey Shinkevich | 036d8cb | 2019-09-04 12:11:19 +0300 | [diff] [blame] | 49 | ./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 50 | incompatible_features [0] |
Max Reitz | d26e6ec | 2014-10-22 14:09:42 +0200 | [diff] [blame] | 51 | ERROR cluster 5 refcount=0 reference=1 |
| 52 | Rebuilding refcount structure |
| 53 | Repairing cluster 1 refcount=1 reference=0 |
| 54 | Repairing cluster 2 refcount=1 reference=0 |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 55 | wrote 512/512 bytes at offset 0 |
| 56 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 57 | incompatible_features [] |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 58 | |
| 59 | == Creating an image file with lazy_refcounts=off == |
Fam Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 60 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 61 | wrote 512/512 bytes at offset 0 |
| 62 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Andrey Shinkevich | 036d8cb | 2019-09-04 12:11:19 +0300 | [diff] [blame] | 63 | ./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 64 | incompatible_features [] |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 65 | No errors were found on the image. |
Kevin Wolf | 4c2e5f8 | 2014-04-03 13:47:50 +0200 | [diff] [blame] | 66 | |
| 67 | == Committing to a backing file with lazy_refcounts=on == |
Fam Zheng | 7486458 | 2014-12-09 15:38:03 +0800 | [diff] [blame] | 68 | Formatting 'TEST_DIR/t.IMGFMT.base', fmt=IMGFMT size=134217728 |
Kővágó, Zoltán | fe64669 | 2015-07-07 16:42:10 +0200 | [diff] [blame] | 69 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base |
Kevin Wolf | 4c2e5f8 | 2014-04-03 13:47:50 +0200 | [diff] [blame] | 70 | wrote 512/512 bytes at offset 0 |
| 71 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 72 | Image committed. |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 73 | incompatible_features [] |
| 74 | incompatible_features [] |
Kevin Wolf | 4c2e5f8 | 2014-04-03 13:47:50 +0200 | [diff] [blame] | 75 | No errors were found on the image. |
| 76 | No errors were found on the image. |
Kevin Wolf | e615053 | 2015-09-04 18:26:09 +0200 | [diff] [blame] | 77 | |
| 78 | == Changing lazy_refcounts setting at runtime == |
| 79 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
| 80 | wrote 512/512 bytes at offset 0 |
| 81 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Andrey Shinkevich | 036d8cb | 2019-09-04 12:11:19 +0300 | [diff] [blame] | 82 | ./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 83 | incompatible_features [0] |
Kevin Wolf | e615053 | 2015-09-04 18:26:09 +0200 | [diff] [blame] | 84 | ERROR cluster 5 refcount=0 reference=1 |
| 85 | ERROR OFLAG_COPIED data cluster: l2_entry=8000000000050000 refcount=0 |
| 86 | |
| 87 | 2 errors were found on the image. |
| 88 | Data may be corrupted, or further writes to the image may corrupt it. |
| 89 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
| 90 | wrote 512/512 bytes at offset 0 |
| 91 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Andrey Shinkevich | 036d8cb | 2019-09-04 12:11:19 +0300 | [diff] [blame] | 92 | ./common.rc: Killed ( VALGRIND_QEMU="${VALGRIND_QEMU_IO}" _qemu_proc_exec "${VALGRIND_LOGFILE}" "$QEMU_IO_PROG" $QEMU_IO_ARGS "$@" ) |
Max Reitz | 0485e6e | 2019-11-07 17:36:49 +0100 | [diff] [blame] | 93 | incompatible_features [] |
Kevin Wolf | e615053 | 2015-09-04 18:26:09 +0200 | [diff] [blame] | 94 | No errors were found on the image. |
Stefan Hajnoczi | dc68afe | 2012-07-27 09:05:24 +0100 | [diff] [blame] | 95 | *** done |