From: "xuyang2018.jy@fujitsu.com" <xuyang2018.jy@fujitsu.com>
To: "fstests@vger.kernel.org" <fstests@vger.kernel.org>
Subject: Re: [PATCH v2 1/2] xfs/270: Fix syntax error
Date: Tue, 19 Jul 2022 02:13:02 +0000 [thread overview]
Message-ID: <730f0fe9-246d-683a-e1f1-68c2951ca1d2@fujitsu.com> (raw)
In-Reply-To: <1657012808-2204-1-git-send-email-xuyang2018.jy@fujitsu.com>
on 2022/07/05 17:20, Yang Xu wrote:
> Without xfsprogs commit
> f4afdcb0a ("xfs_db: clean up the salvage read callsites in set_cur()"),
> this case will fail as below:
Ping.
>
> +/var/lib/xfstests/tests/xfs/270: line 51: [: !=: unary operator expected
>
> With this xfsprogs bug, xfs_db can't get new_ro_compat value, so report
> this bash syntax error.
>
> Fix this and add a helper output for xfsprogs bug.
>
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
> ---
> tests/xfs/270 | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/tests/xfs/270 b/tests/xfs/270
> index b740c379..4954e943 100755
> --- a/tests/xfs/270
> +++ b/tests/xfs/270
> @@ -47,9 +47,12 @@ _scratch_xfs_set_metadata_field "features_ro_compat" "$ro_compat" "sb 0" \
> new_ro_compat=$(_scratch_xfs_get_metadata_field "features_ro_compat" "sb 0" \
> 2>/dev/null)
>
> -# verify the new ro_compat field is correct.
> -if [ $new_ro_compat != $ro_compat ]; then
> +# verify the new ro_compat field is correct. Without xfsprogs commit
> +# f4afdcb0ad ("xfs_db: clean up the salvage read callsites in set_cur()"),
> +# we can't get new_ro_compat value.
> +if [ "$new_ro_compat" != "$ro_compat" ]; then
> echo "Unable to set new features_ro_compat. Wanted $ro_compat, got $new_ro_compat"
> + echo "May hit a known xfsprog bug"
> fi
>
> # rw mount with unknown ro-compat feature should fail
next prev parent reply other threads:[~2022-07-19 2:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-05 9:20 [PATCH v2 1/2] xfs/270: Fix syntax error Yang Xu
2022-07-05 9:20 ` [PATCH v2 2/2] xfs/191: test xfs_db get corrupted value Yang Xu
2022-07-19 5:21 ` Zorro Lang
2022-07-19 6:59 ` xuyang2018.jy
2022-07-19 2:13 ` xuyang2018.jy [this message]
2022-07-19 5:13 ` [PATCH v2 1/2] xfs/270: Fix syntax error Zorro Lang
2022-07-19 8:31 ` [PATCH v3 " Yang Xu
2022-07-19 8:31 ` [PATCH v3 2/2] xfs/533: test xfs_db whether still can get corrupted field value Yang Xu
2022-07-19 14:47 ` Darrick J. Wong
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=730f0fe9-246d-683a-e1f1-68c2951ca1d2@fujitsu.com \
--to=xuyang2018.jy@fujitsu.com \
--cc=fstests@vger.kernel.org \
/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