dedup

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

commit de5d80e928daf2f67a8151796a5f9ca4ac4663e2
parent 4d6d7d91c1672bd867c6dc1242e2dd2258698df9
Author: sin <sin@2f30.org>
Date:   Tue,  5 Mar 2019 11:21:36 +0000

Add diagnostic about cache check

Diffstat:
Mdedup.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/dedup.c b/dedup.c @@ -515,6 +515,9 @@ check_cache(void) { int ret; + if (verbose > 0) + fprintf(stderr, "Checking cache\n"); + if (cache_nr_entries() != snap_hdr.st.nr_blks) { ret = -1; } else { @@ -524,6 +527,9 @@ check_cache(void) } if (ret != 0) { + if (verbose > 0) + fprintf(stderr, "Rebuilding cache\n"); + free_cache(cache); cache = alloc_cache();