]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: fix fsmap check
authorXiao Yang <yangx.jy@cn.fujitsu.com>
Tue, 20 Sep 2016 05:23:12 +0000 (13:23 +0800)
committerEryu Guan <eguan@redhat.com>
Tue, 20 Sep 2016 06:09:43 +0000 (14:09 +0800)
We don't need -T to detect GETFSMAP and the flag doesn't exist
on really old versions of xfs_io, so just get rid of it.

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

index 655ae2873de88c16cdf18d0366d9173d17312353..8a393d9de888909d4dd3b935a13905f54af475d7 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2049,8 +2049,7 @@ _require_xfs_io_command()
                        _notrun "xfs_io $command support is missing"
                ;;
        "fsmap" )
-               testio=`$XFS_IO_PROG -T -F -c "fsmap" \
-                       $TEST_DIR 2>&1`
+               testio=`$XFS_IO_PROG -f -c "fsmap" $testfile 2>&1`
                echo $testio | egrep -q "Inappropriate ioctl" && \
                        _notrun "xfs_io $command support is missing"
                ;;