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 2141119a2651cb0b73188f0f36b9739960c4458b..613d5fbce2625ab5b9b41d74fcab5ffebdd2694a 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 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",
                                "randread", "randwrite", "randrw",
-                               "trim", NULL, NULL, NULL, "randtrim" };
+                               "trim", NULL, "trimwrite", NULL, "randtrim" };
 
        return __str[ddir];
 }
 
        return __str[ddir];
 }