From: Sam Zaydel Date: Wed, 16 Nov 2016 18:16:55 +0000 (-0800) Subject: Improve informativeness about directIO support or rather lackthereof on Solaris when... X-Git-Tag: fio-2.16~21 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=42f1ee68ceec87fbbfdc4972c35d3cdf7c08d9f6 Improve informativeness about directIO support or rather lackthereof on Solaris when errno is set to ENOTTY --- 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; } }