From 30ebb55c27d6a7179f91af0abd720d16e0e9915a Mon Sep 17 00:00:00 2001 From: YuQing <384681@qq.com> Date: Sun, 5 Mar 2023 08:48:36 +0800 Subject: [PATCH] add type SFBlockKey and SFSliceSize for libdiskallocator and faststore --- src/sf_types.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/sf_types.h b/src/sf_types.h index be5bee4..f175c97 100644 --- a/src/sf_types.h +++ b/src/sf_types.h @@ -263,4 +263,15 @@ typedef enum sf_replication_quorum { sf_replication_quorum_smart } SFReplicationQuorum; +typedef struct sf_block_key { + int64_t oid; //object id + int64_t offset; //aligned by block size + uint64_t hash_code; +} SFBlockKey; + +typedef struct sf_slice_size { + int offset; //offset within the block + int length; //slice length +} SFSliceSize; + #endif