dedup

deduplicating backup program
git clone git://git.2f30.org/dedup
Log | Files | Refs | README | LICENSE

commit 6d9bfc25ce2ba1ddc768c68522d05195d783472b
parent 9e1768bc6e510384390cd08ed3b209d7bae8bcec
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:
Mdedup.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

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; }