iUnify conditionals - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 4d6d7d91c1672bd867c6dc1242e2dd2258698df9 /scm/dedup/commit/4d6d7d91c1672bd867c6dc1242e2dd2258698df9.gph bitreich.org 70 1parent 85170f6b38620fddbf8b08b13a3b293f4db62d3e /scm/dedup/commit/85170f6b38620fddbf8b08b13a3b293f4db62d3e.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Tue, 5 Mar 2019 11:17:37 +0000 Err bitreich.org 70 i Err bitreich.org 70 iUnify conditionals Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 10 +++------- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 3 insertions(+), 7 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.c b/dedup.c /scm/dedup/file/dedup.c.gph bitreich.org 70 i@@ -414,15 +414,11 @@ check_cache_entry(struct snapshot *snap, void *arg) Err bitreich.org 70 i Err bitreich.org 70 i blk_desc = &snap->blk_desc[i]; Err bitreich.org 70 i memcpy(&cache_entry.md, blk_desc->md, sizeof(cache_entry.md)); Err bitreich.org 70 i- if (lookup_cache_entry(cache, &cache_entry) < 0) { Err bitreich.org 70 i+ if (lookup_cache_entry(cache, &cache_entry) < 0 || Err bitreich.org 70 i+ cache_entry.offset != blk_desc->offset || Err bitreich.org 70 i+ cache_entry.size != blk_desc->size) { Err bitreich.org 70 i *ret = -1; Err bitreich.org 70 i return WALK_STOP; Err bitreich.org 70 i- } else { Err bitreich.org 70 i- if (cache_entry.offset != blk_desc->offset || Err bitreich.org 70 i- cache_entry.size != blk_desc->size) { Err bitreich.org 70 i- *ret = -1; Err bitreich.org 70 i- return WALK_STOP; Err bitreich.org 70 i- } Err bitreich.org 70 i } Err bitreich.org 70 i } Err bitreich.org 70 i return WALK_CONTINUE; Err bitreich.org 70 .