summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e1f3650)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
},
{
.name = "write_iolog",
},
{
.name = "write_iolog",
- .type = FIO_OPT_STR_STORE,
.off1 = td_var_offset(write_iolog),
},
{
.off1 = td_var_offset(write_iolog),
},
{
+/*
+ * Lazy way of fixing up options that depend on each other. We could also
+ * define option callback handlers, but this is easier.
+ */
static void fixup_options(struct thread_data *td)
{
if (!td->min_bs)
static void fixup_options(struct thread_data *td)
{
if (!td->min_bs)
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;