From: Jens Axboe Date: Fri, 23 Feb 2007 10:23:03 +0000 (+0100) Subject: Don't include engines we don't have X-Git-Tag: fio-1.12~15 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=10cad1aa7af1c47be6655cff0438c46843964294 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 --- 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 }, }, {