dedup

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

commit ec545e0de1c24732355d70545e75781d5702ba37
parent ff3adddbd64ef8550fddd7d9c14f3e1c05e92ff1
Author: sin <sin@2f30.org>
Date:   Thu, 21 Feb 2019 21:10:26 +0000

Avoid a potential min blk size of 0

Diffstat:
Mdedup.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dedup.c b/dedup.c @@ -590,8 +590,8 @@ init(void) VER_MAJ, VER_MIN, maj, min); } else { snaphdr.flags = (VER_MAJ << 8) | VER_MIN; - xwrite(ifd, &snaphdr, sizeof(snaphdr)); snaphdr.st.min_blk_size = comp_size(BLKSIZE); + xwrite(ifd, &snaphdr, sizeof(snaphdr)); } if (cache_nr_entries() != 0)