public inbox for fstests@vger.kernel.org
 help / color / mirror / Atom feed
From: Eryu Guan <guaneryu@gmail.com>
To: Zorro Lang <zlang@redhat.com>
Cc: fstests@vger.kernel.org
Subject: Re: [PATCH v2] xfstests: filter redundant output by getfattr
Date: Sun, 26 Aug 2018 20:58:11 +0800	[thread overview]
Message-ID: <20180826125811.GB3651@desktop> (raw)
In-Reply-To: <20180823024124.5341-1-zlang@redhat.com>

On Thu, Aug 23, 2018 at 10:41:24AM +0800, Zorro Lang wrote:
> When getfattr dumps values of all extended attributes (-d option),
> it doesn't print empty extended attributes. e.g: user.name. But
> from attr-2.4.48 this behavior is changed,  new getfattr prints
> user.name="".
> 
> The {=""} will break the golden image, so filter the redundant =""
> at the end if it has.
> 
> Signed-off-by: Zorro Lang <zlang@redhat.com>
> ---
> 
> Hi,
> 
> Sorry I took long time to write this V2, due to it changed many
> cases, I have to test them one by one. V1 patch refer to:
> https://patchwork.kernel.org/patch/10521875/
> 
> V2 did below changes:
> 1) Bring in a common function named _getfattr()
> 2) Replace all $GETFATTR_PROG with _getfattr

Thanks a lot for the work!

> 
> Thanks,
> Zorro
> 
>  common/attr       | 11 +++++++++++
>  tests/ext4/022    |  2 +-
>  tests/ext4/026    |  4 ++--
>  tests/generic/020 |  8 ++++----
>  tests/generic/037 |  2 +-
>  tests/generic/062 |  4 ++--
>  tests/generic/066 |  4 ++--
>  tests/generic/093 |  2 +-
>  tests/generic/097 |  2 +-
>  tests/generic/337 |  2 +-
>  tests/generic/364 |  4 ++--

This test and ..

>  tests/generic/403 |  2 +-
>  tests/generic/454 |  6 +++---
>  tests/generic/489 |  2 +-
>  tests/overlay/011 |  2 +-
>  tests/overlay/026 |  4 ++--
>  tests/overlay/038 |  4 ++--
>  tests/overlay/041 |  4 ++--
>  tests/overlay/046 |  6 +++---
>  tests/overlay/056 |  2 +-
>  tests/overlay/060 |  4 ++--

this one requires sourcing common/attr before using _getfattr. I've
fixed them on commit.

Thanks,
Eryu

      reply	other threads:[~2018-08-26 16:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-23  2:41 [PATCH v2] xfstests: filter redundant output by getfattr Zorro Lang
2018-08-26 12:58 ` Eryu Guan [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=20180826125811.GB3651@desktop \
    --to=guaneryu@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox