projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Improve io logging
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 4ce2cc4bf973dfd728e70f3c5c34159063255ff9..f27fdf1f03f5bfeb9a85aa690670d1cd2e2d2fda 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-103,13
+103,13
@@
static struct fio_option options[] = {
},
{
.name = "write_iolog",
},
{
.name = "write_iolog",
- .type = FIO_OPT_
INT
,
- .off1 = td_var_offset(write_iolog),
+ .type = FIO_OPT_
STR_STORE
,
+ .off1 = td_var_offset(write_iolog
_file
),
},
{
},
{
- .name = "iolog",
+ .name = "
read_
iolog",
.type = FIO_OPT_STR_STORE,
.type = FIO_OPT_STR_STORE,
- .off1 = td_var_offset(
iolog
),
+ .off1 = td_var_offset(
read_iolog_file
),
},
{
.name = "exec_prerun",
},
{
.name = "exec_prerun",
@@
-405,8
+405,11
@@
static void fixup_options(struct thread_data *td)
if (!td->rwmixread && td->rwmixwrite)
td->rwmixread = 100 - td->rwmixwrite;
if (!td->rwmixread && td->rwmixwrite)
td->rwmixread = 100 - td->rwmixwrite;
- if (td->iolog && !td->write_iolog)
- td->read_iolog = 1;
+ if (td->write_iolog_file && td->read_iolog_file) {
+ log_err("fio: read iolog overrides write_iolog\n");
+ free(td->write_iolog_file);
+ td->write_iolog_file = NULL;
+ }
}
/*
}
/*