mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common: Mark tests which use direct I/O with _requires_odirect
There were a number of tests that use Direct I/O that weren't testing to make sure O_DIRECT is actually supported. This will be important for avoiding false positives when testing ext4 encryption (which does not support DIO for obvious reasons). Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
committed by
Dave Chinner
parent
829b475f54
commit
687a0634f1
@@ -42,6 +42,7 @@ _supported_os Linux
|
||||
_supported_fs ext4
|
||||
_require_scratch
|
||||
_require_defrag
|
||||
_require_odirect
|
||||
|
||||
NUM_JOBS=$((4*LOAD_FACTOR))
|
||||
BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
|
||||
|
||||
@@ -43,6 +43,7 @@ _supported_os Linux
|
||||
_supported_fs ext4
|
||||
_require_scratch
|
||||
_require_defrag
|
||||
_require_odirect
|
||||
|
||||
BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
|
||||
# We need space for 2 files (test file, and donor one)
|
||||
|
||||
@@ -43,6 +43,7 @@ _supported_os Linux
|
||||
_supported_fs ext4
|
||||
_require_scratch
|
||||
_require_defrag
|
||||
_require_odirect
|
||||
|
||||
BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
|
||||
# We need space for 3 files (one donor file and two test files)
|
||||
|
||||
@@ -44,6 +44,7 @@ _supported_os Linux
|
||||
_supported_fs ext4
|
||||
_require_scratch
|
||||
_require_defrag
|
||||
_require_odirect
|
||||
|
||||
BLK_DEV_SIZE=`blockdev --getsz $SCRATCH_DEV`
|
||||
# We need space for 2 files (test file, and donor one)
|
||||
|
||||
@@ -44,6 +44,7 @@ _cleanup()
|
||||
_supported_fs generic
|
||||
_supported_os Linux
|
||||
_require_scratch
|
||||
_require_odirect
|
||||
|
||||
iodepth=$((16 * LOAD_FACTOR))
|
||||
iodepth_batch=$((8 * LOAD_FACTOR))
|
||||
|
||||
@@ -47,6 +47,7 @@ _supported_os Linux
|
||||
_require_scratch
|
||||
_require_dm_target error
|
||||
_require_xfs_io_command "falloc"
|
||||
_require_odirect
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ _supported_os Linux
|
||||
_require_scratch
|
||||
_require_dm_target error
|
||||
_require_xfs_io_command "falloc"
|
||||
_require_test_program "aio-dio-regress/aiocp"
|
||||
_require_aiodio "aiocp"
|
||||
AIO_TEST="src/aio-dio-regress/aiocp"
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ _supported_os Linux
|
||||
_require_scratch_reflink
|
||||
_require_cp_reflink
|
||||
_require_dm_target error
|
||||
_require_test_program "aio-dio-regress/aiocp"
|
||||
_require_aiodio "aiocp"
|
||||
AIO_TEST="src/aio-dio-regress/aiocp"
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ _cleanup()
|
||||
_supported_os Linux
|
||||
_require_scratch_reflink
|
||||
_require_cp_reflink
|
||||
_require_test_program "aio-dio-regress/aiocp"
|
||||
_require_aiodio "aiocp"
|
||||
AIO_TEST="src/aio-dio-regress/aiocp"
|
||||
|
||||
rm -f $seqres.full
|
||||
|
||||
Reference in New Issue
Block a user