mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Avoid symbol collision with in-kernel zstdlib
For Linux, when zfs is compiled as an in kernel static variant and the in kernel zstd library is compiled statically into the kernel a symbol collision will occur. This wrapper header renames all of the relevant zstd functions to avoid this problem. Reviewed-by: Kjeld Schouten <kjeld@schouten-lebbing.nl> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com> Closes #10775
This commit is contained in:
committed by
GitHub
parent
04c37b6851
commit
184df27eef
@@ -48,6 +48,11 @@ ${zstd}/contrib/single_file_libs/combine.sh \
|
||||
-r ${zstd}/lib -o module/zstd/lib/zstd.c module/zstd/zstd-in.c
|
||||
~~~
|
||||
|
||||
Note: if the zstd library for zfs is updated to a newer version,
|
||||
the macro list in include/zstd_compat_wrapper.h usually needs to be updated.
|
||||
this can be done with some hand crafting of the output of the following
|
||||
script: nm zstd.o | awk '{print "#define "$3 " zfs_" $3}' > macrotable
|
||||
|
||||
|
||||
## Altering ZSTD and breaking changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user