All of lore.kernel.org
 help / color / mirror / Atom feed
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: Thu, 26 Nov 2026 05:40:24 +0800	[thread overview]
Message-ID: <awdT2Ox9WQZWFkq8@zlang-mailbox> (raw)
In-Reply-To: <awa6F8rKj-4xD-eF@aalbersh-thinkpadx1carbongen13.rmtcz.csb>

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.

Thanks,
Zorro

> 
> -- 
> - Andrey
> 

  reply	other threads:[~2026-11-25 21:40 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 [this message]
2026-11-26 10:12         ` Andrey Albershteyn
2026-11-26 16:32           ` Zorro Lang

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=awdT2Ox9WQZWFkq8@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.