summaryrefslogtreecommitdiff
path: root/lib/comp/compressor.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-19 21:46:34 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-05-19 21:46:34 +0200
commitbc2bdb3c4f5cb969635f320beaa9e7bcf42450b2 (patch)
tree8e24aa2d76d79620558186bb0aa9a4c270c77672 /lib/comp/compressor.c
parent0a83c3d1709e88656be7d3f2d53259b550b57128 (diff)
Add ZSTD compressor implementation
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/comp/compressor.c')
-rw-r--r--lib/comp/compressor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/comp/compressor.c b/lib/comp/compressor.c
index 3b473a3..369cbea 100644
--- a/lib/comp/compressor.c
+++ b/lib/comp/compressor.c
@@ -20,6 +20,9 @@ static compressor_fun_t compressors[SQFS_COMP_MAX + 1] = {
#ifdef WITH_LZ4
[SQFS_COMP_LZ4] = create_lz4_compressor,
#endif
+#ifdef WITH_ZSTD
+ [SQFS_COMP_ZSTD] = create_zstd_compressor,
+#endif
};
int generic_write_options(int fd, const void *data, size_t size)