Skip to content

Commit dc544ab

Browse files
c0d3z3r0allanjudeKjeld Schouten-Lebbing
authored andcommitted
Import ZStandard v1.4.5
ZStandard is a modern, high performance, general compression algorithm. It provides similar or better compression levels to GZIP, but with much better performance. ZStandard provides a large selection of compression levels to allow a storage administrator to select the preferred performance/compression trade-off. This commit imports the unmodified ZStandard single-file library which will be used by ZFS. The implementation of this new library is done with future updates of zstd in mind. For this reason we integrated the code in a way, that does not require modifications to the library. For more details, see `module/zstd/README.md`. The library is excluded from codecov calculation and cppcheck as unaltered dependencies do not need full codecov or cppcheck. Co-authored-by: Allan Jude <[email protected]> Co-authored-by: Kjeld Schouten-Lebbing <[email protected]> Co-authored-by: Michael Niewöhner <[email protected]> Signed-off-by: Allan Jude <[email protected]> Signed-off-by: Kjeld Schouten-Lebbing <[email protected]> Signed-off-by: Michael Niewöhner <[email protected]>
1 parent 772c69d commit dc544ab

File tree

7 files changed

+30110
-2
lines changed

7 files changed

+30110
-2
lines changed

Makefile.am

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,11 @@ commitcheck:
115115

116116
PHONY += cstyle
117117
cstyle:
118-
@find ${top_srcdir} -name build -prune -o -type f -name '*.[hc]' \
118+
@find ${top_srcdir} -name build -prune \
119+
-o -type f -name '*.[hc]' \
119120
! -name 'zfs_config.*' ! -name '*.mod.c' \
120121
! -name 'opt_global.h' ! -name '*_if*.h' \
122+
! -path './module/zstd/lib/*' \
121123
-exec ${top_srcdir}/scripts/cstyle.pl -cpP {} \+
122124

123125
filter_executable = -exec test -x '{}' \; -print

config/ax_code_coverage.m4

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
222222
223223
# Add any folders you want to ignore here
224224
# Ignore tmp and tests themselves
225-
CODE_COVERAGE_IGNORE_PATTERN ?= "/tmp/*" "*/tests/*"
225+
CODE_COVERAGE_IGNORE_PATTERN ?= "/tmp/*" "*/tests/*"
226+
CODE_COVERAGE_IGNORE_PATTERN += "*/module/zstd/lib/*"
226227
227228
GITIGNOREFILES ?=
228229
GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)

cppcheck-suppressions.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ uninitvar:module/os/freebsd/zfs/vdev_geom.c
44
uninitvar:module/os/freebsd/zfs/zfs_vfsops.c
55
uninitvar:module/os/freebsd/spl/spl_zone.c
66
uninitvar:lib/libzutil/os/freebsd/zutil_import_os.c
7+
*:module/zstd/lib/zstd.c
8+
*:module/zstd/lib/zstd.h

0 commit comments

Comments
 (0)