common/xfs: refactor xfs_scrub presence testing
[xfstests-dev.git] / common / rc
index e2a8229f08bcb768e53227d44392259376718595..a2999a2f6b2a2cd938b5c8acfc84bd0779678ed5 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2077,7 +2077,7 @@ _require_xfs_io_command()
                        _notrun "xfs_io $command support is missing"
                ;;
        "scrub"|"repair")
-               testio=`$XFS_IO_PROG -x -c "$command test 0" $TEST_DIR 2>&1`
+               testio=`$XFS_IO_PROG -x -c "$command probe 0" $TEST_DIR 2>&1`
                echo $testio | grep -q "Inappropriate ioctl" && \
                        _notrun "xfs_io $command support is missing"
                ;;