"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "verify.c" between
fio-3.12.tar.bz2 and fio-3.13.tar.bz2

About: fio is a flexible I/O tester (usable for benchmarks and stress/hardware verification).

verify.c  (fio-3.12.tar.bz2):verify.c  (fio-3.13.tar.bz2)
skipping to change at line 348 skipping to change at line 348
__dump_verify_buffers(hdr, vc); __dump_verify_buffers(hdr, vc);
} }
static void log_verify_failure(struct verify_header *hdr, struct vcont *vc) static void log_verify_failure(struct verify_header *hdr, struct vcont *vc)
{ {
unsigned long long offset; unsigned long long offset;
offset = vc->io_u->offset; offset = vc->io_u->offset;
offset += vc->hdr_num * hdr->len; offset += vc->hdr_num * hdr->len;
log_err("%.8s: verify failed at file %s offset %llu, length %u\n", log_err("%.8s: verify failed at file %s offset %llu, length %u"
vc->name, vc->io_u->file->file_name, offset, hdr->len); " (requested block: offset=%llu, length=%llu)\n",
vc->name, vc->io_u->file->file_name, offset, hdr->len,
vc->io_u->offset, vc->io_u->buflen);
if (vc->good_crc && vc->bad_crc) { if (vc->good_crc && vc->bad_crc) {
log_err(" Expected CRC: "); log_err(" Expected CRC: ");
hexdump(vc->good_crc, vc->crc_len); hexdump(vc->good_crc, vc->crc_len);
log_err(" Received CRC: "); log_err(" Received CRC: ");
hexdump(vc->bad_crc, vc->crc_len); hexdump(vc->bad_crc, vc->crc_len);
} }
dump_verify_buffers(hdr, vc); dump_verify_buffers(hdr, vc);
} }
skipping to change at line 868 skipping to change at line 870
crc = fio_crc32c(p, offsetof(struct verify_header, crc32)); crc = fio_crc32c(p, offsetof(struct verify_header, crc32));
if (crc != hdr->crc32) { if (crc != hdr->crc32) {
log_err("verify: bad header crc %x, calculated %x", log_err("verify: bad header crc %x, calculated %x",
hdr->crc32, crc); hdr->crc32, crc);
goto err; goto err;
} }
return 0; return 0;
err: err:
log_err(" at file %s offset %llu, length %u\n", log_err(" at file %s offset %llu, length %u"
" (requested block: offset=%llu, length=%llu)\n",
io_u->file->file_name, io_u->file->file_name,
io_u->offset + hdr_num * hdr_len, hdr_len); io_u->offset + hdr_num * hdr_len, hdr_len,
io_u->offset, io_u->buflen);
if (td->o.verify_dump) if (td->o.verify_dump)
dump_buf(p, hdr_len, io_u->offset + hdr_num * hdr_len, dump_buf(p, hdr_len, io_u->offset + hdr_num * hdr_len,
"hdr_fail", io_u->file); "hdr_fail", io_u->file);
return EILSEQ; return EILSEQ;
} }
int verify_io_u(struct thread_data *td, struct io_u **io_u_ptr) int verify_io_u(struct thread_data *td, struct io_u **io_u_ptr)
{ {
 End of changes. 3 change blocks. 
4 lines changed or deleted 8 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)