tmpfs does not support the O_DIRECT flag, so when FSTYP is tmpfs, do not test with O_DIRECT flag. Signed-off-by: Sun Ke <sunke32@xxxxxxxxxx> --- tests/generic/591 | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/generic/591 b/tests/generic/591 index d4020463..4b97a2fc 100755 --- a/tests/generic/591 +++ b/tests/generic/591 @@ -31,10 +31,18 @@ _require_test_program "splice-test" rm -f $seqres.full -$here/src/splice-test -r $TEST_DIR/a -$here/src/splice-test -rd $TEST_DIR/a -$here/src/splice-test $TEST_DIR/a -$here/src/splice-test -d $TEST_DIR/a +if [ $FSTYP == "tmpfs" ]; then + echo "concurrent reader with O_DIRECT" + echo "concurrent reader with O_DIRECT" + $here/src/splice-test -rd $TEST_DIR/a + echo "sequential reader with O_DIRECT" + $here/src/splice-test -d $TEST_DIR/a +else + $here/src/splice-test -r $TEST_DIR/a + $here/src/splice-test -rd $TEST_DIR/a + $here/src/splice-test $TEST_DIR/a + $here/src/splice-test -d $TEST_DIR/a +fi # success, all done status=0 -- 2.13.6