]> git.proxmox.com Git - mirror_zfs.git/commit
ZTS: fallocate tests fail with hard coded values
authorJohn Wren Kennedy <john.kennedy@delphix.com>
Thu, 22 Sep 2022 22:42:34 +0000 (16:42 -0600)
committerGitHub <noreply@github.com>
Thu, 22 Sep 2022 22:42:34 +0000 (16:42 -0600)
commitce55d6ae4689057a657986fcd9ea4c95cadb6381
tree11ff4e66a325912059a2feee24f5083cd88fb033
parent505df8d133788c28a2d6fcdf504dd1ffa55fa43f
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
tests/zfs-tests/tests/functional/fallocate/fallocate_punch-hole.ksh
tests/zfs-tests/tests/functional/fallocate/fallocate_zero-range.ksh