From: Darrick J. Wong Date: Fri, 21 Jul 2017 22:04:27 +0000 (-0700) Subject: xfs: only run scrub in dry run mode X-Git-Tag: v2022.05.01~1931 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=93d6007671f506bf599554ff72d98a7b8f26e45b;p=users%2Fhch%2Fxfstests-dev.git xfs: only run scrub in dry run mode When checking a filesystem, explicitly run xfs_scrub in dry run mode so that it will not ever try to preen, fix, or optimize anything. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/xfs b/common/xfs index a1ee38478..fd04f65f6 100644 --- a/common/xfs +++ b/common/xfs @@ -331,7 +331,7 @@ _check_xfs_filesystem() if [ "$type" = "xfs" ]; then if [ -n "$TEST_XFS_SCRUB" ] && [ -x "$XFS_SCRUB_PROG" ]; then - "$XFS_SCRUB_PROG" $scrubflag -vd $device >>$seqres.full + "$XFS_SCRUB_PROG" $scrubflag -v -d -n $device >>$seqres.full if [ $? -ne 0 ]; then _log_err "filesystem on $device failed scrub" ok=0