aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2023-08-16 12:33:30 +0200
committerZorro Lang <zlang@kernel.org>2023-08-19 02:48:47 +0800
commit515adab889b9b0945b3b67de97cbb61cdb803783 (patch)
treed42c2c5ac156720b036242d420683bba91f466de
parent9caf3ee07d0d0071e70f5bde28e6cd32bbc0e266 (diff)
downloadxfstests-dev-515adab889b9b0945b3b67de97cbb61cdb803783.tar.gz
common/rc: drop 'fsck -f' parameter from _repair_test_fs
The '-f' parameter is fsck.ext# specific, where it's documented to: Force checking even if filesystem is marked clean _repair_test_fs() is only called on _check_test_fs() failure, so dropping the parameter should be possible without changing ext# behaviour. Doing so fixes _repair_test_fs() on exfat, where fsck.exfat doesn't support '-f'. Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rw-r--r--common/rc2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rc b/common/rc
index 5c4429ed04..66d270acf0 100644
--- a/common/rc
+++ b/common/rc
@@ -1231,7 +1231,7 @@ _repair_test_fs()
;;
*)
# Let's hope fsck -y suffices...
- fsck -t $FSTYP -fy $TEST_DEV >$tmp.repair 2>&1
+ fsck -t $FSTYP -y $TEST_DEV >$tmp.repair 2>&1
res=$?
if test "$res" -lt 4 ; then
res=0