mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 10:54:35 +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
@@ -66,8 +66,8 @@ zio_compress_info_t zio_compress_table[ZIO_COMPRESS_FUNCTIONS] = {
|
||||
{"gzip-9", 9, gzip_compress, gzip_decompress, NULL},
|
||||
{"zle", 64, zle_compress, zle_decompress, NULL},
|
||||
{"lz4", 0, lz4_compress_zfs, lz4_decompress_zfs, NULL},
|
||||
{"zstd", ZIO_ZSTD_LEVEL_DEFAULT, zstd_compress, zstd_decompress,
|
||||
zstd_decompress_level},
|
||||
{"zstd", ZIO_ZSTD_LEVEL_DEFAULT, zfs_zstd_compress,
|
||||
zfs_zstd_decompress, zfs_zstd_decompress_level},
|
||||
};
|
||||
|
||||
uint8_t
|
||||
|
||||
Reference in New Issue
Block a user