]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/259: try to force loop device block size
authorDarrick J. Wong <djwong@kernel.org>
Tue, 29 Jul 2025 20:10:19 +0000 (13:10 -0700)
committerZorro Lang <zlang@kernel.org>
Fri, 1 Aug 2025 20:19:02 +0000 (04:19 +0800)
commitaa14b84a8d1a2f5eae2d5c46e14dc52fe631b021
tree4ac020c0370df9407e785b5cd50a0d7bdbc711d1
parentd8b702f89e01fad5a67952833e2ef838a3436e62
xfs/259: try to force loop device block size

Starting with 6.15-rc1, loop devices created with directio mode enabled
will set their logical block size to whatever STATX_DIO_ALIGN on the
host filesystem reports.  If you want fstests to set up loop devices in
directio mode and TEST_DEV is a block device with 4k sectors, this will
cause conflicts with this test's usage of mkfs with different block
sizes.  Enhance the existing _create_loop_device so that tests can force
the loop device block size to 512 bytes, which is implied by scenarios
such as "device size is 4T - 2048 bytes".

Also fix xfs/078 which simply needs the blocksize to be set.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc
tests/xfs/078
tests/xfs/259
tests/xfs/613