Merge branch 'master' of https://github.com/celestinechen/fio
[fio.git] / verify.h
index 5aae2e7e9bb411f9be2e964fb023baf023ca5bea..539e6f6cf5c1accf7a88af9cd9d6287e8fb09163 100644 (file)
--- a/verify.h
+++ b/verify.h
@@ -2,6 +2,7 @@
 #define FIO_VERIFY_H
 
 #include <stdint.h>
+#include "compiler/compiler.h"
 #include "verify-state.h"
 
 #define FIO_HDR_MAGIC  0xacca
@@ -43,7 +44,7 @@ struct verify_header {
        uint64_t rand_seed;
        uint64_t offset;
        uint32_t time_sec;
-       uint32_t time_usec;
+       uint32_t time_nsec;
        uint16_t thread;
        uint16_t numberio;
        uint32_t crc32;
@@ -96,7 +97,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 thread_data *, struct io_u **);
 extern int verify_io_u_async(struct thread_data *, struct io_u **);
-extern void fill_verify_pattern(struct thread_data *td, void *p, unsigned int len, struct io_u *io_u, unsigned long seed, int use_seed);
+extern void fill_verify_pattern(struct thread_data *td, void *p, unsigned int len, struct io_u *io_u, uint64_t seed, int use_seed);
 extern void fill_buffer_pattern(struct thread_data *td, void *p, unsigned int len);
 extern void fio_verify_init(struct thread_data *td);