Add missing "rand"/"trimwrite" strings to corresponding ddir slots
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 14 Feb 2017 15:19:46 +0000 (17:19 +0200)
committerJens Axboe <axboe@fb.com>
Tue, 14 Feb 2017 15:24:24 +0000 (08:24 -0700)
though "rand" alone is unused.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
io_ddir.h

index 2141119..613d5fb 100644 (file)
--- a/io_ddir.h
+++ b/io_ddir.h
@@ -61,9 +61,9 @@ static inline int ddir_rw(enum fio_ddir ddir)
 
 static inline const char *ddir_str(enum td_ddir ddir)
 {
-       static 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];
 }