Add 'null' verify option
For testing purposes.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/fio.h b/fio.h
index 4111bff..4d7e6ea 100644
--- a/fio.h
+++ b/fio.h
@@ -102,6 +102,8 @@
IO_U_F_FLIGHT = 1 << 1,
};
+struct thread_data;
+
/*
* The io unit
*/
@@ -162,7 +164,7 @@
/*
* Callback for io completion
*/
- int (*end_io)(struct io_u *);
+ int (*end_io)(struct thread_data *, struct io_u *);
};
/*
@@ -180,6 +182,7 @@
VERIFY_NONE = 0, /* no verification */
VERIFY_MD5, /* md5 sum data blocks */
VERIFY_CRC32, /* crc32 sum data blocks */
+ VERIFY_NULL, /* pretend to verify */
};
/*
@@ -744,7 +747,7 @@
*/
extern void populate_verify_io_u(struct thread_data *, struct io_u *);
extern int __must_check get_next_verify(struct thread_data *td, struct io_u *);
-extern int __must_check verify_io_u(struct io_u *);
+extern int __must_check verify_io_u(struct thread_data *, struct io_u *);
/*
* Memory helpers