X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;ds=sidebyside;f=parse.c;h=9685f1eaf4ef4ecb268aebd9bd99e71eb74cd6c1;hb=e43f210aa31fd0917f8595209376c016ad1541b0;hp=39934711b7573f985fff2d337db7dbcb6921ddd1;hpb=a1e070c87536ad8803c04bcb60660a3ab649763d;p=fio.git diff --git a/parse.c b/parse.c index 39934711..9685f1ea 100644 --- a/parse.c +++ b/parse.c @@ -36,6 +36,7 @@ static const char *opt_type_names[] = { "OPT_FLOAT_LIST", "OPT_STR_SET", "OPT_DEPRECATED", + "OPT_SOFT_DEPRECATED", "OPT_UNSUPPORTED", }; @@ -876,8 +877,9 @@ static int __handle_option(const struct fio_option *o, const char *ptr, break; } case FIO_OPT_DEPRECATED: - log_info("Option %s is deprecated\n", o->name); ret = 1; + 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); @@ -1185,8 +1187,6 @@ static void __print_option(const struct fio_option *o, if (!o) return; - if (!org) - org = o; p = name; depth = level; @@ -1237,7 +1237,8 @@ int show_cmd_help(const struct fio_option *options, const char *name) 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; @@ -1311,7 +1312,8 @@ void fill_default_options(void *data, const struct fio_option *options) 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);