projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Change O_DIRECT vs buffered setup
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index c2725261ad8481ee923de2fb5b6e3ac524868e03..5d6b0a904f8348af3ccd649054b24132e29de20d 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-151,7
+151,15
@@
static struct fio_option options[] = {
.name = "direct",
.type = FIO_OPT_BOOL,
.off1 = td_var_offset(odirect),
.name = "direct",
.type = FIO_OPT_BOOL,
.off1 = td_var_offset(odirect),
- .help = "Use O_DIRECT IO",
+ .help = "Use O_DIRECT IO (negates buffered)",
+ .def = "0",
+ },
+ {
+ .name = "buffered",
+ .type = FIO_OPT_BOOL,
+ .off1 = td_var_offset(odirect),
+ .neg = 1,
+ .help = "Use buffered IO (negates direct)",
.def = "1",
},
{
.def = "1",
},
{