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 ae55f951d413fbaeaf92dae3c8eb0746167d4c9d..4c53fe554d65184f8f768466f225b2f24e76702f 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;
                }
        }