Improve informativeness about directIO support or rather lackthereof on Solaris when...
authorSam Zaydel <szaydel@gmail.com>
Wed, 16 Nov 2016 18:16:55 +0000 (10:16 -0800)
committerSam Zaydel <szaydel@gmail.com>
Wed, 16 Nov 2016 18:16:55 +0000 (10:16 -0800)
ioengines.c

index ae55f95..4c53fe5 100644 (file)
@@ -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;
                }
        }