From: Jens Axboe Date: Tue, 8 Nov 2005 08:28:08 +0000 (+0100) Subject: [PATCH] fio: Change '+' runstate to show what the job is doing (r/R/w/W) X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=af678352910d9732a54c75ad001c9170479f63b4;p=disktools.git [PATCH] fio: Change '+' runstate to show what the job is doing (r/R/w/W) --- diff --git a/fio.c b/fio.c index f67d372..271afe5 100644 --- 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';