mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Check O_DIRECT support before testing direct I/O
Some filesystems do not support O_DIRECT. Check whether TEST_DIR supports it by running xfs_io with -d flag. Signed-off-by: Junho Ryu <jayr@google.com> Signed-off-by: Dushan Tcholich <dusanc@gmail.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
@@ -43,6 +43,7 @@ _supported_fs generic
|
||||
_supported_os Linux
|
||||
_need_to_be_root
|
||||
_require_scratch
|
||||
_require_odirect
|
||||
|
||||
# xfs_io is not required for this test, but it's the best way to verify
|
||||
# the test system supports fallocate() for allocation and hole punching
|
||||
|
||||
Reference in New Issue
Block a user