Merge branch 'python3-testing' of https://github.com/vincentkfu/fio
[fio.git] / ioengines.c
index 9e3fcc9f681a46fa336ef247a6aa6497dade09af..2c7a0df9ed39fa02da08691c4fb85cdf6eadbb90 100644 (file)
@@ -121,18 +121,15 @@ static struct ioengine_ops *dlopen_ioengine(struct thread_data *td,
        return ops;
 }
 
-static struct ioengine_ops *__load_ioengine(const char *name)
+static struct ioengine_ops *__load_ioengine(const char *engine)
 {
-       char engine[64];
-
-       snprintf(engine, sizeof(engine), "%s", name);
-
        /*
         * linux libaio has alias names, so convert to what we want
         */
        if (!strncmp(engine, "linuxaio", 8)) {
-               dprint(FD_IO, "converting ioengine name: %s -> libaio\n", name);
-               strcpy(engine, "libaio");
+               dprint(FD_IO, "converting ioengine name: %s -> libaio\n",
+                      engine);
+               engine = "libaio";
        }
 
        dprint(FD_IO, "load ioengine %s\n", engine);
@@ -321,6 +318,7 @@ enum fio_q_status td_io_queue(struct thread_data *td, struct io_u *io_u)
                                        sizeof(io_u->issue_time));
        }
 
+
        if (ddir_rw(ddir)) {
                if (!(io_u->flags & IO_U_F_VER_LIST)) {
                        td->io_issues[ddir]++;