From 51102e0d64a2ae08472ecb90a72737f08de942fb Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Mon, 18 Sep 2017 21:42:50 +0300 Subject: [PATCH] add fio_set_directio() error message for platforms without direct I/O This lets platforms without dio (e.g. OpenBSD) fail with an explicit message, otherwise they fail without a clue about dio even with --debug=all enabled. The message modified based on comments from Jens. Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- filesetup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/filesetup.c b/filesetup.c index b51ab35c..891a55a1 100644 --- a/filesetup.c +++ b/filesetup.c @@ -1868,6 +1868,7 @@ int fio_set_directio(struct thread_data *td, struct fio_file *f) return 0; #else + log_err("fio: direct IO is not supported on this host operating system\n"); return -1; #endif } -- 2.25.1