X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_ddir.h;h=613d5fbce2625ab5b9b41d74fcab5ffebdd2694a;hp=071b036cd84fa8a143a4fd7264154ec3a4b95846;hb=22de5d77;hpb=0b8f4bf3888a067b3bfe03e60e9810e864cd77af diff --git a/io_ddir.h b/io_ddir.h index 071b036c..613d5fbc 100644 --- a/io_ddir.h +++ b/io_ddir.h @@ -16,8 +16,9 @@ enum fio_ddir { static inline const char *io_ddir_name(enum fio_ddir ddir) { - const char *name[] = { "read", "write", "trim", "sync", "datasync", - "sync_file_range", "wait", }; + static const char *name[] = { "read", "write", "trim", "sync", + "datasync", "sync_file_range", + "wait", }; if (ddir < DDIR_LAST) return name[ddir]; @@ -60,9 +61,9 @@ static inline int ddir_rw(enum fio_ddir ddir) static inline const char *ddir_str(enum td_ddir ddir) { - const char *__str[] = { NULL, "read", "write", "rw", NULL, + static const char *__str[] = { NULL, "read", "write", "rw", "rand", "randread", "randwrite", "randrw", - "trim", NULL, NULL, NULL, "randtrim" }; + "trim", NULL, "trimwrite", NULL, "randtrim" }; return __str[ddir]; }