aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-03-21 19:46:56 -0700
committerEryu Guan <guaneryu@gmail.com>2018-03-23 12:43:44 +0800
commit064c618989630c7108f7c1f30b809232d9db67c7 (patch)
tree440f3e60b8f97c1be49d6518b7a9410f283fedd5
parent581862bdc02323bc3c2e71a489b09ca4e23cf461 (diff)
downloadxfstests-dev-064c618989630c7108f7c1f30b809232d9db67c7.tar.gz
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 <darrick.wong@oracle.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r--common/xfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/xfs b/common/xfs
index 37cd80c6c5..56531f914c 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