X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.c;h=896f79774980758df43755d023cdcac5106fd128;hp=2dab64ee3212b35e400a430b342b80da835ae5d3;hb=cbe8d7561cf6d81d741d87eb7940db2a111d2144;hpb=0dd2d11ea010566fd2bc2661af58a0eefe49f750 diff --git a/fio.c b/fio.c index 2dab64ee..896f7977 100644 --- a/fio.c +++ b/fio.c @@ -831,6 +831,13 @@ static int init_io_u(struct thread_data *td) if (td_write(td) && !td->o.refill_buffers) io_u_fill_buffer(td, io_u, max_bs); + else if (td_write(td) && td->o.verify_pattern_bytes) { + /* + * Fill the buffer with the pattern if we are + * going to be doing writes. + */ + fill_pattern(td, io_u->buf, max_bs, io_u); + } } io_u->index = i;