diff options
Diffstat (limited to 'lib/libzpool')
-rw-r--r-- | lib/libzpool/Makefile.am | 3 | ||||
-rw-r--r-- | lib/libzpool/kernel.c | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index 50658bc67..9c1b81bf5 100644 --- a/lib/libzpool/Makefile.am +++ b/lib/libzpool/Makefile.am @@ -206,7 +206,8 @@ libzpool_la_LIBADD = \ $(abs_top_builddir)/lib/libicp/libicp.la \ $(abs_top_builddir)/lib/libunicode/libunicode.la \ $(abs_top_builddir)/lib/libzfs_core/libzfs_core.la \ - $(abs_top_builddir)/lib/libnvpair/libnvpair.la + $(abs_top_builddir)/lib/libnvpair/libnvpair.la \ + $(abs_top_builddir)/lib/libzstd/libzstd.la libzpool_la_LIBADD += $(LIBCLOCK_GETTIME) $(ZLIB_LIBS) -ldl diff --git a/lib/libzpool/kernel.c b/lib/libzpool/kernel.c index aedcbfa66..cba1d242b 100644 --- a/lib/libzpool/kernel.c +++ b/lib/libzpool/kernel.c @@ -41,6 +41,7 @@ #include <sys/utsname.h> #include <sys/zfs_context.h> #include <sys/zfs_onexit.h> +#include <sys/zstd/zstd.h> #include <sys/zvol.h> #include <zfs_fletcher.h> #include <zlib.h> @@ -836,6 +837,8 @@ kernel_init(int mode) system_taskq_init(); icp_init(); + zstd_init(); + spa_init((spa_mode_t)mode); fletcher_4_init(); @@ -849,6 +852,8 @@ kernel_fini(void) fletcher_4_fini(); spa_fini(); + zstd_fini(); + icp_fini(); system_taskq_fini(); |