X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.h;h=6a81e9b012bc6fa0632a90ea0dc2e9acfe26755f;hb=e078de4a1c4e27f1938db4656e4d7cb6f98a8e1c;hp=49ce417cff8c200bbc252b266867db857781d471;hpb=92bf48d530ab09bae4058df711c4723c73da51b9;p=fio.git diff --git a/verify.h b/verify.h index 49ce417c..6a81e9b0 100644 --- a/verify.h +++ b/verify.h @@ -3,7 +3,7 @@ #include -#define FIO_HDR_MAGIC 0xf00baaef +#define FIO_HDR_MAGIC 0xacca enum { VERIFY_NONE = 0, /* no verification */ @@ -28,10 +28,11 @@ enum { * data. */ struct verify_header { - unsigned int fio_magic; - unsigned int len; - unsigned int verify_type; - unsigned long rand_seed; + uint16_t magic; + uint16_t verify_type; + uint32_t len; + uint64_t rand_seed; + uint32_t crc32; }; struct vhdr_md5 { @@ -74,6 +75,7 @@ extern int __must_check get_next_verify(struct thread_data *td, struct io_u *); extern int __must_check verify_io_u(struct thread_data *, struct io_u *); extern int verify_io_u_async(struct thread_data *, struct io_u *); extern void fill_pattern(struct thread_data *td, void *p, unsigned int len, struct io_u *io_u, unsigned long seed, int use_seed); +extern void fio_verify_init(struct thread_data *td); /* * Async verify offload