From a7dfe862c2e3fe72b8db6a6e67302048d3731c6d Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 12 Mar 2007 10:05:08 +0100 Subject: [PATCH 1/1] Return EIO for verification failure We passed back 1, where we need some sort of symbolic error. Signed-off-by: Jens Axboe --- verify.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/verify.c b/verify.c index 6cbd0add..643e7820 100644 --- a/verify.c +++ b/verify.c @@ -85,7 +85,7 @@ int verify_io_u(struct io_u *io_u) if (hdr->fio_magic != FIO_HDR_MAGIC) { log_err("Bad verify header %x\n", hdr->fio_magic); - return 1; + return EIO; } if (hdr->verify_type == VERIFY_MD5) @@ -97,7 +97,10 @@ int verify_io_u(struct io_u *io_u) ret = 1; } - return ret; + if (ret) + return EIO; + + return 0; } static void fill_crc32(struct verify_header *hdr, void *p, unsigned int len) -- 2.25.1