Print a message when rebuilding cache in verbose mode - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 6d9bfc25ce2ba1ddc768c68522d05195d783472b DIR parent 9e1768bc6e510384390cd08ed3b209d7bae8bcec HTML Author: sin <sin@2f30.org> Date: Mon, 4 Mar 2019 08:58:52 +0000 Print a message when rebuilding cache in verbose mode It can take a while on large repos. Diffstat: M dedup.c | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/dedup.c b/dedup.c @@ -486,7 +486,11 @@ load_cache(void) nr_entries = sb.st_size / CACHE_ENTRY_SIZE; if (nr_entries == 0) { xlseek(ifd, SNAP_HDR_SIZE, SEEK_SET); + if (verbose > 0) + fprintf(stderr, "Rebuilding cache..."); walk_snap(rebuild_cache, NULL); + if (verbose > 0) + fprintf(stderr, "done\n"); return; }