]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/137: Make this test compatible with all supported block sizes
authorNirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Mon, 25 Aug 2025 06:04:10 +0000 (06:04 +0000)
committerZorro Lang <zlang@kernel.org>
Mon, 25 Aug 2025 15:50:26 +0000 (23:50 +0800)
commit6ec63265999335d27b4c2cd71ac6f5733ba030ef
treed97a3467a9416f0a2a51837ae924ed858269ad50
parentd6506d38a3ee8a947ba5f22a5c723bdac45c5917
btrfs/137: Make this test compatible with all supported block sizes

For large block sizes like 64k it failed simply because this
test was written with 4k block size in mind.
The first few lines of the error logs are as follows:

     d3dc847171f9081bd75d7a2d3b53d322  SCRATCH_MNT/snap2/bar

     File snap1/foo fiemap results in the original filesystem:
    -0: [0..7]: data
    +0: [0..127]: data

     File snap1/bar fiemap results in the original filesystem:
    ...

Fix this by making the test choose offsets and block size as 64k
which is aligned with all the underlying supported fs block sizes.

Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Reported-by: Disha Goel <disgoel@linux.ibm.com>
Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Tested-by: Disha Goel <disgoel@linux.ibm.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/137
tests/btrfs/137.out