dedup

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

commit 4a21ac05f96b79113658a5adc1c04bde99bd8118
parent 1fc2fd3f5bb799b10a39ff687f8f44cc745173d4
Author: sin <sin@2f30.org>
Date:   Wed, 10 Apr 2019 13:42:56 +0100

Add a comment to clarify flags usage

Diffstat:
Mdedup.h | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/dedup.h b/dedup.h @@ -18,10 +18,12 @@ #define VER_MIN 2 #define VER_MAJ 0 +/* snapshot header and block header flags */ #define VER_MIN_MASK 0xff #define VER_MAJ_SHIFT 8 #define VER_MAJ_MASK 0xff +/* block header flags */ #define HASH_ALGO_SHIFT 19 #define HASH_ALGO_MASK 0x7 /* max 8 hash algos */ #define COMPR_ALGO_SHIFT 16 @@ -56,14 +58,14 @@ struct stats { }; struct snap_hdr { - uint64_t flags; /* bottom 16 bits are maj/min version */ + uint64_t flags; uint64_t size; /* size of snapshots file */ uint64_t nr_snaps; struct stats st; }; struct blk_hdr { - uint64_t flags; /* bottom 16 bits are maj/min version */ + uint64_t flags; uint64_t size; /* size of store file */ };