X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=ioengines.c;h=17909636527175091a6296beff1d95ad65cbd9ac;hb=b902ceb53977a12062c615ab529ca0c3422e3cff;hp=658b2eb50772771c93ca43fd605238fec3beb81e;hpb=d4dbaaa821b9d3dd34ca002d1976d4f924a07a47;p=fio.git diff --git a/ioengines.c b/ioengines.c index 658b2eb5..17909636 100644 --- a/ioengines.c +++ b/ioengines.c @@ -46,6 +46,12 @@ struct ioengine_ops *load_ioengine(struct thread_data *td, char *name) return NULL; } + if (ops->version != FIO_IOOPS_VERSION) { + log_err("bad ioops version %d (want %d)\n", ops->version, FIO_IOOPS_VERSION); + dlclose(dlhandle); + return NULL; + } + ops->dlhandle = dlhandle; return ops; }