From 154a95828fe08b01774b59602544de394b2d3aa6 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 31 Jan 2019 22:55:52 -0700 Subject: [PATCH] t/io_uring: verbose error for -95/-EOPNOTSUPP failure If we fail with this error and polling is enabled, it's because the file system hosting the file doesn't support polling. Let the user know. Signed-off-by: Jens Axboe --- t/io_uring.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/io_uring.c b/t/io_uring.c index 62b48e44..7c75c887 100644 --- a/t/io_uring.c +++ b/t/io_uring.c @@ -262,6 +262,8 @@ static int reap_events(struct submitter *s) f->pending_ios--; if (cqe->res != BS) { printf("io: unexpected ret=%d\n", cqe->res); + if (polled && cqe->res == -EOPNOTSUPP) + printf("Your filesystem doesn't support poll\n"); return -1; } } -- 2.25.1