From: Zorro Lang <zlang@kernel.org>
To: Andrey Albershteyn <aalbersh@kernel.org>
Cc: fstests <fstests@vger.kernel.org>, preichl@redhat.com
Subject: Re: [PATCH 2/2] xfs/349,xfs/556: both these tests require online repair in the kernel
Date: Fri, 27 Nov 2026 00:32:46 +0800 [thread overview]
Message-ID: <awhad6V9h2NEbKra@zlang-mailbox> (raw)
In-Reply-To: <awgC2L0b9xRBTQy0@aalbersh-thinkpadx1carbongen13.rmtcz.csb>
On Thu, Nov 26, 2026 at 11:12:39AM +0100, Andrey Albershteyn wrote:
> On 2026-11-26 05:40:24, Zorro Lang wrote:
> > On Wed, Nov 25, 2026 at 11:48:48AM +0100, Andrey Albershteyn wrote:
> > > On 2026-11-25 04:20:46, Zorro Lang wrote:
> > > > On Tue, Nov 24, 2026 at 11:36:15AM +0100, Andrey Albershteyn wrote:
> > > > > Both these tests run xfs_scrub without -n (scrub only, no repair),
> > > > > therefore, scrub tries to repair found issues. However, without online
> > > > > repair enabled in the kernel scrub exits with a message that online
> > > > > repair is not supported, breaking the golden output.
> > > > >
> > > > > In the xfs/556 case, online repair will not repair anything but just
> > > > > prints a message that unrepairable issue found.
> > > > >
> > > > > Signed-off-by: Andrey Albershteyn <aalbersh@kernel.org>
> > > > > ---
> > > > > tests/xfs/349 | 1 +
> > > > > tests/xfs/556 | 1 +
> > > > > 2 files changed, 2 insertions(+)
> > > > >
> > > > > diff --git a/tests/xfs/349 b/tests/xfs/349
> > > > > index a03ab812dc9e..0940ced42121 100755
> > > > > --- a/tests/xfs/349
> > > > > +++ b/tests/xfs/349
> > > > > @@ -18,6 +18,7 @@ _register_cleanup "_cleanup" BUS
> > > > >
> > > > > _require_scratch
> > > > > _require_scrub
> > > > > +_require_xfs_io_command "repair" # online repair support
> > > >
> > > > As neither of these two cases explicitly runs xfs_io -c "repair", I think
> > > > the comment could briefly mention why the online repair command is needed,
> > > > to prevent it from being accidentally removed in the future.
> > > >
> > > > Thanks,
> > > > Zorro
> > >
> > > This could be probably be better wrapped into
> > > _require_xfs_online_repair then?
> >
> > Do you have any additional needs beyond calling _require_xfs_io_command
> > repair directly? If not, maybe we can hold off on introducing
> > _require_xfs_online_repair in this patch, since quite a few tests in fstests
> > already use "_require_xfs_io_command repair" for online repair.
> >
> > Of course, if more specific requirements come up later, you're always
> > very welcome to add dedicated helpers for online repair anytime.
>
> The line:
>
> _require_xfs_io_command "repair" # online repair support
>
> is in the test to check that kernel supports "online repair",
> nothing else.
>
> If online repair is not supported the xfs_scrub will output
> different message.
For example, if the line above ^^ is the reason why the online repair feature is
required, you can say:
# If online repair is not enabled in the kernel, _scratch_scrub will output
# different messages and break the golden image
_require_xfs_io_command "repair"
Of course, feel free to replace this comment if you have a better explanation.
I just wanted to make it clear why a test case that doesn't explicitly run
online repair still requires online repair support. (After all, on the surface,
this test just calls _scratch_scrub, and by default _scratch_scrub should only
run an online check without actually doing a repair, right? )
Thanks,
Zorro
>
> So, how do you see it, should I keep it like this?
>
> --
> - Andrey
>
prev parent reply other threads:[~2026-11-26 16:32 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 10:36 [PATCH 0/2] Hints for tests failing on older kernel/xfsprogs Andrey Albershteyn
2026-11-24 10:36 ` [PATCH 1/2] generic/453,generic/454: add a hint for the missing xfsprogs commit Andrey Albershteyn
2026-11-24 20:16 ` Zorro Lang
2026-11-25 10:35 ` Andrey Albershteyn
2026-11-25 21:31 ` Zorro Lang
2026-11-24 10:36 ` [PATCH 2/2] xfs/349,xfs/556: both these tests require online repair in the kernel Andrey Albershteyn
2026-11-24 20:20 ` Zorro Lang
2026-11-25 10:48 ` Andrey Albershteyn
2026-11-25 21:40 ` Zorro Lang
2026-11-26 10:12 ` Andrey Albershteyn
2026-11-26 16:32 ` Zorro Lang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awhad6V9h2NEbKra@zlang-mailbox \
--to=zlang@kernel.org \
--cc=aalbersh@kernel.org \
--cc=fstests@vger.kernel.org \
--cc=preichl@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox