projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move {is,load}_blktrace() to a new header blktrace.h
[fio.git]
/
engines
/
skeleton_external.c
diff --git
a/engines/skeleton_external.c
b/engines/skeleton_external.c
index 548676a782a99bd94519c40444e866214d1fd25b..4bebcc45a9d39fa857233c86cc9a3b6264d88423 100644
(file)
--- a/
engines/skeleton_external.c
+++ b/
engines/skeleton_external.c
@@
-38,7
+38,7
@@
static struct io_u *fio_skeleton_event(struct thread_data *td, int event)
* numbers. Required.
*/
static int fio_skeleton_getevents(struct thread_data *td, unsigned int min,
* numbers. Required.
*/
static int fio_skeleton_getevents(struct thread_data *td, unsigned int min,
- unsigned int max, struct timespec *t)
+ unsigned int max,
const
struct timespec *t)
{
return 0;
}
{
return 0;
}
@@
-99,7
+99,7
@@
static int fio_skeleton_init(struct thread_data *td)
}
/*
}
/*
- * This is paired with the ->init() funtion and is called when a thread is
+ * This is paired with the ->init() fun
c
tion and is called when a thread is
* done doing io. Should tear down anything setup by the ->init() function.
* Not required.
*/
* done doing io. Should tear down anything setup by the ->init() function.
* Not required.
*/
@@
-109,11
+109,11
@@
static void fio_skeleton_cleanup(struct thread_data *td)
/*
* Hook for opening the given file. Unless the engine has special
/*
* Hook for opening the given file. Unless the engine has special
- * needs, it usually just provides generic_
file_open
() as the handler.
+ * needs, it usually just provides generic_
open_file
() as the handler.
*/
static int fio_skeleton_open(struct thread_data *td, struct fio_file *f)
{
*/
static int fio_skeleton_open(struct thread_data *td, struct fio_file *f)
{
- return generic_
file_open
(td, f);
+ return generic_
open_file
(td, f);
}
/*
}
/*
@@
-121,12
+121,12
@@
static int fio_skeleton_open(struct thread_data *td, struct fio_file *f)
*/
static int fio_skeleton_close(struct thread_data *td, struct fio_file *f)
{
*/
static int fio_skeleton_close(struct thread_data *td, struct fio_file *f)
{
-
generic_file_clos
e(td, f);
+
return generic_close_fil
e(td, f);
}
/*
* Note that the structure is exported, so that fio can get it via
}
/*
* Note that the structure is exported, so that fio can get it via
- * dlsym(..., "ioengine");
+ * dlsym(..., "ioengine");
for (and only for) external engines.
*/
struct ioengine_ops ioengine = {
.name = "engine_name",
*/
struct ioengine_ops ioengine = {
.name = "engine_name",