X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengines.c;h=1b58168608046390146765b7f546c9b9d964736e;hp=ae55f951d413fbaeaf92dae3c8eb0746167d4c9d;hb=871467d9b6a804632c8c952a61fc3065b3e1e93f;hpb=9b87f09b1d3cac320c2da5758c1e74d4b4c0fadd diff --git a/ioengines.c b/ioengines.c index ae55f951..1b581686 100644 --- a/ioengines.c +++ b/ioengines.c @@ -298,6 +298,7 @@ int td_io_queue(struct thread_data *td, struct io_u *io_u) td->io_issues[ddir]--; td->io_issue_bytes[ddir] -= buflen; td->rate_io_issue_bytes[ddir] -= buflen; + io_u_clear(td, io_u, IO_U_F_FLIGHT); } /* @@ -483,7 +484,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; } }