X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=iolog.c;h=93938905bebe4e7557e2d3c22abecf6cd230789c;hp=0c3382d37371ee60ebaba0709ce053c7b64243e5;hb=af7f87cb59fb3fc29a7d9f56f03f7b42680a45f2;hpb=96d663ad34f1def5c41a8fe656c15d5c312dffe2 diff --git a/iolog.c b/iolog.c index 0c3382d3..93938905 100644 --- a/iolog.c +++ b/iolog.c @@ -454,7 +454,12 @@ static int read_iolog2(struct thread_data *td, FILE *f) if (rw == DDIR_WAIT) { ipo->delay = offset; } else { - ipo->offset = offset; + if (td->o.replay_scale) + ipo->offset = offset / td->o.replay_scale; + else + ipo->offset = offset; + ipo_bytes_align(td->o.replay_align, ipo); + ipo->len = bytes; if (rw != DDIR_INVAL && bytes > td->o.max_bs[rw]) td->o.max_bs[rw] = bytes;