All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Zorro Lang <zlang@redhat.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH] common/rc: filter uncertain stat error output
Date: Wed, 9 Dec 2020 11:28:06 -0800	[thread overview]
Message-ID: <20201209192806.GA106260@magnolia> (raw)
In-Reply-To: <20201209140738.1057460-1-zlang@redhat.com>

On Wed, Dec 09, 2020 at 10:07:38PM +0800, Zorro Lang wrote:
> The xfs/348 start to fail with latest coreutils' stat command, the
> mismatched part likes below:
> 
>   -stat: cannot stat 'SCRATCH_MNT/test/DIR': Structure needs cleaning
>   +stat: cannot statx 'SCRATCH_MNT/test/DIR': Structure needs cleaning
> 
> So filter 'statx' to 'stat' to prevent the golden image broken.
> 
> Signed-off-by: Zorro Lang <zlang@redhat.com>

Murphy Zhou already sent a patch to filter this.

--D

> ---
>  common/rc | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/common/rc b/common/rc
> index b5a504e0..95def920 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -4345,6 +4345,12 @@ _getcap()
>  	return ${PIPESTATUS[0]}
>  }
>  
> +stat()
> +{
> +	# filter uncertain "statx/stat" error output
> +	command stat $@ 2> >(sed -e 's/statx/stat/' >&2)
> +}
> +
>  init_rc
>  
>  ################################################################################
> -- 
> 2.25.4
> 

      parent reply	other threads:[~2020-12-09 19:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 14:07 [PATCH] common/rc: filter uncertain stat error output Zorro Lang
2020-12-09 14:27 ` Aurélien Aptel
2020-12-09 19:28 ` Darrick J. Wong [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=20201209192806.GA106260@magnolia \
    --to=darrick.wong@oracle.com \
    --cc=fstests@vger.kernel.org \
    --cc=zlang@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.