projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improve Windows windowsaio engine performance
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 35471ad14d953702fca7a3d91de1c82a107421b7..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;
}