The currently deprecated option types will fail parsing. But we
can also have options where we don't care, log an error for those
but continue executing the job.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
"OPT_FLOAT_LIST",
"OPT_STR_SET",
"OPT_DEPRECATED",
"OPT_FLOAT_LIST",
"OPT_STR_SET",
"OPT_DEPRECATED",
break;
}
case FIO_OPT_DEPRECATED:
break;
}
case FIO_OPT_DEPRECATED:
- log_info("Option %s is deprecated\n", o->name);
+ case FIO_OPT_SOFT_DEPRECATED:
+ log_info("Option %s is deprecated\n", o->name);
break;
default:
log_err("Bad option type %u\n", o->type);
break;
default:
log_err("Bad option type %u\n", o->type);
for (o = &options[0]; o->name; o++) {
int match = 0;
for (o = &options[0]; o->name; o++) {
int match = 0;
- if (o->type == FIO_OPT_DEPRECATED)
+ if (o->type == FIO_OPT_DEPRECATED ||
+ o->type == FIO_OPT_SOFT_DEPRECATED)
continue;
if (!exec_profile && o->prof_name)
continue;
continue;
if (!exec_profile && o->prof_name)
continue;
static void option_init(struct fio_option *o)
{
static void option_init(struct fio_option *o)
{
- if (o->type == FIO_OPT_DEPRECATED || o->type == FIO_OPT_UNSUPPORTED)
+ if (o->type == FIO_OPT_DEPRECATED || o->type == FIO_OPT_UNSUPPORTED ||
+ o->type == FIO_OPT_SOFT_DEPRECATED)
return;
if (o->name && !o->lname)
log_err("Option %s: missing long option name\n", o->name);
return;
if (o->name && !o->lname)
log_err("Option %s: missing long option name\n", o->name);
FIO_OPT_FLOAT_LIST,
FIO_OPT_STR_SET,
FIO_OPT_DEPRECATED,
FIO_OPT_FLOAT_LIST,
FIO_OPT_STR_SET,
FIO_OPT_DEPRECATED,
+ FIO_OPT_SOFT_DEPRECATED,
FIO_OPT_UNSUPPORTED, /* keep this last */
};
FIO_OPT_UNSUPPORTED, /* keep this last */
};