projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HOWTO: fix unit type suffix in "Parameter types" section to upper case
[fio.git]
/
filesetup.c
diff --git
a/filesetup.c
b/filesetup.c
index 839aefc33752e28c7a8e7a628593f9f8f758066f..0e5599ab16502e9541023af6028e9814f366a844 100644
(file)
--- a/
filesetup.c
+++ b/
filesetup.c
@@
-146,6
+146,8
@@
static int extend_file(struct thread_data *td, struct fio_file *f)
flags |= O_CREAT;
if (new_layout)
flags |= O_TRUNC;
+ if (td->o.odirect)
+ flags |= OS_O_DIRECT;
#ifdef WIN32
flags |= _O_BINARY;