dedup

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

commit 41722ed34fe2e6aa8442410a91cbdd231e56b00a
parent ec64133a5a57e21b3565368df37eae469c260755
Author: sin <sin@2f30.org>
Date:   Thu, 28 Feb 2019 13:11:06 +0000

Remove some debug code

Diffstat:
Mdedup.h | 14+++++++-------
Mtypes.c | 14--------------
2 files changed, 7 insertions(+), 21 deletions(-)

diff --git a/dedup.h b/dedup.h @@ -22,6 +22,13 @@ struct cache; struct chunker; +struct snapshot_hdr { + uint64_t flags; + uint64_t size; + uint64_t nr_snapshots; + uint64_t reserved[4]; +}; + struct stats { uint64_t orig_size; uint64_t comp_size; @@ -32,13 +39,6 @@ struct stats { uint64_t reserved[6]; }; -struct snapshot_hdr { - uint64_t flags; - uint64_t size; - uint64_t nr_snapshots; - uint64_t reserved[4]; -}; - struct blk_hdr { uint64_t flags; uint64_t size; diff --git a/types.c b/types.c @@ -26,13 +26,6 @@ read_snap_hdr(int fd, struct snapshot_hdr *hdr) &hdr->reserved[2], &hdr->reserved[3]); - if (verbose > 1) - printf("%s: flags = %llx, size = %llx, nr_snapshots = %llx\n", - __func__, - (unsigned long long)hdr->flags, - (unsigned long long)hdr->size, - (unsigned long long)hdr->nr_snapshots); - assert(n == SNAP_HDR_LEN); } @@ -53,13 +46,6 @@ write_snap_hdr(int fd, struct snapshot_hdr *hdr) hdr->reserved[2], hdr->reserved[3]); - if (verbose > 1) - printf("%s: flags = %llx, size = %llx, nr_snapshots = %llx\n", - __func__, - (unsigned long long)hdr->flags, - (unsigned long long)hdr->size, - (unsigned long long)hdr->nr_snapshots); - assert(n == SNAP_HDR_LEN); xwrite(fd, buf, n); }