[PATCH] fio: Change '+' runstate to show what the job is doing (r/R/w/W)
authorJens Axboe <axboe@suse.de>
Tue, 8 Nov 2005 08:28:08 +0000 (09:28 +0100)
committerJens Axboe <axboe@suse.de>
Tue, 8 Nov 2005 08:28:08 +0000 (09:28 +0100)
fio.c

diff --git a/fio.c b/fio.c
index f67d372b43aae5db88b2a7abcdfa04bba700038e..271afe557a750f56ed218a1bc46648993cc3e714 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -2289,7 +2289,17 @@ static void check_str_update(struct thread_data *td, int n, int t, int m)
                        c = 'E';
                        break;
                case TD_RUNNING:
-                       c = '+';
+                       if (td_read(td)) {
+                               if (td->sequential)
+                                       c = 'R';
+                               else
+                                       c = 'r';
+                       } else {
+                               if (td->sequential)
+                                       c = 'W';
+                               else
+                                       c = 'w';
+                       }
                        break;
                case TD_VERIFYING:
                        c = 'V';