projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
iolog: remove 'td' from trim_io_piece()
[fio.git]
/
ioengines.c
diff --git
a/ioengines.c
b/ioengines.c
index 6ffd27f10ec9e303b16a7e00ffefec000cab67d2..d579682f4a051ce332b509b811e043c55b592c62 100644
(file)
--- a/
ioengines.c
+++ b/
ioengines.c
@@
-574,6
+574,7
@@
int td_io_get_file_size(struct thread_data *td, struct fio_file *f)
int fio_show_ioengine_help(const char *engine)
{
struct flist_head *entry;
int fio_show_ioengine_help(const char *engine)
{
struct flist_head *entry;
+ struct thread_data td;
struct ioengine_ops *io_ops;
char *sep;
int ret = 1;
struct ioengine_ops *io_ops;
char *sep;
int ret = 1;
@@
-592,7
+593,10
@@
int fio_show_ioengine_help(const char *engine)
sep++;
}
sep++;
}
- io_ops = __load_ioengine(engine);
+ memset(&td, 0, sizeof(struct thread_data));
+ td.o.ioengine = (char *)engine;
+ io_ops = load_ioengine(&td);
+
if (!io_ops) {
log_info("IO engine %s not found\n", engine);
return 1;
if (!io_ops) {
log_info("IO engine %s not found\n", engine);
return 1;
@@
-603,5
+607,6
@@
int fio_show_ioengine_help(const char *engine)
else
log_info("IO engine %s has no options\n", io_ops->name);
else
log_info("IO engine %s has no options\n", io_ops->name);
+ free_ioengine(&td);
return ret;
}
return ret;
}