]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
btrfs/290: Make the test compatible with all supported block sizes
authorNirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Mon, 13 Oct 2025 05:39:44 +0000 (05:39 +0000)
committerZorro Lang <zlang@kernel.org>
Fri, 17 Oct 2025 19:25:31 +0000 (03:25 +0800)
commitb2e5d361b2e5597cd4d404f34560048716b05d50
treed5f6357667da98da216c21449448c6c103e826d4
parentb0e58387ca450c238720f842d5ad649141a36470
btrfs/290: Make the test compatible with all supported block sizes

This test fails with 64k block size with the following error:

     punch
     pread: Input/output error
     pread: Input/output error
    +ERROR: couldn't find extent 4096 for inode 261
     plug
    -pread: Input/output error
    -pread: Input/output error
    ...

The reason is that, some of the subtests are written with 4k blocksize
in mind. Fix the test by making the offsets and sizes to multiples of
64k so that it becomes compatible/aligned with all supported block sizes.

Reported-by: Disha Goel <disgoel@linux.ibm.com>
Signed-off-by: Nirjhar Roy (IBM) <nirjhar.roy.lists@gmail.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/btrfs/290