X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.c;h=0846d39276df52f71ab566d66a6d07eb3aeda635;hb=13fca827b9c2bb71358fcaa3a7e6e89419d5b1b8;hp=5fe78c8cf556893fafccda5f485beca158e68ca0;hpb=0ae2c6e1d4727515e35e682eae6776fe55fa0275;p=fio.git diff --git a/verify.c b/verify.c index 5fe78c8c..0846d392 100644 --- a/verify.c +++ b/verify.c @@ -78,7 +78,7 @@ static unsigned int get_hdr_inc(struct thread_data *td, struct io_u *io_u) unsigned int hdr_inc; hdr_inc = io_u->buflen; - if (td->o.verify_interval) + if (td->o.verify_interval && td->o.verify_interval <= io_u->buflen) hdr_inc = td->o.verify_interval; return hdr_inc; @@ -973,6 +973,7 @@ int get_next_verify(struct thread_data *td, struct io_u *io_u) io_u->offset = ipo->offset; io_u->buflen = ipo->len; io_u->file = ipo->file; + io_u->flags |= IO_U_F_VER_LIST; if (ipo->flags & IP_F_TRIMMED) io_u->flags |= IO_U_F_TRIMMED; @@ -1003,6 +1004,14 @@ int get_next_verify(struct thread_data *td, struct io_u *io_u) return 1; } +void fio_verify_init(struct thread_data *td) +{ + if (td->o.verify == VERIFY_CRC32C_INTEL || + td->o.verify == VERIFY_CRC32C) { + crc32c_intel_probe(); + } +} + static void *verify_async_thread(void *data) { struct thread_data *td = data;