X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=iolog.c;h=3b296cd7d09afd45bab04eb0e3208acc11d73dc8;hb=615c794cbf851c994e94fffe8b8f565e64f137a5;hp=62f2f524c7fd1872dab98e608894ebeaa9ae98aa;hpb=6d8fe6e847bb43cf7db5eee4cf58fd490f12be47;p=fio.git diff --git a/iolog.c b/iolog.c index 62f2f524..3b296cd7 100644 --- a/iolog.c +++ b/iolog.c @@ -492,17 +492,25 @@ static bool read_iolog(struct thread_data *td) */ if (!strcmp(act, "wait")) rw = DDIR_WAIT; - else if (!strcmp(act, "read")) + else if (!strcmp(act, "read")) { + if (td->o.replay_skip & (1u << DDIR_READ)) + continue; rw = DDIR_READ; - else if (!strcmp(act, "write")) + } else if (!strcmp(act, "write")) { + if (td->o.replay_skip & (1u << DDIR_WRITE)) + continue; rw = DDIR_WRITE; - else if (!strcmp(act, "sync")) + } else if (!strcmp(act, "sync")) { + if (td->o.replay_skip & (1u << DDIR_SYNC)) + continue; rw = DDIR_SYNC; - else if (!strcmp(act, "datasync")) + } else if (!strcmp(act, "datasync")) rw = DDIR_DATASYNC; - else if (!strcmp(act, "trim")) + else if (!strcmp(act, "trim")) { + if (td->o.replay_skip & (1u << DDIR_TRIM)) + continue; rw = DDIR_TRIM; - else { + } else { log_err("fio: bad iolog file action: %s\n", act); continue;