]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic: don't use _min_dio_alignment without a device argument
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Aug 2024 04:52:13 +0000 (06:52 +0200)
committerZorro Lang <zlang@kernel.org>
Fri, 16 Aug 2024 11:50:42 +0000 (19:50 +0800)
Replace calls to _min_dio_alignment that do not provide a device to
check with calls to the feature utility to query the page size, as that
is what these calls actually do.

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/521
tests/generic/617

index 24eab8342c23b0548f02b1a994b82283fec01f32..5f3aac570f606b3db6eea8e4724b60b97fdb4c1e 100755 (executable)
@@ -22,7 +22,7 @@ nr_ops=$((1000000 * TIME_FACTOR))
 op_sz=$((128000 * LOAD_FACTOR))
 file_sz=$((600000 * LOAD_FACTOR))
 fsx_file=$TEST_DIR/fsx.$seq
-min_dio_sz=$(_min_dio_alignment)
+min_dio_sz=$($here/src/feature -s)
 
 fsx_args=(-q)
 fsx_args+=(-N $nr_ops)
index eb50a2da362c8f0dde68d5de0c4476bf4b531dcf..297d7553824f29c197cbc41834b5faf8eb67907a 100755 (executable)
@@ -24,7 +24,7 @@ nr_ops=$((20000 * TIME_FACTOR))
 op_sz=$((128000 * LOAD_FACTOR))
 file_sz=$((600000 * LOAD_FACTOR))
 fsx_file=$TEST_DIR/fsx.$seq
-min_dio_sz=$(_min_dio_alignment)
+min_dio_sz=$($here/src/feature -s)
 
 fsx_args=(-S 0)
 fsx_args+=(-U)