]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/418: use min_dio_alignment
authorChristoph Hellwig <hch@lst.de>
Tue, 28 Jan 2025 07:14:12 +0000 (08:14 +0100)
committerZorro Lang <zlang@kernel.org>
Sun, 2 Feb 2025 13:28:37 +0000 (21:28 +0800)
Otherwise this test uses the wrong sector size on the RT device.

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/generic/418

index 4321e2984663b7db7d9a7ac6c1fea04640e940c0..36789198c88e1008260572c0833a324f1c33f7c0 100755 (executable)
@@ -28,7 +28,7 @@ _require_test_program "feature"
 
 diotest=$here/src/dio-invalidate-cache
 testfile=$TEST_DIR/$seq-diotest
-sectorsize=`blockdev --getss $TEST_DEV`
+sectorsize=`$here/src/min_dio_alignment $TEST_DIR $TEST_DEV`
 pagesize=`$here/src/feature -s`
 
 # test case array, test different write/read combinations