iPrint a message when rebuilding cache in verbose mode - 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 6d9bfc25ce2ba1ddc768c68522d05195d783472b /scm/dedup/commit/6d9bfc25ce2ba1ddc768c68522d05195d783472b.gph bitreich.org 70 1parent 9e1768bc6e510384390cd08ed3b209d7bae8bcec /scm/dedup/commit/9e1768bc6e510384390cd08ed3b209d7bae8bcec.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Mon, 4 Mar 2019 08:58:52 +0000 Err bitreich.org 70 i Err bitreich.org 70 iPrint a message when rebuilding cache in verbose mode Err bitreich.org 70 i Err bitreich.org 70 iIt can take a while on large repos. Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 4 ++++ Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 4 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@@ -486,7 +486,11 @@ load_cache(void) Err bitreich.org 70 i nr_entries = sb.st_size / CACHE_ENTRY_SIZE; Err bitreich.org 70 i if (nr_entries == 0) { Err bitreich.org 70 i xlseek(ifd, SNAP_HDR_SIZE, SEEK_SET); Err bitreich.org 70 i+ if (verbose > 0) Err bitreich.org 70 i+ fprintf(stderr, "Rebuilding cache..."); Err bitreich.org 70 i walk_snap(rebuild_cache, NULL); Err bitreich.org 70 i+ if (verbose > 0) Err bitreich.org 70 i+ fprintf(stderr, "done\n"); Err bitreich.org 70 i return; Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 .