Add pre_read option

With this option set, files will be pre-read into memory before
starting the given IO operation(s).

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.c b/fio.c
index 4a02f2e..185f99a 100644
--- a/fio.c
+++ b/fio.c
@@ -1018,6 +1018,11 @@
 			goto err;
 	}
 
+	if (td->o.pre_read) {
+		if (pre_read_files(td) < 0)
+			goto err;
+	}
+
 	fio_gettime(&td->epoch, NULL);
 	getrusage(RUSAGE_SELF, &td->ts.ru_start);