HomeFreeBSD

ZTS: Introduce targeted corruption in file blocks

Description

ZTS: Introduce targeted corruption in file blocks

filetest_001_pos verifies that various checksum algorithms detect
corruption by overwriting the underlying vdev on which a file resides.
It is possible for the overwrite to miss the blocks of a file, causing a
spurious failure. This change introduces a function to corrupt the
individual blocks of a file as determined by zdb.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Ryan Moeller <ryan@ixsystems.com>
Signed-off-by: John Kennedy <john.kennedy@delphix.com>
Closes #9288

Details

Provenance
John Wren Kennedy <john.kennedy@delphix.com>Authored on Sep 9 2019, 11:11 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Sep 9 2019, 11:11 PM
Parents
rG43f4495bde1f: Clean up do_vol_test in zfs_copies tests
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGb63e2d881f85: ZTS: Introduce targeted corruption in file blocks (authored by John Wren Kennedy <john.kennedy@delphix.com>).Sep 9 2019, 11:11 PM