aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2022-03-15 20:30:14 -0700
committerEryu Guan <guaneryu@gmail.com>2022-04-10 20:31:01 +0800
commit58331382174eaa8aedd72223906fb1265b450687 (patch)
tree05875989373fcb9218926388dd79738743d432f5
parente1b93b712f2993303cc5905efdb6c51b4fda7295 (diff)
downloadxfstests-dev-58331382174eaa8aedd72223906fb1265b450687.tar.gz
common/xfs: fix broken code in _check_xfs_filesystem
Fix some problems with undefined variables in the scrub control code. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r--common/xfs6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/xfs b/common/xfs
index 053b618996..ac1d021e40 100644
--- a/common/xfs
+++ b/common/xfs
@@ -568,12 +568,12 @@ _check_xfs_filesystem()
# before executing a scrub operation.
$XFS_IO_PROG -c syncfs $mntpt >> $seqres.full 2>&1
- "$XFS_SCRUB_PROG" $scrubflag -v -d -n $mntpt > $tmp.scrub 2>&1
+ "$XFS_SCRUB_PROG" -v -d -n $mntpt > $tmp.scrub 2>&1
if [ $? -ne 0 ]; then
_log_err "_check_xfs_filesystem: filesystem on $device failed scrub"
- echo "*** xfs_scrub $scrubflag -v -d -n output ***" >> $seqres.full
+ echo "*** xfs_scrub -v -d -n output ***" >> $seqres.full
cat $tmp.scrub >> $seqres.full
- echo "*** end xfs_scrub output" >> $serqres.full
+ echo "*** end xfs_scrub output" >> $seqres.full
ok=0
fi
rm -f $tmp.scrub