X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=verify.c;h=8427b6f9deb8fd4a6757b5e512b0e1197259a5a2;hp=f5ed51a5354c35486c727ed18c7591886fef3bde;hb=a12a3b4d8903b9941705067442c2c530a94635f3;hpb=3f199b01fc9cc7a0f4915db266d7a28bc46e84f0;ds=sidebyside diff --git a/verify.c b/verify.c index f5ed51a5..8427b6f9 100644 --- a/verify.c +++ b/verify.c @@ -389,7 +389,12 @@ int verify_io_u(struct thread_data *td, struct io_u *io_u) if (td->o.verify_interval) hdr_inc = td->o.verify_interval; + ret = 0; for (p = io_u->buf; p < io_u->buf + io_u->buflen; p += hdr_inc, hdr_num++) { + if (ret && td->o.verify_fatal) { + td->terminate = 1; + break; + } hdr_size = __hdr_size(td->o.verify); if (td->o.verify_offset) memswp(p, p + td->o.verify_offset, hdr_size); @@ -444,7 +449,7 @@ int verify_io_u(struct thread_data *td, struct io_u *io_u) } } - return 0; + return ret; } static void fill_meta(struct verify_header *hdr, struct thread_data *td,