Don't allow pre_read on IO engines that cannot seek
We cannot pre-read files, if we cannot seek back and read the same
data again. So just disable it with a warning to the user.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/ioengine.h b/ioengine.h
index 6190977..f977799 100644
--- a/ioengine.h
+++ b/ioengine.h
@@ -112,6 +112,7 @@
FIO_UNIDIR = 1 << 5, /* engine is uni-directional */
FIO_NOIO = 1 << 6, /* thread does only pseudo IO */
FIO_SIGQUIT = 1 << 7, /* needs SIGQUIT to exit */
+ FIO_PIPEIO = 1 << 8, /* input/output no seekable */
};
/*