From 0a1e3b39ef6ecf161e2e5b92d95141b77014a8fa Mon Sep 17 00:00:00 2001 From: Moinak Ghosh Date: Wed, 15 May 2013 22:20:45 +0530 Subject: [PATCH] Correspond segment size to chunk size for Segmented Dedupe for better accuracy. --- rabin/global/dedupe_config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rabin/global/dedupe_config.c b/rabin/global/dedupe_config.c index 29bc70b..42f13ac 100644 --- a/rabin/global/dedupe_config.c +++ b/rabin/global/dedupe_config.c @@ -379,7 +379,7 @@ set_config_s(archive_config_t *cfg, const char *algo, cksum_t ck, cksum_t ck_sim cfg->segment_sz_bytes = user_chunk_sz; cfg->similarity_cksum_sz = cfg->chunk_cksum_sz; } else { - cfg->segment_sz_bytes = EIGHT_MB; + cfg->segment_sz_bytes = EIGHT_MB * cfg->chunk_sz; } cfg->segment_sz = cfg->segment_sz_bytes / cfg->chunk_sz_bytes;