Add more job info
Adds a specific command to be sent when a job is received by
the backend. Helps fill out the GUI fields for job values.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/io_ddir.h b/io_ddir.h
index b234256..908101a 100644
--- a/io_ddir.h
+++ b/io_ddir.h
@@ -39,4 +39,12 @@
return ddir == DDIR_READ || ddir == DDIR_WRITE;
}
+static inline const char *ddir_str(enum fio_ddir ddir)
+{
+ const char *ddir_str[] = { NULL, "read", "write", "rw", NULL,
+ "randread", "randwrite", "randrw" };
+
+ return ddir_str[ddir];
+}
+
#endif