summaryrefslogtreecommitdiff
path: root/verify.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-02-20 13:21:45 -0800
committerJens Axboe <axboe@fb.com>2014-02-20 13:21:45 -0800
commit844ea60273f4e7862150d9c6430cdb15768e2f34 (patch)
tree355505b5be916756a6ce9d52c918d2b31b3bbce0 /verify.h
parent51c8c3701e2b041788d1d1e650a9a18a56c09f20 (diff)
downloadfio-844ea60273f4e7862150d9c6430cdb15768e2f34.tar.gz
fio-844ea60273f4e7862150d9c6430cdb15768e2f34.tar.bz2
Add support for the Google xxhash checksumming function
It's a lot faster than the other software defined ones, so will be a useful alternative for the cases where crc32c-intel isn't available. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'verify.h')
-rw-r--r--verify.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/verify.h b/verify.h
index 05d7b81b..dba7743a 100644
--- a/verify.h
+++ b/verify.h
@@ -16,6 +16,7 @@ enum {
VERIFY_CRC7, /* crc7 sum data blocks */
VERIFY_SHA256, /* sha256 sum data blocks */
VERIFY_SHA512, /* sha512 sum data blocks */
+ VERIFY_XXHASH, /* xxhash sum data blocks */
VERIFY_META, /* block_num, timestamp etc. */
VERIFY_SHA1, /* sha1 sum data blocks */
VERIFY_PATTERN, /* verify specific patterns */
@@ -66,6 +67,9 @@ struct vhdr_meta {
unsigned long time_sec;
unsigned long time_usec;
};
+struct vhdr_xxhash {
+ uint32_t hash;
+};
/*
* Verify helpers