aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZorro Lang <zlang@kernel.org>2024-03-24 22:17:07 +0800
committerZorro Lang <zlang@kernel.org>2024-03-27 22:05:18 +0800
commitf8fbdbe233090b999a7c1e4f2e2a89d47194b719 (patch)
tree6692c0d0831d7f91de20e97e95fdb53081ce3d28
parent805eeea406a7cd78ab76f91cb061bce7e9a3e83c (diff)
downloadxfstests-dev-f8fbdbe233090b999a7c1e4f2e2a89d47194b719.tar.gz
common/rc: fix unknown _xfs_repair_test_fs function name
Sometimes I hit below errors: ./common/rc: line 1293: _xfs_repair_test_fs: command not found ./common/rc: line 1298: _xfs_repair_test_fs: command not found The _repair_test_fs trys to call _xfs_repair_test_fs(), but there's not that function in fstests. According to commit c7d81cdecbef, it brought in _test_xfs_repair, but called wrong name. So fix it. Fixes: c7d81cdecbef ("check: try to fix the test device if it gets corrupted") Reviewed-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Zorro Lang <zlang@kernel.org>
-rw-r--r--common/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rc b/common/rc
index ff2949bd05..b7b77ac1b4 100644
--- a/common/rc
+++ b/common/rc
@@ -1290,12 +1290,12 @@ _repair_test_fs()
res=$?
if [ $res -gt 0 ]; then
echo "mount returns $res; zap log?" >>$tmp.repair
- _xfs_repair_test_fs -L >>$tmp.repair 2>&1
+ _test_xfs_repair -L >>$tmp.repair 2>&1
echo "log zap returns $?" >> $tmp.repair
else
umount "$TEST_DEV"
fi
- _xfs_repair_test_fs "$@" >>$tmp.repair 2>&1
+ _test_xfs_repair "$@" >>$tmp.repair 2>&1
res=$?
fi
;;