Don't include engines we don't have
With the new option scheme, it's easier to just diff out the option
types we don't support. So do that for the io engines.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c
index 5588c85..8efb24a 100644
--- a/init.c
+++ b/init.c
@@ -85,11 +85,24 @@
.help = "IO engine to use",
.def = "sync",
.posval = {
- { .ival = "sync", }, { .ival = "libaio", },
- { .ival = "posixaio", }, { .ival = "mmap", },
- { .ival = "splice", }, { .ival = "sg", },
+ { .ival = "sync", },
+#ifdef FIO_HAVE_LIBAIO
+ { .ival = "libaio", },
+#endif
+#ifdef FIO_HAVE_POSIXAIO
+ { .ival = "posixaio", },
+#endif
+ { .ival = "mmap", },
+#ifdef FIO_HAVE_SPLICE
+ { .ival = "splice", },
+#endif
+#ifdef FIO_HAVE_SGIO
+ { .ival = "sg", },
+#endif
{ .ival = "null", }, { .ival = "net", },
+#ifdef FIO_HAVE_SYSLET
{ .ival = "syslet-rw", },
+#endif
},
},
{