aboutsummaryrefslogtreecommitdiff
path: root/stand/libsa/zfs/zfsimpl.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2020-10-12 22:19:07 +0000
committerWarner Losh <imp@FreeBSD.org>2020-10-12 22:19:07 +0000
commit2fec3ae8964c8864a9e75d6a2f0ed137ede489a7 (patch)
tree802281ee096b50f2ca9590873e19f4623fad0c6a /stand/libsa/zfs/zfsimpl.c
parente59db4685414e3fa23ac5c996d05708b678053ac (diff)
downloadsrc-2fec3ae8964c8864a9e75d6a2f0ed137ede489a7.tar.gz
src-2fec3ae8964c8864a9e75d6a2f0ed137ede489a7.zip
Add zstd support to the boot loader.
Add support to the _STANDALONE environment enough bits of the kernel that we can compile it. We still have a small zstd_shim.c since there were 3 items that were a bit hard to nail down and may be cleaned up in the future. These go hand in hand with a number of commits to sys/sys in the past weeks, should this need be MFCd. Discussed with: mmacy (in review and on IRC/Slack) Reviewed by: freqlabs (on openzfs repo) Differential Revision: https://reviews.freebsd.org/D26218
Notes
Notes: svn path=/head/; revision=366657
Diffstat (limited to 'stand/libsa/zfs/zfsimpl.c')
-rw-r--r--stand/libsa/zfs/zfsimpl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/stand/libsa/zfs/zfsimpl.c b/stand/libsa/zfs/zfsimpl.c
index 8b5cbc2feea9..0c2aa5ff3323 100644
--- a/stand/libsa/zfs/zfsimpl.c
+++ b/stand/libsa/zfs/zfsimpl.c
@@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
#include "zfsimpl.h"
#include "zfssubr.c"
+extern int zstd_init(void);
struct zfsmount {
const spa_t *spa;
@@ -170,6 +171,7 @@ zfs_init(void)
dnode_cache_buf = malloc(SPA_MAXBLOCKSIZE);
zfs_init_crc();
+ zstd_init();
}
static int