From 8bdf7a84888a329839932cf833a7633ecd36f252 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 9 Nov 2020 11:47:50 -0700 Subject: [PATCH] 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 --- ioengines.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"; -- 2.25.1