X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.c;h=b178450714d18bde73c2d52746393d1499364f7f;hb=0cf542af81751d7b318afe4429001c1aab6baee5;hp=2faeaad69302032c8828c9c4451399a7f5ef54ab;hpb=faa9b2b2eec0ceba71a880c5093dd3b6be221483;p=fio.git diff --git a/verify.c b/verify.c index 2faeaad6..b1784507 100644 --- a/verify.c +++ b/verify.c @@ -87,8 +87,13 @@ static unsigned int get_hdr_inc(struct thread_data *td, struct io_u *io_u) { unsigned int hdr_inc; + /* + * If we use bs_unaligned, buflen can be larger than the verify + * interval (which just defaults to the smallest blocksize possible). + */ hdr_inc = io_u->buflen; - if (td->o.verify_interval && td->o.verify_interval <= io_u->buflen) + if (td->o.verify_interval && td->o.verify_interval <= io_u->buflen && + !td->o.bs_unaligned) hdr_inc = td->o.verify_interval; return hdr_inc; @@ -1175,7 +1180,6 @@ static void fill_hdr(struct thread_data *td, struct io_u *io_u, struct verify_header *hdr, unsigned int header_num, unsigned int header_len, uint64_t rand_seed) { - if (td->o.verify != VERIFY_PATTERN_NO_HDR) __fill_hdr(td, io_u, hdr, header_num, header_len, rand_seed); }