X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=verify.c;h=5d491d7677faf05add256f08ca4892f128ea2831;hp=19bec75a4ec75d29e2af196f4ad41791a97efceb;hb=71471cb1d05f3877c8fb935fbf70a6bae789ac49;hpb=323f58c5ee9eb695e4c8f257ee955625480b3729 diff --git a/verify.c b/verify.c index 19bec75a..5d491d76 100644 --- a/verify.c +++ b/verify.c @@ -780,6 +780,11 @@ err: log_err(" at file %s offset %llu, length %u\n", io_u->file->file_name, io_u->offset + hdr_num * hdr_len, hdr_len); + + if (td->o.verify_dump) + dump_buf(p, hdr_len, io_u->offset + hdr_num * hdr_len, + "hdr_fail", io_u->file); + return EILSEQ; } @@ -1603,7 +1608,7 @@ int verify_state_hdr(struct verify_state_hdr *hdr, struct thread_io_list *s, hdr->size = le64_to_cpu(hdr->size); hdr->crc = le64_to_cpu(hdr->crc); - if (hdr->version != VSTATE_HDR_VERSION || + if (hdr->version != VSTATE_HDR_VERSION && hdr->version != VSTATE_HDR_VERSION_V1) return 1;