* [PATCH] xfs/837: set rtinherit on the root directory programmatically
@ 2026-08-26 18:30 Darrick J. Wong
2026-08-27 16:39 ` Zorro Lang
2026-08-27 17:03 ` Zorro Lang
0 siblings, 2 replies; 3+ messages in thread
From: Darrick J. Wong @ 2026-08-26 18:30 UTC (permalink / raw)
To: Zorro Lang; +Cc: fstests, xfs, Hans.Holmberg
From: Darrick J. Wong <djwong@kernel.org>
I patched mkfs to enable metadir by default, but then this test
regressed on the "-m metadir=0 -d rtinherit=1..." configuration. Upon
digging into the test results, I observed that the scratch filesystem
actually had metadir enabled despite the intended configuration. That
in turn revealed that _scratch_mkfs was failing because -d rtinherit was
being respecified, so it did that obnoxious thing it does and reformats
with only the caller's mkfs options.
As a result, the scratch filesystem is configured incorrectly -- metadir
is enabled when we don't want it to be, so we pick the wrong output file
and fail.
Instead of passing -drtinherit and potentially conflicting with the test
configuration options, let's use _xfs_force_bdev to set rtinherit
programmatically.
Cc: <Hans.Holmberg@wdc.com>
Cc: <fstests@vger.kernel.org> # v2025.06.22
Fixes: e225772353e212 ("xfs: add mount test for read only rt devices")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
---
tests/xfs/837 | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tests/xfs/837 b/tests/xfs/837
index 2fe195a009f10f..33ec37ae3dbde3 100755
--- a/tests/xfs/837
+++ b/tests/xfs/837
@@ -35,7 +35,11 @@ fi
_register_cleanup "_cleanup_setrw"
-_scratch_mkfs "-d rtinherit" > /dev/null 2>&1
+_scratch_mkfs > /dev/null 2>&1
+
+_scratch_mount
+_xfs_force_bdev realtime $SCRATCH_MNT
+_scratch_unmount
# Select appropriate output file
features=""
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] xfs/837: set rtinherit on the root directory programmatically
2026-08-26 18:30 [PATCH] xfs/837: set rtinherit on the root directory programmatically Darrick J. Wong
@ 2026-08-27 16:39 ` Zorro Lang
2026-08-27 17:03 ` Zorro Lang
1 sibling, 0 replies; 3+ messages in thread
From: Zorro Lang @ 2026-08-27 16:39 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: fstests, xfs, Hans.Holmberg
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] xfs/837: set rtinherit on the root directory programmatically
2026-08-26 18:30 [PATCH] xfs/837: set rtinherit on the root directory programmatically Darrick J. Wong
2026-08-27 16:39 ` Zorro Lang
@ 2026-08-27 17:03 ` Zorro Lang
1 sibling, 0 replies; 3+ messages in thread
From: Zorro Lang @ 2026-08-27 17:03 UTC (permalink / raw)
To: Darrick J. Wong; +Cc: fstests, xfs, Hans.Holmberg
On Wed, Aug 26, 2026 at 11:30:01AM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@kernel.org>
>
> I patched mkfs to enable metadir by default, but then this test
> regressed on the "-m metadir=0 -d rtinherit=1..." configuration. Upon
> digging into the test results, I observed that the scratch filesystem
> actually had metadir enabled despite the intended configuration. That
> in turn revealed that _scratch_mkfs was failing because -d rtinherit was
> being respecified, so it did that obnoxious thing it does and reformats
> with only the caller's mkfs options.
>
> As a result, the scratch filesystem is configured incorrectly -- metadir
> is enabled when we don't want it to be, so we pick the wrong output file
> and fail.
>
> Instead of passing -drtinherit and potentially conflicting with the test
> configuration options, let's use _xfs_force_bdev to set rtinherit
> programmatically.
>
> Cc: <Hans.Holmberg@wdc.com>
> Cc: <fstests@vger.kernel.org> # v2025.06.22
> Fixes: e225772353e212 ("xfs: add mount test for read only rt devices")
> Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
> ---
Makes sense to me,
Reviewed-by: Zorro Lang <zlang@kernel.org>
> tests/xfs/837 | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/tests/xfs/837 b/tests/xfs/837
> index 2fe195a009f10f..33ec37ae3dbde3 100755
> --- a/tests/xfs/837
> +++ b/tests/xfs/837
> @@ -35,7 +35,11 @@ fi
>
> _register_cleanup "_cleanup_setrw"
>
> -_scratch_mkfs "-d rtinherit" > /dev/null 2>&1
> +_scratch_mkfs > /dev/null 2>&1
> +
> +_scratch_mount
> +_xfs_force_bdev realtime $SCRATCH_MNT
> +_scratch_unmount
>
> # Select appropriate output file
> features=""
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-27 17:03 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-26 18:30 [PATCH] xfs/837: set rtinherit on the root directory programmatically Darrick J. Wong
2026-08-27 16:39 ` Zorro Lang
2026-08-27 17:03 ` Zorro Lang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox