From 4a571eaae78415714efbeaeb1ea5bdb9b918d0fd Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Wed, 14 Aug 2024 06:52:12 +0200 Subject: [PATCH] xfs/424: don't use _min_dio_alignment xfs/424 tests xfs_db and not the kernel xfs code, and really wants the device sector size and not the minimum direct I/O alignment. Switch to a direct call of the blockdev utility. Signed-off-by: Christoph Hellwig Reviewed-by: Darrick J. Wong Signed-off-by: Zorro Lang --- tests/xfs/424 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/xfs/424 b/tests/xfs/424 index 71d48bec..6078d348 100755 --- a/tests/xfs/424 +++ b/tests/xfs/424 @@ -50,7 +50,7 @@ echo "Silence is golden." # NOTE: skip attr3, bmapbta, bmapbtd, dir3, dqblk, inodata, symlink # rtbitmap, rtsummary, log # -sec_sz=`_min_dio_alignment $SCRATCH_DEV` +sec_sz=`blockdev --getss $SCRATCH_DEV` while [ $sec_sz -le 4096 ]; do sector_sizes="$sector_sizes $sec_sz" sec_sz=$((sec_sz * 2)) -- 2.39.5