summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2018-08-23 10:29:12 -0600
committerJens Axboe <axboe@kernel.dk>2018-08-23 10:29:12 -0600
commite97163ad9c395e352028e200b781666d1a775449 (patch)
tree6f3ffd185ec9f2ed8bdc4f16dec95d63e25886b9 /parse.c
parentc08890d3a81cebb5b4bde14afb6c7778bb390ddf (diff)
downloadfio-e97163ad9c395e352028e200b781666d1a775449.tar.gz
fio-e97163ad9c395e352028e200b781666d1a775449.tar.bz2
parse: fix bssplit option
Ensure that we copy option sets for FIO_OPT_STR_ULL like we do for FIO_OPT_STR, in case only one data direction has been defined. Fixes: 5fff95436922 ("Add support for >= 4G block sizes") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index 194ad594..952118c6 100644
--- a/parse.c
+++ b/parse.c
@@ -959,6 +959,7 @@ static int handle_option(const struct fio_option *o, const char *__ptr,
if (ptr &&
(o->type != FIO_OPT_STR_STORE) &&
(o->type != FIO_OPT_STR) &&
+ (o->type != FIO_OPT_STR_ULL) &&
(o->type != FIO_OPT_FLOAT_LIST)) {
ptr2 = strchr(ptr, ',');
if (ptr2 && *(ptr2 + 1) == '\0')
@@ -1372,9 +1373,6 @@ static void option_init(struct fio_option *o)
o->category = FIO_OPT_C_GENERAL;
o->group = FIO_OPT_G_INVALID;
}
- if (o->type == FIO_OPT_STR || o->type == FIO_OPT_STR_STORE ||
- o->type == FIO_OPT_STR_MULTI)
- return;
}
/*