iCheck cache offset/size against block descriptor - 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 cc98da662594f5538942073561082e92be19d9fb /scm/dedup/commit/cc98da662594f5538942073561082e92be19d9fb.gph bitreich.org 70 1parent 0bcb5f2edec8035f5fbfb9a33d51ba1b6b19f168 /scm/dedup/commit/0bcb5f2edec8035f5fbfb9a33d51ba1b6b19f168.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Mon, 4 Mar 2019 15:42:26 +0000 Err bitreich.org 70 i Err bitreich.org 70 iCheck cache offset/size against block descriptor Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 6 ++++++ Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 6 insertions(+), 0 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@@ -417,6 +417,12 @@ check_cache(struct snapshot *snap, void *arg) Err bitreich.org 70 i if (lookup_cache_entry(cache, &cache_entry) < 0) { 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 .