projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stats: Fix computation of summed standard deviation
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index e0b0f22e96d994b74f00153dd64509dd7b2a930d..7f4e104e927aeee75fa04d51c699d41460c49ae0 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-14,6
+14,7
@@
#include <unistd.h>
#include <string.h>
#include <dlfcn.h>
#include <unistd.h>
#include <string.h>
#include <dlfcn.h>
+#include <fcntl.h>
#include <assert.h>
#include "fio.h"
#include <assert.h>
#include "fio.h"
@@
-311,6
+312,8
@@
int td_io_init(struct thread_data *td)
log_err("fio: io engine init failed. Perhaps try"
" reducing io depth?\n");
}
log_err("fio: io engine init failed. Perhaps try"
" reducing io depth?\n");
}
+ if (!td->error)
+ td->error = ret;
}
return ret;
}
return ret;
@@
-386,7
+389,7
@@
int td_io_open_file(struct thread_data *td, struct fio_file *f)
else
flags = POSIX_FADV_SEQUENTIAL;
else
flags = POSIX_FADV_SEQUENTIAL;
- if (fadvise(f->fd, f->file_offset, f->io_size, flags) < 0) {
+ if (
posix_
fadvise(f->fd, f->file_offset, f->io_size, flags) < 0) {
td_verror(td, errno, "fadvise");
goto err;
}
td_verror(td, errno, "fadvise");
goto err;
}
@@
-402,6
+405,7
@@
int td_io_open_file(struct thread_data *td, struct fio_file *f)
if (ret) {
td_verror(td, ret, "fio_set_odirect");
if (ret) {
td_verror(td, ret, "fio_set_odirect");
+ log_err("fio: the file system does not seem to support direct IO\n");
goto err;
}
}
goto err;
}
}