From a6e6b57ca64097c7ff4341bbacb2bf5a1e5c0a7f Mon Sep 17 00:00:00 2001 From: "Jiri Slaby (SUSE)" Date: Thu, 5 Dec 2024 08:33:50 +0100 Subject: [PATCH] test/fallocate: check for EOPNOTSUPP too (6.4) In kernel 6.4, the result still can be EOPNOTSUPP. Check for that too. Signed-off-by: Jiri Slaby (SUSE) --- test/fallocate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fallocate.c b/test/fallocate.c index 735cc5ba7..1a60dd549 100644 --- a/test/fallocate.c +++ b/test/fallocate.c @@ -65,7 +65,7 @@ static int test_fallocate_rlimit(struct io_uring *ring) goto err; } - if (cqe->res == -EINVAL) { + if (cqe->res == -EINVAL || cqe->res == -EOPNOTSUPP) { fprintf(stdout, "Fallocate not supported, skipping\n"); no_fallocate = 1; goto skip;