From: Allison Collins <allison.henderson@oracle.com>
To: "Darrick J. Wong" <darrick.wong@oracle.com>, guaneryu@gmail.com
Cc: linux-xfs@vger.kernel.org, fstests@vger.kernel.org
Subject: Re: [PATCH 1/4] dump: _cleanup_dump should only check the scratch fs if the test required it
Date: Fri, 21 Jun 2019 09:25:28 -0700 [thread overview]
Message-ID: <8194cb6e-4a29-5b18-e7be-fdb646dd8fe6@oracle.com> (raw)
In-Reply-To: <156089202883.345809.17656192140244878661.stgit@magnolia>
On 6/18/19 2:07 PM, Darrick J. Wong wrote:
> From: Darrick J. Wong <darrick.wong@oracle.com>
>
> _cleanup_dump always tries to check the scratch fs, even if the caller
> didn't actually _require_scratch. If a previous test wrote garbage to
> the scratch device then the dump test will fail here when repair
> stumbles over the garbage.
>
> This was observed by running xfs/016 and xfs/036 in succession. xfs/016
> writes 0xc6 to the scratch device and tries to format a small log. If
> the log is too small the format fails and the test will _notrun. The
> subsequent xfs/036 will _notrun and then _cleanup_dump if no tape device
> is set, at which point we try to check the scratch device and logprint
> aborts due to the abnormal log size (0xc6c6c6c6).
>
> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Looks ok to me.
Reviewed-by: Allison Collins <allison.henderson@oracle.com>
> ---
> common/dump | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>
> diff --git a/common/dump b/common/dump
> index 7c4c9cd8..2b8e0893 100644
> --- a/common/dump
> +++ b/common/dump
> @@ -250,7 +250,7 @@ _cleanup_dump()
> mv $dir.$seq $dir
> done
>
> - if [ $status -ne $NOTRUNSTS ]; then
> + if [ -f ${RESULT_DIR}/require_scratch ] && [ $status -ne $NOTRUNSTS ]; then
> # Sleep added to stop _check_scratch_fs from complaining that the
> # scratch_dev is still busy
> sleep 10
>
next prev parent reply other threads:[~2019-06-21 16:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-18 21:07 [PATCH 0/4] fstests: various fixes Darrick J. Wong
2019-06-18 21:07 ` [PATCH 1/4] dump: _cleanup_dump should only check the scratch fs if the test required it Darrick J. Wong
2019-06-21 16:25 ` Allison Collins [this message]
2019-06-18 21:07 ` [PATCH 2/4] xfs: rework min log size helper Darrick J. Wong
2019-06-21 8:57 ` Eryu Guan
2019-06-21 19:02 ` Darrick J. Wong
2019-06-18 21:07 ` [PATCH 3/4] xfs/016: calculate minimum log size and end locations Darrick J. Wong
2019-06-21 9:18 ` Eryu Guan
2019-06-21 16:24 ` Allison Collins
2019-06-21 18:51 ` Darrick J. Wong
2019-06-21 20:47 ` Allison Collins
2019-06-18 21:07 ` [PATCH 4/4] xfs/119: fix MKFS_OPTIONS exporting Darrick J. Wong
2019-06-21 9:19 ` Eryu Guan
2019-06-21 16:28 ` Allison Collins
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=8194cb6e-4a29-5b18-e7be-fdb646dd8fe6@oracle.com \
--to=allison.henderson@oracle.com \
--cc=darrick.wong@oracle.com \
--cc=fstests@vger.kernel.org \
--cc=guaneryu@gmail.com \
--cc=linux-xfs@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;
as well as URLs for NNTP newsgroup(s).