]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfs/424: don't use _min_dio_alignment
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2024 04:52:12 +0000 (06:52 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 16 Aug 2024 11:50:42 +0000 (19:50 +0800)
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 <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/xfs/424

index 71d48bec13a689d4245759a5b308a342a8a35fb8..6078d34897e78e51436513e85ca45d5fa42127dd 100755 (executable)
@@ -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))