]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/614: determine the sector size of the fs image by doing a test format
authorDarrick J. Wong <djwong@kernel.org>
Fri, 21 Mar 2025 21:27:38 +0000 (14:27 -0700)
committerZorro Lang <zlang@kernel.org>
Fri, 28 Mar 2025 01:05:05 +0000 (09:05 +0800)
commit8e4282818e578dd0ba1c0d8860a58ea17897920a
treedca9004150187e590ec8bbd29ec9dbdca3f062c1
parent5efe0accdc55a9680c4189e44be2b33ddcadae5d
xfs/614: determine the sector size of the fs image by doing a test format

In some cases (such as xfs always_cow=1), the configuration of the test
filesystem determines the sector size of the filesystem that we're going
to simulate formatting.  Concretely, even if TEST_DEV is a block device
with 512b sectors, the directio geometry can specify 4k writes to avoid
nasty RMW cycles.  When this happens, mkfs.xfs will set the sector size
to that 4k accordingly, but the golden output selection is wrong.  Fix
this.

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