commit f7ee3e913fb4a27319ddb1bef266e79933f40c70 parent 6424fd5e1aeaf427e6f15a51c67b08695f3f677c Author: sin <sin@2f30.org> Date: Wed, 17 Apr 2019 15:52:47 +0100 Initialize min blk size to UINT64_MAX Diffstat:
M | dedup.c | | | 7 | +------ |
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/dedup.c b/dedup.c @@ -499,14 +499,9 @@ save_blk_hdr(void) static void init_snap_hdr(void) { - struct compr_ctx ctx; - - if (compr_init(&ctx, compr_algo) < 0) - errx(1, "compr_init failed"); snap_hdr.flags = (VER_MAJ << VER_MAJ_SHIFT) | VER_MIN; snap_hdr.size = SNAP_HDR_SIZE; - snap_hdr.st.min_blk_size = compr_size(&ctx, BLKSIZE_MAX); - compr_final(&ctx); + snap_hdr.st.min_blk_size = UINT64_MAX; } static void