X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=engines%2Fsync.c;h=ee8e3c367360166b7f95b312988ff89c07b5e09e;hb=cd963e18de21e08ebb2ed86366f07347b4c58e3d;hp=ad02e09464f1935de33dc4a726ecef4edc3a8db8;hpb=e1161c325f7866bae879e686d1c673ca32ab09ae;p=fio.git diff --git a/engines/sync.c b/engines/sync.c index ad02e094..ee8e3c36 100644 --- a/engines/sync.c +++ b/engines/sync.c @@ -1,5 +1,8 @@ /* - * regular read/write sync io engine + * sync engine + * + * IO engine that does regular read(2)/write(2) with lseek(2) to transfer + * data. * */ #include @@ -9,7 +12,6 @@ #include #include "../fio.h" -#include "../os.h" static int fio_syncio_prep(struct thread_data *td, struct io_u *io_u) { @@ -60,6 +62,8 @@ static struct ioengine_ops ioengine = { .version = FIO_IOOPS_VERSION, .prep = fio_syncio_prep, .queue = fio_syncio_queue, + .open_file = generic_open_file, + .close_file = generic_close_file, .flags = FIO_SYNCIO, };