common/rc: fix xfs_io scrub command existence test
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 30 Aug 2017 22:31:41 +0000 (15:31 -0700)
committerEryu Guan <eguan@redhat.com>
Sun, 3 Sep 2017 04:20:00 +0000 (12:20 +0800)
The name of the xfs_io scrub subcommand to test for the existence of
the ioctl has been changed to 'test' from 'dummy', so fix xfstests.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
common/rc

index 44b98f6f0445dd50530915388fb71cced371e7fb..cd53a3734c057dcbf0c774a522d14c94492d50f7 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2189,7 +2189,7 @@ _require_xfs_io_command()
                        _notrun "xfs_io $command support is missing"
                ;;
        "scrub"|"repair")
-               testio=`$XFS_IO_PROG -x -c "$command dummy 0" $TEST_DIR 2>&1`
+               testio=`$XFS_IO_PROG -x -c "$command test 0" $TEST_DIR 2>&1`
                echo $testio | grep -q "Inappropriate ioctl" && \
                        _notrun "xfs_io $command support is missing"
                ;;