X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=io_ddir.h;h=deaa8b5a3705e3c99e435a64b7b44da6c9b4574b;hp=e5eff687d95d1b6ed91788804d14c32b5d67893f;hb=ce4d13ca162df4127ec3b5911553802c53396705;hpb=82a9068691e1db7854990fb06b748c8049231527 diff --git a/io_ddir.h b/io_ddir.h index e5eff687..deaa8b5a 100644 --- a/io_ddir.h +++ b/io_ddir.h @@ -5,19 +5,22 @@ enum fio_ddir { DDIR_READ = 0, DDIR_WRITE = 1, DDIR_TRIM = 2, - DDIR_RWDIR_CNT = 3, DDIR_SYNC = 3, DDIR_DATASYNC, DDIR_SYNC_FILE_RANGE, DDIR_WAIT, DDIR_LAST, DDIR_INVAL = -1, + + DDIR_RWDIR_CNT = 3, + DDIR_RWDIR_SYNC_CNT = 4, }; static inline const char *io_ddir_name(enum fio_ddir ddir) { - const char *name[] = { "read", "write", "trim", "sync", "datasync", - "sync_file_range", "write", }; + static const char *name[] = { "read", "write", "trim", "sync", + "datasync", "sync_file_range", + "wait", }; if (ddir < DDIR_LAST) return name[ddir]; @@ -60,9 +63,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]; }