HomeFreeBSD

ZTS: fallocate tests fail with hard coded values

Description

ZTS: fallocate tests fail with hard coded values

Currently, these two tests pass on disks with 512 byte sectors. In
environments where the backing store is different, the number of
blocks allocated to write the same file may differ. This change
modifies the reported size check to detect an expected change in the
reported number of blocks without specifying a particular number.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Signed-off-by: John Kennedy <john.kennedy@delphix.com>
Closes #13931

Details

Provenance
John Wren Kennedy <john.kennedy@delphix.com>Authored on Sep 22 2022, 10:42 PM
GitHub <noreply@github.com>Committed on Sep 22 2022, 10:42 PM
Parents
rG505df8d13378: Dynamically size dbuf hash mutex array
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGce55d6ae4689: ZTS: fallocate tests fail with hard coded values (authored by John Wren Kennedy <john.kennedy@delphix.com>).Sep 22 2022, 10:42 PM