projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[PATCH] Fix int vs long problems in parsing some options
[fio.git]
/
init.c
diff --git
a/init.c
b/init.c
index 616c51f27ff738e7d2d2bd3eddbf7c924d693c3b..689c495b6ac648059a513c325d92620b7bd82beb 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-138,17
+138,17
@@
static struct fio_option options[] = {
},
{
.name = "bs",
},
{
.name = "bs",
- .type = FIO_OPT_STR_VAL,
+ .type = FIO_OPT_STR_VAL
_INT
,
.off1 = td_var_offset(bs[DDIR_READ]),
},
{
.name = "read_bs",
.off1 = td_var_offset(bs[DDIR_READ]),
},
{
.name = "read_bs",
- .type = FIO_OPT_STR_VAL,
+ .type = FIO_OPT_STR_VAL
_INT
,
.off1 = td_var_offset(bs[DDIR_READ]),
},
{
.name = "write_bs",
.off1 = td_var_offset(bs[DDIR_READ]),
},
{
.name = "write_bs",
- .type = FIO_OPT_STR_VAL,
+ .type = FIO_OPT_STR_VAL
_INT
,
.off1 = td_var_offset(bs[DDIR_WRITE]),
},
{
.off1 = td_var_offset(bs[DDIR_WRITE]),
},
{
@@
-513,9
+513,9
@@
static void fixup_options(struct thread_data *td)
if (!td->max_bs[DDIR_READ])
td->max_bs[DDIR_READ] = td->bs[DDIR_READ];
if (!td->min_bs[DDIR_WRITE])
if (!td->max_bs[DDIR_READ])
td->max_bs[DDIR_READ] = td->bs[DDIR_READ];
if (!td->min_bs[DDIR_WRITE])
- td->min_bs[DDIR_WRITE]= td->bs[DDIR_
READ
];
+ td->min_bs[DDIR_WRITE]= td->bs[DDIR_
WRITE
];
if (!td->max_bs[DDIR_WRITE])
if (!td->max_bs[DDIR_WRITE])
- td->max_bs[DDIR_WRITE] = td->bs[DDIR_
READ
];
+ td->max_bs[DDIR_WRITE] = td->bs[DDIR_
WRITE
];
td->rw_min_bs = min(td->min_bs[DDIR_READ], td->min_bs[DDIR_WRITE]);
td->rw_min_bs = min(td->min_bs[DDIR_READ], td->min_bs[DDIR_WRITE]);