aboutsummaryrefslogtreecommitdiff
path: root/cddl/lib/libzpool
diff options
context:
space:
mode:
authorRyan Moeller <freqlabs@FreeBSD.org>2020-08-26 19:03:15 +0000
committerRyan Moeller <freqlabs@FreeBSD.org>2020-08-26 19:03:15 +0000
commit507cf10ad5c12030cf811c85f9eb3ead46747d9b (patch)
tree1c7a48e3131092bd7c7cc0870aa8e14e22a4f92b /cddl/lib/libzpool
parent67c97ec2d606a50f2c288408773a53ad7fb8beee (diff)
downloadsrc-507cf10ad5c12030cf811c85f9eb3ead46747d9b.tar.gz
src-507cf10ad5c12030cf811c85f9eb3ead46747d9b.zip
Move zstd sources from libzfs to libzpool
zstd is kernel code that was not supposed to be in libzfs. libzpool provides userland shims for kernel code and is where the zstd code needs to be included. Reported by: John Kennedy Discussed with: mmacy Sponsored by: iXsystems, Inc.
Notes
Notes: svn path=/head/; revision=364830
Diffstat (limited to 'cddl/lib/libzpool')
-rw-r--r--cddl/lib/libzpool/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/cddl/lib/libzpool/Makefile b/cddl/lib/libzpool/Makefile
index 536ad490fb2d..5edeee86d4e6 100644
--- a/cddl/lib/libzpool/Makefile
+++ b/cddl/lib/libzpool/Makefile
@@ -8,6 +8,9 @@ ZFSTOP= ${SRCTOP}/sys/contrib/openzfs
.PATH: ${ZFSTOP}/module/unicode
# LUA_SRCS
.PATH: ${ZFSTOP}/module/lua
+# ZSTD_SRCS
+.PATH: ${ZFSTOP}/module/zstd
+.PATH: ${ZFSTOP}/module/zstd/lib
.PATH: ${ZFSTOP}/module/os/linux/zfs
@@ -44,6 +47,7 @@ KERNEL_C = \
zfs_namecheck.c \
zfs_prop.c \
zfs_uio.c \
+ zfs_zstd.c \
zpool_prop.c \
zprop_common.c \
abd.c \
@@ -167,6 +171,7 @@ KERNEL_C = \
zio_inject.c \
zle.c \
zrlock.c \
+ zstd.c \
zthr.c
ARCH_C =
@@ -252,4 +257,7 @@ CSTD= c99
CFLAGS+= -g -DDEBUG=1
+CFLAGS.zfs_zstd.c= -Wno-cast-qual -Wno-pointer-arith
+CFLAGS.zstd.c+= -fno-tree-vectorize
+
.include <bsd.lib.mk>