-static int __handle_option(struct fio_option *o, const char *ptr, void *data,
- int first, int more, int curr)
+static const char *opt_type_name(const struct fio_option *o)
+{
+ compiletime_assert(ARRAY_SIZE(opt_type_names) - 1 == FIO_OPT_UNSUPPORTED,
+ "opt_type_names[] index");
+
+ if (o->type <= FIO_OPT_UNSUPPORTED)
+ return opt_type_names[o->type];
+
+ return "OPT_UNKNOWN?";
+}
+
+static int __handle_option(const struct fio_option *o, const char *ptr,
+ void *data, int first, int more, int curr)