iAdd some comments to explain type fields - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 578a83321e46eade65fa2d2a4cff5e57f4f4ba03 /scm/dedup/commit/578a83321e46eade65fa2d2a4cff5e57f4f4ba03.gph bitreich.org 70 1parent 083901e286dddcf542979c1037dea36a5f7ab1b1 /scm/dedup/commit/083901e286dddcf542979c1037dea36a5f7ab1b1.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Thu, 28 Feb 2019 13:24:02 +0000 Err bitreich.org 70 i Err bitreich.org 70 iAdd some comments to explain type fields Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.h | 32 ++++++++++++++++---------------- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 16 insertions(+), 16 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.h b/dedup.h /scm/dedup/file/dedup.h.gph bitreich.org 70 i@@ -23,46 +23,46 @@ struct cache; Err bitreich.org 70 i struct chunker; Err bitreich.org 70 i Err bitreich.org 70 i struct snapshot_hdr { Err bitreich.org 70 i- uint64_t flags; Err bitreich.org 70 i- uint64_t size; Err bitreich.org 70 i+ uint64_t flags; /* bottom 16 bits are maj/min version */ Err bitreich.org 70 i+ uint64_t size; /* size of snapshots file */ Err bitreich.org 70 i uint64_t nr_snapshots; Err bitreich.org 70 i uint64_t reserved[4]; Err bitreich.org 70 i }; Err bitreich.org 70 i Err bitreich.org 70 i struct stats { Err bitreich.org 70 i- uint64_t orig_size; Err bitreich.org 70 i- uint64_t comp_size; Err bitreich.org 70 i- uint64_t dedup_size; Err bitreich.org 70 i+ uint64_t orig_size; /* original store size */ Err bitreich.org 70 i+ uint64_t comp_size; /* compressed store size */ Err bitreich.org 70 i+ uint64_t dedup_size; /* deduplicated store size */ Err bitreich.org 70 i uint64_t min_blk_size; Err bitreich.org 70 i uint64_t max_blk_size; Err bitreich.org 70 i- uint64_t nr_blks; Err bitreich.org 70 i+ uint64_t nr_blks; /* number of unique blocks */ Err bitreich.org 70 i uint64_t reserved[6]; Err bitreich.org 70 i }; Err bitreich.org 70 i Err bitreich.org 70 i struct blk_hdr { Err bitreich.org 70 i- uint64_t flags; Err bitreich.org 70 i- uint64_t size; Err bitreich.org 70 i+ uint64_t flags; /* bottom 16 bits are maj/min version */ Err bitreich.org 70 i+ uint64_t size; /* size of store file */ Err bitreich.org 70 i struct stats st; Err bitreich.org 70 i }; Err bitreich.org 70 i Err bitreich.org 70 i struct blk_desc { Err bitreich.org 70 i- uint8_t md[MDSIZE]; Err bitreich.org 70 i- uint64_t offset; Err bitreich.org 70 i- uint64_t size; Err bitreich.org 70 i+ uint8_t md[MDSIZE]; /* hash of block */ Err bitreich.org 70 i+ uint64_t offset; /* offset into store file */ Err bitreich.org 70 i+ uint64_t size; /* size of block */ Err bitreich.org 70 i }; Err bitreich.org 70 i Err bitreich.org 70 i struct snapshot { Err bitreich.org 70 i- uint64_t size; Err bitreich.org 70 i- uint8_t msg[MSGSIZE]; Err bitreich.org 70 i+ uint64_t size; /* size of snapshot (including block descriptors) */ Err bitreich.org 70 i+ uint8_t msg[MSGSIZE]; /* arbitrary message attached to snapshot */ Err bitreich.org 70 i uint8_t md[MDSIZE]; /* hash of snapshot */ Err bitreich.org 70 i uint64_t nr_blk_descs; Err bitreich.org 70 i struct blk_desc blk_desc[]; Err bitreich.org 70 i }; Err bitreich.org 70 i Err bitreich.org 70 i struct cache_entry { Err bitreich.org 70 i- uint8_t md[MDSIZE]; Err bitreich.org 70 i- uint64_t offset; Err bitreich.org 70 i- uint64_t size; Err bitreich.org 70 i+ uint8_t md[MDSIZE]; /* hash of block */ Err bitreich.org 70 i+ uint64_t offset; /* offset into store file */ Err bitreich.org 70 i+ uint64_t size; /* size of block */ Err bitreich.org 70 i }; Err bitreich.org 70 i Err bitreich.org 70 i /* dedup.c */ Err bitreich.org 70 .