Add a comment to clarify flags usage - dedup - deduplicating backup program HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ DIR Log DIR Files DIR Refs DIR Tags DIR README DIR LICENSE --- DIR commit 4a21ac05f96b79113658a5adc1c04bde99bd8118 DIR parent 1fc2fd3f5bb799b10a39ff687f8f44cc745173d4 HTML Author: sin <sin@2f30.org> Date: Wed, 10 Apr 2019 13:42:56 +0100 Add a comment to clarify flags usage Diffstat: M dedup.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- DIR 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 */ };