For profiles, we can't free the options prematurely.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
dprint(FD_PARSE, "free options\n");
for (o = &options[0]; o->name; o++) {
- if (o->type != FIO_OPT_STR_STORE || !o->off1)
+ if (o->type != FIO_OPT_STR_STORE || !o->off1 || o->no_free)
continue;
ptr = td_var(data, o, o->off1);
int is_time; /* time based value */
int no_warn_def;
int pow2; /* must be a power-of-2 */
+ int no_free;
};
extern int parse_option(char *, const char *, struct fio_option *, struct fio_option **, void *, struct flist_head *);
.help = "Devices to use",
.category = FIO_OPT_C_PROFILE,
.group = FIO_OPT_G_ACT,
+ .no_free = true,
},
{
.name = "load",
.help = "Test directory",
.category = FIO_OPT_C_PROFILE,
.group = FIO_OPT_G_TIOBENCH,
+ .no_free = true,
},
{
.name = "threads",