]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
generic/692: generalize the test for non-4K Merkle tree block sizes
authorOjaswin Mujoo <ojaswin@linux.ibm.com>
Wed, 11 Jan 2023 20:58:28 +0000 (12:58 -0800)
committerZorro Lang <zlang@kernel.org>
Fri, 20 Jan 2023 13:25:58 +0000 (21:25 +0800)
commitc08fcc7fb71c36867120b278ff68a8dff4d07499
treed2d92ad7ab28726f89e101c520dacef6c4beedb6
parent81e6f62844992ad2d9e1f6439577a84277282941
generic/692: generalize the test for non-4K Merkle tree block sizes

Due to the assumption of the Merkle tree block size being 4K, the file
size calculated for the second test case was taking way too long to hit
EFBIG in case of larger block sizes like 64K.  Fix this by generalizing
the calculation to any Merkle tree block size >= 1K.

Signed-off-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Co-developed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/692