Skip to contentSkip to conversation

Recent changes (master)

PATCH Jens Axboe 1 participant 1 message Aug 27

lore
Share & tools
lore

Jens Axboe

author
#0 lore raw

The following changes since commit 93ab5b9771768dc99cef9550a75f74c5948eac0d:

Merge branch 'reap-signaled-worker-exit-code' of https://github.com/Vladyyy/fio (2026-08-24 15:42:41 +0000)

are available in the Git repository at:

git://git.kernel.dk/fio.git master

for you to fetch changes up to ae35a58399b28edf857f7ebc43b3eb40d86ac29b:

Merge branch 'verify-zero-dump' of https://github.com/sarthak-k/fio (2026-08-26 16:12:53 +0000)

----------------------------------------------------------------
Sarthak Killedar (1):
verify: dump the received buffer when zero verify fails

Vincent Fu (1):
Merge branch 'verify-zero-dump' of https://github.com/sarthak-k/fio

 verify.c | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

---

Diff of recent changes:

verify.c +12 -3
index 633a9bb2..a978aff0 100644
@@ -891,7 +891,7 @@ static int mem_is_zero_slow(const void *data, size_t length, size_t *offset)
 	return !length;
 }
 
-static int verify_zero(struct io_u *io_u)
+static int verify_zero(struct thread_data *td, struct io_u *io_u)
 {
 	size_t offset;
 
@@ -904,6 +904,15 @@ static int verify_zero(struct io_u *io_u)
 		", block offset %lu\n",
 			io_u->file->file_name, io_u->verify_offset, io_u->buflen,
 			(unsigned long) offset);
+
+	/*
+	 * Only the received data is worth dumping here, the expected
+	 * contents are all zeroes.
+	 */
+	if (td->o.verify_dump)
+		dump_buf(io_u->buf, io_u->buflen, io_u->verify_offset,
+				"received", io_u->file);
+
 	return EILSEQ;
 }
 
@@ -912,7 +921,7 @@ static int verify_trimmed_io_u(struct thread_data *td, struct io_u *io_u)
 	if (!td->o.trim_zero)
 		return 0;
 
-	return verify_zero(io_u);
+	return verify_zero(td, io_u);
 }
 
 static int verify_header(struct io_u *io_u, struct thread_data *td,
@@ -1018,7 +1027,7 @@ int verify_io_u(struct thread_data *td, struct io_u **io_u_ptr)
 		goto done;
 	} else if (io_u->flags & IO_U_F_ZEROED) {
 		dprint(FD_VERIFY, "verifying write zeroes command\n");
-		ret = verify_zero(io_u);
+		ret = verify_zero(td, io_u);
 		goto done;
 	}