return 0;
}
-struct ioengine_ops *load_ioengine(struct thread_data *td, char *name)
+struct ioengine_ops *load_ioengine(struct thread_data *td, const char *name)
{
char engine[16], engine_lib[256];
struct ioengine_ops *ops, *ret;
void *dlhandle;
- strcpy(engine, name);
+ strncpy(engine, name, sizeof(engine) - 1);
/*
* linux libaio has alias names, so convert to what we want
return 0;
}
-int td_io_sync(struct thread_data *td, struct fio_file *f)
-{
- if (td->io_ops->sync)
- return td->io_ops->sync(td, f);
-
- return 0;
-}
-
int td_io_getevents(struct thread_data *td, int min, int max,
struct timespec *t)
{