t/gen-rand: use 32-bit random generator
[fio.git] / verify.c
index 19bec75a4ec75d29e2af196f4ad41791a97efceb..5d491d7677faf05add256f08ca4892f128ea2831 100644 (file)
--- 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;