FS/XFS testing framework
 help / color / mirror / Atom feed
From: David Disseldorp <ddiss@suse.de>
To: fstests@vger.kernel.org
Cc: linkinjeon@kernel.org, sj1557.seo@samsung.com,
	David Disseldorp <ddiss@suse.de>
Subject: [PATCH] common/rc: drop '-f' parameter from fsck.exfat
Date: Mon,  7 Aug 2023 13:28:50 +0200	[thread overview]
Message-ID: <20230807112850.9198-1-ddiss@suse.de> (raw)

fsck.exfat doesn't support the '-f' flag, so add a special case to
_repair_test_fs().

Signed-off-by: David Disseldorp <ddiss@suse.de>
---
 common/rc | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/common/rc b/common/rc
index 5c4429ed..ac7e50f1 100644
--- a/common/rc
+++ b/common/rc
@@ -1229,6 +1229,14 @@ _repair_test_fs()
 			res=$?
 		fi
 		;;
+	exfat)
+		# exfat doesn't support -f
+		fsck -t $FSTYP -y $TEST_DEV >$tmp.repair 2>&1
+		res=$?
+		if ((res < 4)); then
+			res=0
+		fi
+		;;
 	*)
 		# Let's hope fsck -y suffices...
 		fsck -t $FSTYP -fy $TEST_DEV >$tmp.repair 2>&1
-- 
2.35.3


             reply	other threads:[~2023-08-07 11:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-07 11:28 David Disseldorp [this message]
2023-08-07 17:48 ` [PATCH] common/rc: drop '-f' parameter from fsck.exfat Zorro Lang
2023-08-07 22:34   ` David Disseldorp
2023-08-08  9:14     ` Zorro Lang
2023-08-08  2:39   ` 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=20230807112850.9198-1-ddiss@suse.de \
    --to=ddiss@suse.de \
    --cc=fstests@vger.kernel.org \
    --cc=linkinjeon@kernel.org \
    --cc=sj1557.seo@samsung.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