Lines Matching refs:zstd
7 intentionally unmodified. Please do not alter the file containing the zstd
13 * `lib/` contains the the unmodified, [_"amalgamated"_](https://github.com/facebook/zstd/blob/dev/c…
15 * `zstd-in.c` is our template file for generating the library
24 1. Grab the latest release of [ZSTD](https://github.com/facebook/zstd/releases).
25 2. Update `module/zstd/zstd-in.c` if required. (see
26 `zstd/contrib/single_file_libs/zstd-in.c` in the zstd repository)
27 3. Generate the "single-file-library" and put it to `module/zstd/lib/`.
28 4. Copy the following files to `module/zstd/lib/`:
29 - `zstd/lib/zstd.h`
30 - `zstd/lib/common/zstd_errors.h`
37 url="https://github.com/facebook/zstd"
39 zstd="/tmp/zstd-${release}/"
41 wget -O /tmp/zstd.tar.gz \
42 "${url}/releases/download/v${release}/zstd-${release}.tar.gz"
43 tar -C /tmp -xzf /tmp/zstd.tar.gz
45 cp ${zstd}/lib/zstd.h module/zstd/lib/
46 cp ${zstd}/lib/zstd_errors.h module/zstd/lib/
47 ${zstd}/contrib/single_file_libs/combine.sh \
48 -r ${zstd}/lib -o module/zstd/lib/zstd.c module/zstd/zstd-in.c
51 Note: if the zstd library for zfs is updated to a newer version,
54 script: nm zstd.o | awk '{print "#define "$3 " zfs_" $3}' > macrotable