mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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>
This commit is contained in:
committed by
Eryu Guan
parent
581862bdc0
commit
064c618989
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user