X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=options.h;h=fa015c393ea24bb9ff2be3361b7ba91ac50d16a3;hp=b2e2c0c8fed232f9213a8647d81f266a82cae3dd;hb=bf2921f02651653c6fd6794449b725b138f2611c;hpb=370c2c87bcb4dbcff279fe7235752ed97a04dcab diff --git a/options.h b/options.h index b2e2c0c8..fa015c39 100644 --- a/options.h +++ b/options.h @@ -22,6 +22,13 @@ int set_name_idx(char *, char *, int); extern struct fio_option fio_options[FIO_MAX_OPTS]; +extern int __fio_option_is_set(struct thread_options *, unsigned int off); + +#define fio_option_is_set(__td, name) \ + __fio_option_is_set((__td), td_var_offset(name)) + +extern void fio_option_mark_set(struct thread_options *, struct fio_option *); + static inline int o_match(struct fio_option *o, const char *opt) { if (!strcmp(o->name, opt))