FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] generic/418: use min_dio_alignment
@ 2025-01-28  7:14 Christoph Hellwig
  2025-01-28 19:21 ` Darrick J. Wong
  0 siblings, 1 reply; 3+ messages in thread
From: Christoph Hellwig @ 2025-01-28  7:14 UTC (permalink / raw)
  To: zlang; +Cc: djwong, fstests

Otherwise this test uses the wrong sector size on the RT device.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 tests/generic/418 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/generic/418 b/tests/generic/418
index 4321e2984663..36789198c88e 100755
--- a/tests/generic/418
+++ b/tests/generic/418
@@ -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
-- 
2.45.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] generic/418: use min_dio_alignment
  2025-01-28  7:14 [PATCH] generic/418: use min_dio_alignment Christoph Hellwig
@ 2025-01-28 19:21 ` Darrick J. Wong
  2025-01-29  5:36   ` Christoph Hellwig
  0 siblings, 1 reply; 3+ messages in thread
From: Darrick J. Wong @ 2025-01-28 19:21 UTC (permalink / raw)
  To: Christoph Hellwig; +Cc: zlang, fstests

On Tue, Jan 28, 2025 at 08:14:12AM +0100, Christoph Hellwig wrote:
> Otherwise this test uses the wrong sector size on the RT device.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  tests/generic/418 | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/generic/418 b/tests/generic/418
> index 4321e2984663..36789198c88e 100755
> --- a/tests/generic/418
> +++ b/tests/generic/418
> @@ -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`

BTW is min_dio_alignment going to get an upgrade to report
STATX_DIO_READ_ALIGN ?

The changes here look correct to me
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>

--D

>  pagesize=`$here/src/feature -s`
>  
>  # test case array, test different write/read combinations
> -- 
> 2.45.2
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] generic/418: use min_dio_alignment
  2025-01-28 19:21 ` Darrick J. Wong
@ 2025-01-29  5:36   ` Christoph Hellwig
  0 siblings, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2025-01-29  5:36 UTC (permalink / raw)
  To: Darrick J. Wong; +Cc: Christoph Hellwig, zlang, fstests

On Tue, Jan 28, 2025 at 11:21:47AM -0800, Darrick J. Wong wrote:
> >  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`
> 
> BTW is min_dio_alignment going to get an upgrade to report
> STATX_DIO_READ_ALIGN ?

Sorta.  For most tests we really expect a symmetic output that
can be used for reads and writes.  But for say fsx we can actually
plug in different read and write sized, and I did prototype that
a while ago.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-29  5:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-28  7:14 [PATCH] generic/418: use min_dio_alignment Christoph Hellwig
2025-01-28 19:21 ` Darrick J. Wong
2025-01-29  5:36   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox