FS/XFS testing framework
 help / color / mirror / Atom feed
* [PATCH] common/rc: drop '-f' parameter from fsck.exfat
@ 2023-08-07 11:28 David Disseldorp
  2023-08-07 17:48 ` Zorro Lang
  0 siblings, 1 reply; 5+ messages in thread
From: David Disseldorp @ 2023-08-07 11:28 UTC (permalink / raw)
  To: fstests; +Cc: linkinjeon, sj1557.seo, David Disseldorp

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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-08 18:17 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-07 11:28 [PATCH] common/rc: drop '-f' parameter from fsck.exfat David Disseldorp
2023-08-07 17:48 ` Zorro Lang
2023-08-07 22:34   ` David Disseldorp
2023-08-08  9:14     ` Zorro Lang
2023-08-08  2:39   ` Darrick J. Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox