mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/rc: Fix _require_xfs_io_command for scrub probe
Currently, xfs_io scrub command doesn't allow the probe function to have any parameter, so we remove the invalid parameter. Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
@@ -2154,7 +2154,7 @@ _require_xfs_io_command()
|
||||
param_checked=1
|
||||
;;
|
||||
"scrub"|"repair")
|
||||
testio=`$XFS_IO_PROG -x -c "$command probe 0" $TEST_DIR 2>&1`
|
||||
testio=`$XFS_IO_PROG -x -c "$command probe" $TEST_DIR 2>&1`
|
||||
echo $testio | grep -q "Inappropriate ioctl" && \
|
||||
_notrun "xfs_io $command support is missing"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user