mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
98abd9a8d4
This test corrupts various parts of the contents of a verity file, or parts of its Merkle tree, by writing directly to the block device. It verifies that this causes I/O errors when the relevant part of the contents is later read by any means. Signed-off-by: Eric Biggers <ebiggers@google.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
92 lines
3.7 KiB
Plaintext
92 lines
3.7 KiB
Plaintext
QA output created by 574
|
|
|
|
# Corruption test: file_len=131072 zap_offset=0 zap_len=1
|
|
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
|
|
Corrupting bytes...
|
|
Validating corruption (reading full file)...
|
|
md5sum: SCRATCH_MNT/file.fsv: Input/output error
|
|
Validating corruption (direct I/O)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading just corrupted part)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading full file via mmap)...
|
|
Bus error
|
|
Validating corruption (reading just corrupted part via mmap)...
|
|
Bus error
|
|
|
|
# Corruption test: file_len=131072 zap_offset=4095 zap_len=1
|
|
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
|
|
Corrupting bytes...
|
|
Validating corruption (reading full file)...
|
|
md5sum: SCRATCH_MNT/file.fsv: Input/output error
|
|
Validating corruption (direct I/O)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading just corrupted part)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading full file via mmap)...
|
|
Bus error
|
|
Validating corruption (reading just corrupted part via mmap)...
|
|
Bus error
|
|
|
|
# Corruption test: file_len=131072 zap_offset=65536 zap_len=65536
|
|
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
|
|
Corrupting bytes...
|
|
Validating corruption (reading full file)...
|
|
md5sum: SCRATCH_MNT/file.fsv: Input/output error
|
|
Validating corruption (direct I/O)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading just corrupted part)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading full file via mmap)...
|
|
Bus error
|
|
Validating corruption (reading just corrupted part via mmap)...
|
|
Bus error
|
|
|
|
# Corruption test: file_len=131072 zap_offset=131071 zap_len=1
|
|
0dfbe8aa4c20b52e1b8bf3cb6cbdf193 SCRATCH_MNT/file.fsv
|
|
Corrupting bytes...
|
|
Validating corruption (reading full file)...
|
|
md5sum: SCRATCH_MNT/file.fsv: Input/output error
|
|
Validating corruption (direct I/O)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading just corrupted part)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading full file via mmap)...
|
|
Bus error
|
|
Validating corruption (reading just corrupted part via mmap)...
|
|
Bus error
|
|
|
|
# Corruption test: file_len=130999 zap_offset=131000 zap_len=72
|
|
f5cca0d7fbb8b02bc6118a9954d5d306 SCRATCH_MNT/file.fsv
|
|
Corrupting bytes...
|
|
Validating corruption (reading full file)...
|
|
md5sum: SCRATCH_MNT/file.fsv: Input/output error
|
|
Validating corruption (direct I/O)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading just corrupted part)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading full file via mmap)...
|
|
Bus error
|
|
Validating corruption (reading just corrupted part via mmap)...
|
|
Bus error
|
|
|
|
# Corruption test: file_len=200000 zap_offset=100 (in Merkle tree) zap_len=10
|
|
4a1e4325031b13f933ac4f1db9ecb63f SCRATCH_MNT/file.fsv
|
|
Corrupting bytes...
|
|
Validating corruption (reading full file)...
|
|
md5sum: SCRATCH_MNT/file.fsv: Input/output error
|
|
Validating corruption (direct I/O)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading full file via mmap)...
|
|
Bus error
|
|
|
|
# Corruption test: file_len=200000 (sparse) zap_offset=100 (in Merkle tree) zap_len=10
|
|
4a1e4325031b13f933ac4f1db9ecb63f SCRATCH_MNT/file.fsv
|
|
Corrupting bytes...
|
|
Validating corruption (reading full file)...
|
|
md5sum: SCRATCH_MNT/file.fsv: Input/output error
|
|
Validating corruption (direct I/O)...
|
|
dd: error reading 'SCRATCH_MNT/file.fsv': Input/output error
|
|
Validating corruption (reading full file via mmap)...
|
|
Bus error
|