Skip to content

Commit

Permalink
diotest4: Skip test 3 and 14 for tmpfs
Browse files Browse the repository at this point in the history
tmpfs in kernel v6.6 got support for O_DIRECT in e88e0d366f9c ("tmpfs:
trivial support for direct IO"). There is no reason for tmpfs to reject
direct IO of any size therefore follow the approach already used for
Btrfs, NFS and FUSE: skipping test 3 (odd count of read and write)
and 14 (read, write with non-aligned buffer).

Link: https://lore.kernel.org/ltp/[email protected]/
Suggested-by: Jan Kara <[email protected]>
Reviewed-by: Jan Kara <[email protected]>
Acked-by: Christian Brauner <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Nov 23, 2023
1 parent 1c30d6a commit 8dd75fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testcases/kernel/io/direct_io/diotest4.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ int main(int argc, char *argv[])
case TST_NFS_MAGIC:
case TST_BTRFS_MAGIC:
case TST_FUSE_MAGIC:
case TST_TMPFS_MAGIC:
tst_resm(TCONF, "%s supports odd count IO",
tst_fs_type_name(fs_type));
break;
Expand Down Expand Up @@ -443,6 +444,7 @@ int main(int argc, char *argv[])
case TST_NFS_MAGIC:
case TST_BTRFS_MAGIC:
case TST_FUSE_MAGIC:
case TST_TMPFS_MAGIC:
tst_resm(TCONF, "%s supports non-aligned buffer",
tst_fs_type_name(fs_type));
break;
Expand Down

0 comments on commit 8dd75fa

Please sign in to comment.