From 93d6007671f506bf599554ff72d98a7b8f26e45b Mon Sep 17 00:00:00 2001 From: "Darrick J. Wong" Date: Fri, 21 Jul 2017 15:04:27 -0700 Subject: [PATCH] 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 --- common/xfs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xfs b/common/xfs index a1ee3847..fd04f65f 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 -- 2.39.5