X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fnull.c;h=823d40def272c820a2d635b994483af94a61b014;hp=86b9cbd3929e286a36c098c65cd36278e84c794c;hb=d9309cb10119155c8cbf7369c807b9ae08bcd67c;hpb=ed8bd849b04b336b8f666a547aafa2661b0d8c89 diff --git a/engines/null.c b/engines/null.c index 86b9cbd3..823d40de 100644 --- a/engines/null.c +++ b/engines/null.c @@ -12,7 +12,6 @@ #include #include "../fio.h" -#include "../os.h" struct null_data { struct io_u **io_us; @@ -66,31 +65,9 @@ static int fio_null_queue(struct thread_data fio_unused *td, struct io_u *io_u) return FIO_Q_QUEUED; } -static int fio_null_setup(struct thread_data *td) -{ - struct fio_file *f; - unsigned int i; - - if (!td->o.size) { - log_err("fio: need size= set\n"); - return 1; - } - - td->io_size = td->o.size; - td->total_io_size = td->io_size; - - for_each_file(td, f, i) { - f->real_file_size = td->total_io_size / td->o.nr_files; - f->file_size = f->real_file_size; - } - - return 0; -} - static int fio_null_open(struct thread_data fio_unused *td, struct fio_file fio_unused *f) { - f->fd = 0; return 0; } @@ -125,7 +102,6 @@ static int fio_null_init(struct thread_data *td) static struct ioengine_ops ioengine = { .name = "null", .version = FIO_IOOPS_VERSION, - .setup = fio_null_setup, .queue = fio_null_queue, .commit = fio_null_commit, .getevents = fio_null_getevents,