dedup

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

commit 1d030e78b7b8bcdbf805fc9080733e35e514b3af
parent 6499f2d353ff8cc5cffeb336cee6c8dbf20679c2
Author: sin <sin@2f30.org>
Date:   Thu, 18 Apr 2019 11:38:26 +0100

Only compr/hash details some things in verbose mode

Diffstat:
Mdinfo.c | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dinfo.c b/dinfo.c @@ -29,15 +29,16 @@ print_info(int tflag) { struct stats *st = &snap_hdr.st; - if (!tflag) { + if (verbose > 0) fprintf(stderr, "Compression algorithm: %s\n", compr_type2name(compr_algo)); fprintf(stderr, "Hash algorithm: %s\n", hash_type2name(hash_algo)); - if (st->nr_blks == 0) - return; + if (st->nr_blks == 0) + return; + if (!tflag) { fprintf(stderr, "Original size: %llu bytes\n", (unsigned long long)st->orig_size); fprintf(stderr, "Compressed size: %llu bytes\n",