From: Anthony Iliopoulos <ailiop@suse.com>
To: Eryu Guan <guaneryu@gmail.com>
Cc: fstests@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: [PATCH] common/fuzzy: don't attempt online scrubbing unless supported
Date: Tue, 21 Apr 2020 13:36:42 +0200 [thread overview]
Message-ID: <20200421113643.24224-1-ailiop@suse.com> (raw)
Many xfs metadata fuzzing tests invoke xfs_scrub to detect online errors
even when _scratch_xfs_fuzz_metadata is invoked with "offline". This
causes those tests to fail with output mismatches on kernels that don't
enable CONFIG_XFS_ONLINE_SCRUB. Bypass scrubbing when not supported.
Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
---
common/fuzzy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/common/fuzzy b/common/fuzzy
index 988203b1..83ddc3e8 100644
--- a/common/fuzzy
+++ b/common/fuzzy
@@ -238,7 +238,7 @@ __scratch_xfs_fuzz_field_test() {
if [ $res -eq 0 ]; then
# Try an online scrub unless we're fuzzing ag 0's sb,
# which scrub doesn't know how to fix.
- if [ "${repair}" != "none" ]; then
+ if _supports_xfs_scrub "${SCRATCH_MNT}" "${SCRATCH_DEV}"; then
echo "++ Online scrub"
if [ "$1" != "sb 0" ]; then
_scratch_scrub -n -e continue 2>&1
--
2.26.2
next reply other threads:[~2020-04-21 11:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-21 11:36 Anthony Iliopoulos [this message]
2020-04-21 15:37 ` [PATCH] common/fuzzy: don't attempt online scrubbing unless supported Darrick J. Wong
2020-04-24 11:03 ` Anthony Iliopoulos
2020-04-27 17:03 ` 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=20200421113643.24224-1-ailiop@suse.com \
--to=ailiop@suse.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).