From e35b2df320ec0687dc093044281d065d7508a189 Mon Sep 17 00:00:00 2001 From: Xiao Yang Date: Tue, 20 Sep 2016 13:23:12 +0800 Subject: [PATCH] common/rc: fix fsmap check 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 Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- common/rc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/rc b/common/rc index 655ae287..8a393d9d 100644 --- 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" ;; -- 2.39.5