From 3ee5f7ee34e1768a0b15c6acc54481c2372f9c92 Mon Sep 17 00:00:00 2001 From: Raghavendra Manjunath Date: Thu, 23 Aug 2018 22:24:25 -0400 Subject: features/uss: Use xxh64 to generate gfid instead of md5sum * This is to ensure FIPS support * Also changed the signature of svs_uuid_generate to get xlator argument * Added xxh64 wrapper functions in common-utils to generate gfid using xxh64 - Those wrapper functions can be used by other xlators as well to generate gfids using xxh64. But as of now snapview-server is going to be the only consumer. Change-Id: Ide66573125dd74122430cccc4c4dc2a376d642a2 Updates: #230 Signed-off-by: Raghavendra Manjunath Signed-off-by: Raghavendra Bhat --- libglusterfs/src/common-utils.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglusterfs/src/common-utils.h') diff --git a/libglusterfs/src/common-utils.h b/libglusterfs/src/common-utils.h index 4fd92b0315b..ef09ca5a337 100644 --- a/libglusterfs/src/common-utils.h +++ b/libglusterfs/src/common-utils.h @@ -855,6 +855,8 @@ gf_boolean_t gf_is_local_addr (char *hostname); gf_boolean_t gf_is_same_address (char *host1, char *host2); void gf_xxh64_wrapper(const unsigned char *data, size_t const len, unsigned long long const seed, char *xxh64); +int gf_gfid_generate_from_xxh64 (uuid_t gfid, char *key); + int gf_set_timestamp (const char *src, const char* dest); int gf_thread_create (pthread_t *thread, const pthread_attr_t *attr, -- cgit