Add unmap hook that belongs to the IO engines
[fio.git] / fio.h
diff --git a/fio.h b/fio.h
index 235a13b1d8c8f96e996d1c16c9138d2d9afa84e5..fe314bfde1eebd1e18ed6178103ce33ec9ff5f3d 100644 (file)
--- a/fio.h
+++ b/fio.h
@@ -175,6 +175,11 @@ struct io_u {
         * Callback for io completion
         */
        int (*end_io)(struct thread_data *, struct io_u *);
+
+       /*
+        * Called when io_u is about to be freed
+        */
+       void (*unmap)(struct thread_data *, struct io_u *);
 };
 
 /*
@@ -198,6 +203,7 @@ enum {
        VERIFY_SHA256,                  /* sha256 sum data blocks */
        VERIFY_SHA512,                  /* sha512 sum data blocks */
        VERIFY_META,                    /* block_num, timestamp etc. */
+       VERIFY_PATTERN,                 /* verify a specific pattern */
        VERIFY_NULL,                    /* pretend to verify */
 };
 
@@ -417,11 +423,13 @@ struct thread_options {
        unsigned int end_fsync;
        unsigned int sync_io;
        unsigned int verify;
+       unsigned int do_verify;
        unsigned int verifysort;
        unsigned int verify_interval;
        unsigned int verify_offset;
        unsigned int verify_pattern;
        unsigned int verify_pattern_bytes;
+       unsigned int verify_fatal;
        unsigned int use_thread;
        unsigned int unlink;
        unsigned int do_disk_util;