From: Tomohiro Kusumi Date: Mon, 18 Sep 2017 18:42:50 +0000 (+0300) Subject: add fio_set_directio() error message for platforms without direct I/O X-Git-Tag: fio-3.1~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=51102e0d64a2ae08472ecb90a72737f08de942fb;hp=78d4a262a0758d47631bfd44672bbd5f9eff9b42 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 --- 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 }