X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=8efb24ab58bf17428797e364e045ecb490d6f1eb;hp=5588c852b9c828cc49b31c4ae4a43758efadd3dc;hb=10cad1aa7af1c47be6655cff0438c46843964294;hpb=78217dfa392a6a39f018722e91bc179e9d5443df 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 }, }, {