From 42f1ee68ceec87fbbfdc4972c35d3cdf7c08d9f6 Mon Sep 17 00:00:00 2001 From: Sam Zaydel Date: Wed, 16 Nov 2016 10:16:55 -0800 Subject: [PATCH] Improve informativeness about directIO support or rather lackthereof on Solaris when errno is set to ENOTTY --- ioengines.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ioengines.c b/ioengines.c index ae55f951..4c53fe55 100644 --- a/ioengines.c +++ b/ioengines.c @@ -483,7 +483,12 @@ int td_io_open_file(struct thread_data *td, struct fio_file *f) if (ret) { td_verror(td, ret, "fio_set_odirect"); - log_err("fio: the file system does not seem to support direct IO\n"); + if (ret == ENOTTY) { /* ENOTTY suggests RAW device or ZFS */ + log_err("fio: doing directIO to RAW devices or ZFS not supported\n"); + } else { + log_err("fio: the file system does not seem to support direct IO\n"); + } + goto err; } } -- 2.25.1