* [PATCH 1/2] xfs/614: query correct direct I/O alignment
@ 2025-02-04 13:46 Christoph Hellwig
2025-02-04 13:46 ` [PATCH 2/2] xfs/614: remove the _require_loop call Christoph Hellwig
2025-02-04 17:12 ` [PATCH 1/2] xfs/614: query correct direct I/O alignment Darrick J. Wong
0 siblings, 2 replies; 8+ messages in thread
From: Christoph Hellwig @ 2025-02-04 13:46 UTC (permalink / raw)
To: zlang, djwong; +Cc: fstests, linux-xfs
When creating XFS file systems on files, mkfs will query the file system
for the minimum alignment, which can be larger than that of the
underlying device. Do the same to link the right output file.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
tests/xfs/614 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/xfs/614 b/tests/xfs/614
index 0f8952e50b9a..06cc2384f38c 100755
--- a/tests/xfs/614
+++ b/tests/xfs/614
@@ -26,7 +26,7 @@ _require_loop
$MKFS_XFS_PROG 2>&1 | grep -q concurrency || \
_notrun "mkfs does not support concurrency options"
-test_dev_lbasize=$(blockdev --getss $TEST_DEV)
+test_dev_lbasize=$($here/src/min_dio_alignment $TEST_DIR $TEST_DEV)
seqfull=$0
_link_out_file "lba${test_dev_lbasize}"
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [PATCH 2/2] xfs/614: remove the _require_loop call
2025-02-04 13:46 [PATCH 1/2] xfs/614: query correct direct I/O alignment Christoph Hellwig
@ 2025-02-04 13:46 ` Christoph Hellwig
2025-02-04 17:07 ` Darrick J. Wong
2025-02-10 16:21 ` Zorro Lang
2025-02-04 17:12 ` [PATCH 1/2] xfs/614: query correct direct I/O alignment Darrick J. Wong
1 sibling, 2 replies; 8+ messages in thread
From: Christoph Hellwig @ 2025-02-04 13:46 UTC (permalink / raw)
To: zlang, djwong; +Cc: fstests, linux-xfs
This test only creates file system images as regular files, but never
actually uses the kernel loop driver. Remove the extra requirement.
Signed-off-by: Christoph Hellwig <hch@lst.de>
---
tests/xfs/614 | 1 -
1 file changed, 1 deletion(-)
diff --git a/tests/xfs/614 b/tests/xfs/614
index 06cc2384f38c..f2ea99edb342 100755
--- a/tests/xfs/614
+++ b/tests/xfs/614
@@ -22,7 +22,6 @@ _cleanup()
_require_test
-_require_loop
$MKFS_XFS_PROG 2>&1 | grep -q concurrency || \
_notrun "mkfs does not support concurrency options"
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] xfs/614: remove the _require_loop call
2025-02-04 13:46 ` [PATCH 2/2] xfs/614: remove the _require_loop call Christoph Hellwig
@ 2025-02-04 17:07 ` Darrick J. Wong
2025-02-10 16:21 ` Zorro Lang
1 sibling, 0 replies; 8+ messages in thread
From: Darrick J. Wong @ 2025-02-04 17:07 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs
On Tue, Feb 04, 2025 at 02:46:55PM +0100, Christoph Hellwig wrote:
> This test only creates file system images as regular files, but never
> actually uses the kernel loop driver. Remove the extra requirement.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
Oh, heh, yeah, loopdev not necessary!
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
--D
> ---
> tests/xfs/614 | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tests/xfs/614 b/tests/xfs/614
> index 06cc2384f38c..f2ea99edb342 100755
> --- a/tests/xfs/614
> +++ b/tests/xfs/614
> @@ -22,7 +22,6 @@ _cleanup()
>
>
> _require_test
> -_require_loop
> $MKFS_XFS_PROG 2>&1 | grep -q concurrency || \
> _notrun "mkfs does not support concurrency options"
>
> --
> 2.45.2
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] xfs/614: query correct direct I/O alignment
2025-02-04 13:46 [PATCH 1/2] xfs/614: query correct direct I/O alignment Christoph Hellwig
2025-02-04 13:46 ` [PATCH 2/2] xfs/614: remove the _require_loop call Christoph Hellwig
@ 2025-02-04 17:12 ` Darrick J. Wong
2025-02-05 15:44 ` Christoph Hellwig
1 sibling, 1 reply; 8+ messages in thread
From: Darrick J. Wong @ 2025-02-04 17:12 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs
On Tue, Feb 04, 2025 at 02:46:54PM +0100, Christoph Hellwig wrote:
> When creating XFS file systems on files, mkfs will query the file system
> for the minimum alignment, which can be larger than that of the
> underlying device. Do the same to link the right output file.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> tests/xfs/614 | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/xfs/614 b/tests/xfs/614
> index 0f8952e50b9a..06cc2384f38c 100755
> --- a/tests/xfs/614
> +++ b/tests/xfs/614
> @@ -26,7 +26,7 @@ _require_loop
> $MKFS_XFS_PROG 2>&1 | grep -q concurrency || \
> _notrun "mkfs does not support concurrency options"
>
> -test_dev_lbasize=$(blockdev --getss $TEST_DEV)
> +test_dev_lbasize=$($here/src/min_dio_alignment $TEST_DIR $TEST_DEV)
Hmmmm... I have a patch with a similar aim in my dev tree that
determines the lba size from whatever mkfs decides is the sector size:
# Figure out what sector size mkfs will use to format, which might be dependent
# upon the directio write geometry of the test filesystem.
loop_file=$TEST_DIR/$seq.loop
rm -f "$loop_file"
truncate -s 16M "$loop_file"
$MKFS_XFS_PROG -f -N "$loop_file" | _filter_mkfs 2>$tmp.mkfs >/dev/null
. $tmp.mkfs
seqfull=$0
_link_out_file "lba${sectsz}"
What do you think of that approach?
--D
> seqfull=$0
> _link_out_file "lba${test_dev_lbasize}"
>
> --
> 2.45.2
>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] xfs/614: query correct direct I/O alignment
2025-02-04 17:12 ` [PATCH 1/2] xfs/614: query correct direct I/O alignment Darrick J. Wong
@ 2025-02-05 15:44 ` Christoph Hellwig
2025-02-05 15:51 ` Darrick J. Wong
0 siblings, 1 reply; 8+ messages in thread
From: Christoph Hellwig @ 2025-02-05 15:44 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, zlang, fstests, linux-xfs
On Tue, Feb 04, 2025 at 09:12:58AM -0800, Darrick J. Wong wrote:
> Hmmmm... I have a patch with a similar aim in my dev tree that
> determines the lba size from whatever mkfs decides is the sector size:
>
> # Figure out what sector size mkfs will use to format, which might be dependent
> # upon the directio write geometry of the test filesystem.
> loop_file=$TEST_DIR/$seq.loop
> rm -f "$loop_file"
> truncate -s 16M "$loop_file"
> $MKFS_XFS_PROG -f -N "$loop_file" | _filter_mkfs 2>$tmp.mkfs >/dev/null
> . $tmp.mkfs
> seqfull=$0
> _link_out_file "lba${sectsz}"
>
> What do you think of that approach?
That sound sensible. Where is that patch, it doesn't seem to be
in the realtime-reflink branch that I'm usually working against.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] xfs/614: query correct direct I/O alignment
2025-02-05 15:44 ` Christoph Hellwig
@ 2025-02-05 15:51 ` Darrick J. Wong
2025-02-05 16:07 ` Christoph Hellwig
0 siblings, 1 reply; 8+ messages in thread
From: Darrick J. Wong @ 2025-02-05 15:51 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: zlang, fstests, linux-xfs
On Wed, Feb 05, 2025 at 04:44:22PM +0100, Christoph Hellwig wrote:
> On Tue, Feb 04, 2025 at 09:12:58AM -0800, Darrick J. Wong wrote:
> > Hmmmm... I have a patch with a similar aim in my dev tree that
> > determines the lba size from whatever mkfs decides is the sector size:
> >
> > # Figure out what sector size mkfs will use to format, which might be dependent
> > # upon the directio write geometry of the test filesystem.
> > loop_file=$TEST_DIR/$seq.loop
> > rm -f "$loop_file"
> > truncate -s 16M "$loop_file"
> > $MKFS_XFS_PROG -f -N "$loop_file" | _filter_mkfs 2>$tmp.mkfs >/dev/null
> > . $tmp.mkfs
> > seqfull=$0
> > _link_out_file "lba${sectsz}"
> >
> > What do you think of that approach?
>
> That sound sensible. Where is that patch, it doesn't seem to be
> in the realtime-reflink branch that I'm usually working against.
It's one of the few zoned changes I have in the fstests branch:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git/log/?h=zoned_2025-02-04
--D
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/2] xfs/614: query correct direct I/O alignment
2025-02-05 15:51 ` Darrick J. Wong
@ 2025-02-05 16:07 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2025-02-05 16:07 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: Christoph Hellwig, zlang, fstests, linux-xfs
On Wed, Feb 05, 2025 at 07:51:11AM -0800, Darrick J. Wong wrote:
> It's one of the few zoned changes I have in the fstests branch:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfstests-dev.git/log/?h=zoned_2025-02-04
Oh, you probably want to pull this in to make your life easier:
http://git.infradead.org/?p=users/hch/xfstests-dev.git;a=shortlog;h=refs/heads/xfs-zoned-rebase
Note that the dio size mismatch also happens when using a 4k LBA rt
device with a 512 byte LBA data device without any zoned code.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 2/2] xfs/614: remove the _require_loop call
2025-02-04 13:46 ` [PATCH 2/2] xfs/614: remove the _require_loop call Christoph Hellwig
2025-02-04 17:07 ` Darrick J. Wong
@ 2025-02-10 16:21 ` Zorro Lang
1 sibling, 0 replies; 8+ messages in thread
From: Zorro Lang @ 2025-02-10 16:21 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: zlang, djwong, fstests, linux-xfs
On Tue, Feb 04, 2025 at 02:46:55PM +0100, Christoph Hellwig wrote:
> This test only creates file system images as regular files, but never
> actually uses the kernel loop driver. Remove the extra requirement.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
I think this one doesn't depend on the [PATCH 1/2], so I'll
merge this one at first. About the other one, I'll wait you
or Darrick's next patch :)
Thanks,
Zorro
> tests/xfs/614 | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/tests/xfs/614 b/tests/xfs/614
> index 06cc2384f38c..f2ea99edb342 100755
> --- a/tests/xfs/614
> +++ b/tests/xfs/614
> @@ -22,7 +22,6 @@ _cleanup()
>
>
> _require_test
> -_require_loop
> $MKFS_XFS_PROG 2>&1 | grep -q concurrency || \
> _notrun "mkfs does not support concurrency options"
>
> --
> 2.45.2
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2025-02-10 16:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 13:46 [PATCH 1/2] xfs/614: query correct direct I/O alignment Christoph Hellwig
2025-02-04 13:46 ` [PATCH 2/2] xfs/614: remove the _require_loop call Christoph Hellwig
2025-02-04 17:07 ` Darrick J. Wong
2025-02-10 16:21 ` Zorro Lang
2025-02-04 17:12 ` [PATCH 1/2] xfs/614: query correct direct I/O alignment Darrick J. Wong
2025-02-05 15:44 ` Christoph Hellwig
2025-02-05 15:51 ` Darrick J. Wong
2025-02-05 16:07 ` Christoph Hellwig
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox