]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
replace _min_dio_alignment with calls to src/min_dio_alignment
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2024 04:52:14 +0000 (06:52 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 16 Aug 2024 11:50:42 +0000 (19:50 +0800)
commitee799a0cf1d46d65543420de307d5d966cd34511
tree62efdb8099c5a617f34ab5cbb819ae893e06b2be
parent515e61fdc7912af9768047360744b9d936e6be5c
replace _min_dio_alignment with calls to src/min_dio_alignment

Use the min_dio_alignment C tool to check the minimum alignment.
This allows using the values obtained from statx instead of just guessing
based on the sector size and page size.

For tests using the scratch device this sometimes required moving code
around a bit to ensure the scratch device is actually mounted before
querying the alignment.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
19 files changed:
common/rc
tests/generic/091
tests/generic/095
tests/generic/114
tests/generic/240
tests/generic/252
tests/generic/263
tests/generic/329
tests/generic/330
tests/generic/450
tests/generic/465
tests/generic/538
tests/generic/551
tests/generic/591
tests/xfs/194
tests/xfs/201
tests/xfs/237
tests/xfs/239
tests/xfs/556