From 10cad1aa7af1c47be6655cff0438c46843964294 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Fri, 23 Feb 2007 11:23:03 +0100 Subject: [PATCH] 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 --- init.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/init.c b/init.c index 5588c852..8efb24ab 100644 --- a/init.c +++ b/init.c @@ -85,11 +85,24 @@ static struct fio_option options[] = { .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 }, }, { -- 2.25.1