diff options
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-algorithm.h')
-rw-r--r-- | xlators/cluster/afr/src/afr-self-heal-algorithm.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-algorithm.h b/xlators/cluster/afr/src/afr-self-heal-algorithm.h index b9c58b5cb1b..0bdae3aa77f 100644 --- a/xlators/cluster/afr/src/afr-self-heal-algorithm.h +++ b/xlators/cluster/afr/src/afr-self-heal-algorithm.h @@ -37,10 +37,14 @@ typedef struct { off_t offset; } afr_sh_algo_full_private_t; -typedef struct { - uint8_t *checksum; /* array of MD5 checksums for each child - Each checksum is MD5_DIGEST_LEN bytes long */ +struct sh_diff_loop_state { + off_t offset; + unsigned char *write_needed; + uint8_t *checksum; + gf_boolean_t active; +}; +typedef struct { size_t block_size; gf_lock_t lock; @@ -49,6 +53,8 @@ typedef struct { int32_t total_blocks; int32_t diff_blocks; + + struct sh_diff_loop_state **loops; } afr_sh_algo_diff_private_t; #endif /* __AFR_SELF_HEAL_ALGORITHM_H__ */ |