Put the ->real_file_size handling into fio
Then we can remove it from the io engines, where the disk-less IO
engines provided a ->setup() hook just to set that.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c
index 0151c9b..bc33f4f 100644
--- a/init.c
+++ b/init.c
@@ -427,6 +427,13 @@
if (fixup_options(td))
goto err;
+ if (td->io_ops->flags & FIO_DISKLESSIO) {
+ struct fio_file *f;
+
+ for_each_file(td, f, i)
+ f->real_file_size = -1ULL;
+ }
+
td->mutex = fio_sem_init(0);
td->ts.clat_stat[0].min_val = td->ts.clat_stat[1].min_val = ULONG_MAX;