p + hdr_size,
hdr_inc - hdr_size,
hdr_size % 4);
+ /*
+ * Also verify the meta data, if applicable
+ */
+ if (hdr->verify_type == VERIFY_META)
+ ret |= verify_io_u_meta(hdr, td, io_u, hdr_num);
+
if (ret)
log_err("fio: verify failed at %llu/%u\n",
io_u->offset + hdr_num * hdr->len,
while (flist_empty(&td->verify_list) &&
!td->verify_thread_exit) {
- ret = pthread_cond_wait(&td->verify_cond, &td->io_u_lock);
+ ret = pthread_cond_wait(&td->verify_cond,
+ &td->io_u_lock);
if (ret) {
pthread_mutex_unlock(&td->io_u_lock);
break;
}
if (i != td->o.verify_async) {
+ log_err("fio: only %d verify threads started, exiting\n", i);
td->verify_thread_exit = 1;
write_barrier();
pthread_cond_broadcast(&td->verify_cond);