Skip to content

Commit

Permalink
fix: dev-libs/libaio test failures on btrfs
Browse files Browse the repository at this point in the history
Some tests (18.t and 21.t) in libaio require O_DIRECT support, which
is not consistent on BTRFS. This causes those tests to fail sporadically
when run on BTRFS. This adds a patch which disables those tests.

Signed-off-by: Jaremy Hatler <[email protected]>
  • Loading branch information
jhatler committed Jan 2, 2024
1 parent 17eacdd commit a5b12f4
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
These test cases fail on Btrfs, where O_DIRECT is not honored when the file has checksumming enabled.
See https://patchwork.kernel.org/project/linux-btrfs/patch/[email protected]/

--- a/harness/cases/18.t 2022-03-28 15:30:33.000000000 +0000
+++ b/harness/cases/18.t 2024-01-02 10:22:18.453642505 +0000
@@ -92,6 +92,7 @@
int
test_main(void)
{
+ return 3;
int i, fd, ret;
char *buffer = NULL;
pthread_t threads[THREADS_NUM];
--- a/harness/cases/21.t 2022-03-28 15:30:33.000000000 +0000
+++ b/harness/cases/21.t 2024-01-02 10:22:29.606976463 +0000
@@ -56,6 +56,7 @@
int
test_main()
{
+ return 3;
int fd, flags;
int ret;
io_context_t ctx;

0 comments on commit a5b12f4

Please sign in to comment.