9e5787d228
The primary benefit is maintaining a completely shared code base with the community allowing FreeBSD to receive new features sooner and with less effort. I would advise against doing 'zpool upgrade' or creating indispensable pools using new features until this change has had a month+ to soak. Work on merging FreeBSD support in to what was at the time "ZFS on Linux" began in August 2018. I first publicly proposed transitioning FreeBSD to (new) OpenZFS on December 18th, 2018. FreeBSD support in OpenZFS was finally completed in December 2019. A CFT for downstreaming OpenZFS support in to FreeBSD was first issued on July 8th. All issues that were reported have been addressed or, for a couple of less critical matters there are pull requests in progress with OpenZFS. iXsystems has tested and dogfooded extensively internally. The TrueNAS 12 release is based on OpenZFS with some additional features that have not yet made it upstream. Improvements include: project quotas, encrypted datasets, allocation classes, vectorized raidz, vectorized checksums, various command line improvements, zstd compression. Thanks to those who have helped along the way: Ryan Moeller, Allan Jude, Zack Welch, and many others. Sponsored by: iXsystems, Inc. Differential Revision: https://reviews.freebsd.org/D25872
56 lines
1.1 KiB
Makefile
56 lines
1.1 KiB
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PROG= fstyp
|
|
SRCS= apfs.c cd9660.c exfat.c ext2fs.c fstyp.c geli.c hammer.c \
|
|
hammer2.c hfsplus.c msdosfs.c ntfs.c ufs.c
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
SRCS += zfs.c
|
|
.endif
|
|
|
|
MAN= fstyp.8
|
|
|
|
WARNS?= 2
|
|
|
|
.if ${MK_ICONV} == "yes"
|
|
CFLAGS+= -DWITH_ICONV
|
|
.endif
|
|
|
|
.include <bsd.endian.mk>
|
|
|
|
.if ${TARGET_ENDIANNESS} == 1234
|
|
HAS_TESTS=
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
.endif
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
IGNORE_PRAGMA= YES
|
|
|
|
WARNS?= 0
|
|
CFLAGS.zfs.c+= -DIN_BASE
|
|
CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/include
|
|
CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
|
|
CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
|
|
CFLAGS.zfs.c+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
|
|
CFLAGS.zfs.c+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
|
|
CFLAGS.zfs.c+= -DHAVE_ISSETUGID
|
|
CFLAGS.zfs.c+= -include ${SRCTOP}/sys/modules/zfs/zfs_config.h
|
|
.endif
|
|
|
|
.for src in ${SRCS}
|
|
.if ${src} != "zfs.c"
|
|
CFLAGS.${src}+=-I${SRCTOP}/sys
|
|
.endif
|
|
.endfor
|
|
|
|
|
|
LIBADD= geom md ufs
|
|
|
|
.if ${MK_ZFS} != "no"
|
|
LIBADD+=nvpair zfs spl
|
|
.endif
|
|
|
|
.include <bsd.prog.mk>
|