common: add flink support to _require_xfs_io_command
authorChristoph Hellwig <hch@infradead.org>
Fri, 4 Apr 2014 06:15:51 +0000 (17:15 +1100)
committerDave Chinner <david@fromorbit.com>
Fri, 4 Apr 2014 06:15:51 +0000 (17:15 +1100)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
common/rc

index 7f9db566ea07df8994f1ab8d2b6d40b4f1837f8d..3bd4bcb2cb368ebfa66b29cf0ca792abac3e9b80 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -1318,6 +1318,10 @@ _require_xfs_io_command()
                testio=`$XFS_IO_PROG -F -f -c "pwrite 0 20k" -c "fsync" \
                        -c "fiemap -v" $testfile 2>&1`
                ;;
+       "flink" )
+               testio=`$XFS_IO_PROG -T -F -c "flink $testfile" \
+                       $TEST_DIR 2>&1`
+               ;;
        *)
                testio=`$XFS_IO_PROG -c "$command help" 2>&1`
        esac