generic: add _require_odirect to generic/113 and generic/214

generic/113 and generic/214 both use O_DIRECT at some stage in their
tests, so check O_DIRECT support before running them.

Signed-off-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
Theodore Ts'o
2016-02-19 10:44:45 +11:00
committed by Dave Chinner
parent 93a14f9f6e
commit 9d220d1222
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -77,6 +77,7 @@ _do_test()
_supported_fs generic _supported_fs generic
_supported_os Linux _supported_os Linux
_require_test _require_test
_require_odirect
[ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform" [ -x $here/ltp/aio-stress ] || _notrun "aio-stress not built for this platform"
+1
View File
@@ -55,6 +55,7 @@ rm -f $seqres.full
rm -f $TEST_DIR/ouch* rm -f $TEST_DIR/ouch*
_require_xfs_io_command "falloc" _require_xfs_io_command "falloc"
_require_odirect
# Ok, off we go. # Ok, off we go.