From e97163ad9c395e352028e200b781666d1a775449 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 23 Aug 2018 10:29:12 -0600 Subject: [PATCH] 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 --- parse.c | 4 +--- 1 file changed, 1 insertion(+), 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; } /* -- 2.25.1