Add ->open to struct fio_file
[fio.git] / engines / null.c
index 695afa11af0a1ebeedade04e23c5c6d7c1b1a12a..d61685c700ca7c85230c799552f1c81eda8c8162 100644 (file)
@@ -37,7 +37,12 @@ static int fio_null_setup(struct thread_data *td)
                f->file_size = f->real_file_size;
        }
 
-       td->nr_open_files = td->nr_files;
+       return 0;
+}
+
+static int fio_null_open(struct thread_data fio_unused *td,
+                        struct fio_file fio_unused *f)
+{
        return 0;
 }
 
@@ -46,7 +51,8 @@ static struct ioengine_ops ioengine = {
        .version        = FIO_IOOPS_VERSION,
        .setup          = fio_null_setup,
        .queue          = fio_null_queue,
-       .flags          = FIO_SYNCIO | FIO_DISKLESSIO | FIO_SELFOPEN,
+       .open_file      = fio_null_open,
+       .flags          = FIO_SYNCIO | FIO_DISKLESSIO,
 };
 
 static void fio_init fio_null_register(void)