From: Jens Axboe Date: Mon, 9 Nov 2020 18:47:50 +0000 (-0700) Subject: Make sure we do libaio engine compatability names X-Git-Tag: fio-3.24~3 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8bdf7a84888a329839932cf833a7633ecd36f252;p=fio.git Make sure we do libaio engine compatability names This goes for both the dynamic engines, and the builtin ones. If 'aio' or 'linuxaio' is used, we want 'libaio'. Signed-off-by: Jens Axboe --- diff --git a/ioengines.c b/ioengines.c index c688dd1d..5ac512ae 100644 --- a/ioengines.c +++ b/ioengines.c @@ -112,6 +112,10 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td, struct ioengine_ops *ops; void *dlhandle; + if (!strncmp(engine_lib, "linuxaio", 8) || + !strncmp(engine_lib, "aio", 3)) + engine_lib = "libaio"; + dprint(FD_IO, "dload engine %s\n", engine_lib); dlerror(); @@ -160,7 +164,7 @@ static struct ioengine_ops *__load_ioengine(const char *engine) /* * linux libaio has alias names, so convert to what we want */ - if (!strncmp(engine, "linuxaio", 8)) { + if (!strncmp(engine, "linuxaio", 8) || !strncmp(engine, "aio", 3)) { dprint(FD_IO, "converting ioengine name: %s -> libaio\n", engine); engine = "libaio";