From: Darrick J. Wong Date: Thu, 22 Mar 2018 02:46:56 +0000 (-0700) Subject: common/xfs: don't call xfs_scrub on a block device X-Git-Tag: v2022.05.01~1621 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=064c618989630c7108f7c1f30b809232d9db67c7;p=users%2Fhch%2Fxfstests-dev.git common/xfs: don't call xfs_scrub on a block device xfs_scrub takes an xfs mountpoint as its argument, not a block device. Therefore, fix _check_xfs_filesystem to call it correctly. Signed-off-by: Darrick J. Wong Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- diff --git a/common/xfs b/common/xfs index 37cd80c6c..56531f914 100644 --- a/common/xfs +++ b/common/xfs @@ -358,7 +358,7 @@ _check_xfs_filesystem() # Run online scrub if we can. mntpt="$(_is_dev_mounted $device)" if [ -n "$mntpt" ] && _supports_xfs_scrub "$mntpt" "$device"; then - "$XFS_SCRUB_PROG" $scrubflag -v -d -n $device > $tmp.scrub 2>&1 + "$XFS_SCRUB_PROG" $scrubflag -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