gfio: include direct/buffered IO type in the iotype field
authorJens Axboe <axboe@kernel.dk>
Thu, 15 Mar 2012 17:57:03 +0000 (18:57 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 15 Mar 2012 17:57:03 +0000 (18:57 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
gfio.c

diff --git a/gfio.c b/gfio.c
index c67e492..14ec1d5 100644 (file)
--- a/gfio.c
+++ b/gfio.c
@@ -1909,7 +1909,8 @@ static void gfio_add_job_op(struct fio_client *client, struct fio_net_cmd *cmd)
        gtk_combo_box_append_text(GTK_COMBO_BOX(ge->eta.names), (gchar *) o->name);
        gtk_combo_box_set_active(GTK_COMBO_BOX(ge->eta.names), 0);
 
-       multitext_add_entry(&ge->eta.iotype, ddir_str(o->td_ddir));
+       sprintf(tmp, "%s %s", o->odirect ? "direct" : "buffered", ddir_str(o->td_ddir));
+       multitext_add_entry(&ge->eta.iotype, tmp);
 
        c1 = fio_uint_to_kmg(o->min_bs[DDIR_READ]);
        c2 = fio_uint_to_kmg(o->max_bs[DDIR_WRITE]);