projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2e6791
)
Return EIO for verification failure
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 12 Mar 2007 09:05:08 +0000
(10:05 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 12 Mar 2007 09:05:08 +0000
(10:05 +0100)
We passed back 1, where we need some sort of symbolic error.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
verify.c
patch
|
blob
|
blame
|
history
diff --git
a/verify.c
b/verify.c
index 6cbd0add35d2683186771a20f8b3079cb8079f5b..643e782010648bd43c53f827a97eb5437194d177 100644
(file)
--- 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)