]> www.infradead.org Git - users/hch/xfstests-dev.git/commitdiff
common/xfs: fix broken code in _check_xfs_filesystem
authorDarrick J. Wong <djwong@kernel.org>
Wed, 16 Mar 2022 03:30:14 +0000 (20:30 -0700)
committerEryu Guan <guaneryu@gmail.com>
Sun, 10 Apr 2022 12:31:01 +0000 (20:31 +0800)
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>
common/xfs

index 053b61899697d7c5ab3d26b06013718e310dec81..ac1d021e40ac1cda297bdf3cb0e1c1f08ec2f031 100644 (file)
@@ -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