FS/XFS testing framework
 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: Wed, 25 Nov 2026 04:20:46 +0800	[thread overview]
Message-ID: <awXw0TF3yf7pM_f-@zlang-mailbox> (raw)
In-Reply-To: <20261124103617.4012647-3-aalbersh@kernel.org>

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

>  _require_xfs_stress_scrub
>  _require_populate_commands
>  
> diff --git a/tests/xfs/556 b/tests/xfs/556
> index f5ad90c869ba..022a8e674a5a 100755
> --- a/tests/xfs/556
> +++ b/tests/xfs/556
> @@ -26,6 +26,7 @@ _cleanup()
>  _require_scratch
>  _require_scratch_xfs_crc
>  _require_scrub
> +_require_xfs_io_command "repair"	# online repair support
>  _require_dm_target error
>  
>  filter_scrub_errors() {
> -- 
> 2.54.0
> 

      reply	other threads:[~2026-11-24 20:20 UTC|newest]

Thread overview: 5+ 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-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 [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=awXw0TF3yf7pM_f-@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