2c78857bf6
When opening/creating images, propagating errors instead of immediately emitting them on occurrence results in errors generally being printed on a single line rather than being split up into multiple ones. This in turn requires adjustments to some test results. Also, test 060 used a sed to filter out the test image directory and format by removing everything from the affected line after a certain keyword; this now also removes the error message itself, which can be fixed by using _filter_testdir and _filter_imgfmt. Finally, _make_test_img in common.rc did not filter out the test image directory etc. from stderr. This has been fixed through a redirection of stderr to stdout (which is already done in _check_test_img and _img_info). Signed-off-by: Max Reitz <mreitz@redhat.com>
44 lines
1.5 KiB
Plaintext
44 lines
1.5 KiB
Plaintext
QA output created by 060
|
|
|
|
=== Testing L2 reference into L1 ===
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
|
ERROR cluster 3 refcount=1 reference=3
|
|
|
|
1 errors were found on the image.
|
|
Data may be corrupted, or further writes to the image may corrupt it.
|
|
incompatible_features 0x0
|
|
qcow2: Preventing invalid write on metadata (overlaps with active L1 table); image marked as corrupt.
|
|
write failed: Input/output error
|
|
incompatible_features 0x2
|
|
qemu-io: can't open device TEST_DIR/t.IMGFMT: IMGFMT: Image is corrupt; cannot be opened read/write
|
|
no file open, try 'help open'
|
|
read 512/512 bytes at offset 0
|
|
512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec)
|
|
|
|
=== Testing cluster data reference into refcount block ===
|
|
|
|
Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
|
|
ERROR refcount block 0 refcount=2
|
|
ERROR cluster 2 refcount=1 reference=2
|
|
|
|
2 errors were found on the image.
|
|
Data may be corrupted, or further writes to the image may corrupt it.
|
|
incompatible_features 0x0
|
|
qcow2: Preventing invalid write on metadata (overlaps with refcount block); image marked as corrupt.
|
|
write failed: Input/output error
|
|
incompatible_features 0x2
|
|
Repairing refcount block 0 refcount=2
|
|
The following inconsistencies were found and repaired:
|
|
|
|
0 leaked clusters
|
|
1 corruptions
|
|
|
|
Double checking the fixed image now...
|
|
No errors were found on the image.
|
|
incompatible_features 0x0
|
|
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
|
|
*** done
|