fstests: check for unknown flag result in _require_xfs_io_command
[xfstests-dev.git] / common / rc
index b25cad0ed8b098c51807e878a465247679ae618c..a6967831fad51322efca9d8d9dfb1f640878e96b 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -2255,6 +2255,8 @@ _require_xfs_io_command()
                _notrun "xfs_io $command $param_checked not supported on $FSTYP"
        echo $testio | grep -q "Function not implemented" && \
                _notrun "xfs_io $command $param_checked support is missing (missing syscall?)"
+       echo $testio | grep -q "unknown flag" && \
+               _notrun "xfs_io $command $param_checked support is missing (unknown flag)"
 
        [ -n "$param" ] || return
 
@@ -4209,6 +4211,19 @@ _require_bsd_process_accounting()
        $ACCTON_PROG off >> $seqres.full
 }
 
+_require_sysctl_variable()
+{
+       local name=$1
+       sysctl $name &>/dev/null || _notrun "$name sysctl unavailable"
+}
+
+_require_mknod()
+{
+       mknod $TEST_DIR/$seq.null c 1 3 \
+               || _notrun "$FSTYP does not support mknod/mkfifo"
+       rm -f $TEST_DIR/$seq.null
+}
+
 init_rc
 
 ################################################################################