From 9cc3d1506b9f7ce0a9dba38c32c418e54ea0b573 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 26 Mar 2007 10:32:30 +0200 Subject: [PATCH] No need to fill random bytes for VERIFY_NULL Signed-off-by: Jens Axboe --- verify.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/verify.c b/verify.c index f1ac43bf..99b21e8f 100644 --- a/verify.c +++ b/verify.c @@ -129,6 +129,9 @@ void populate_verify_io_u(struct thread_data *td, struct io_u *io_u) unsigned char *p = (unsigned char *) io_u->buf; struct verify_header hdr; + if (td->o.verify == VERIFY_NULL) + return; + hdr.fio_magic = FIO_HDR_MAGIC; hdr.len = io_u->buflen; p += sizeof(hdr); -- 2.25.1