projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d4dbaaa
)
[PATCH] Remember to check ioops version in loaded module
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 9 Oct 2006 14:11:45 +0000
(16:11 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 9 Oct 2006 14:11:45 +0000
(16:11 +0200)
It could be for an older version of fio, reject failed version.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
ioengines.c
patch
|
blob
|
blame
|
history
diff --git
a/ioengines.c
b/ioengines.c
index 658b2eb50772771c93ca43fd605238fec3beb81e..17909636527175091a6296beff1d95ad65cbd9ac 100644
(file)
--- 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;
}