iolog: remember to add bytes to total IO size
authorJens Axboe <axboe@fb.com>
Tue, 10 Jun 2014 01:56:51 +0000 (19:56 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 10 Jun 2014 01:56:51 +0000 (19:56 -0600)
This fixes an issue with replay of iologs.

Signed-off-by: Jens Axboe <axboe@fb.com>
iolog.c

diff --git a/iolog.c b/iolog.c
index cac1aba21e8bb5b2b53a4e957ebebfd0a13eaf1a..fd1e9e49dd18ad216eaad2cf15d15da879df4c3e 100644 (file)
--- a/iolog.c
+++ b/iolog.c
@@ -410,6 +410,7 @@ static int read_iolog2(struct thread_data *td, FILE *f)
                                td->o.max_bs[rw] = bytes;
                        ipo->fileno = fileno;
                        ipo->file_action = file_action;
+                       td->o.size += bytes;
                }
 
                queue_io_piece(td, ipo);