Make some more room in the flags for compression algos - dedup - deduplicating backup program
(HTM) git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1fc2fd3f5bb799b10a39ff687f8f44cc745173d4
(DIR) parent 573a013a9738a43524c0e5994245353b8bd4b564
(HTM) Author: sin <sin@2f30.org>
Date: Wed, 10 Apr 2019 13:41:10 +0100
Make some more room in the flags for compression algos
Diffstat:
M dedup.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/dedup.h b/dedup.h
@@ -22,10 +22,10 @@
#define VER_MAJ_SHIFT 8
#define VER_MAJ_MASK 0xff
-#define HASH_ALGO_SHIFT 18
+#define HASH_ALGO_SHIFT 19
#define HASH_ALGO_MASK 0x7 /* max 8 hash algos */
#define COMPR_ALGO_SHIFT 16
-#define COMPR_ALGO_MASK 0x3 /* max 4 compression algos */
+#define COMPR_ALGO_MASK 0x7 /* max 8 compression algos */
enum compr_algo {
COMPR_NONE,