]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: Fix _require_xfs_io_command for scrub probe
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Mon, 4 Jun 2018 04:50:12 +0000 (12:50 +0800)
committerEryu Guan <guaneryu@gmail.com>
Tue, 5 Jun 2018 00:43:16 +0000 (08:43 +0800)
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>
common/rc

index ab5dba25b09bbcc8a36fdf09fafaac1d8a8c1fa0..a4364972c4aa74561c8c085d3b045c11590243e1 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -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"
                ;;