2018-07-24 13:17:40 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2019-04-25 20:48:25 +00:00
|
|
|
SHLIBDIR?= /lib
|
|
|
|
|
2019-04-22 13:45:08 +00:00
|
|
|
.include <src.opts.mk>
|
|
|
|
|
2022-07-22 08:43:39 +00:00
|
|
|
PACKAGE= zfs
|
2018-07-24 13:17:40 +00:00
|
|
|
LIB= be
|
|
|
|
SHLIB_MAJOR= 1
|
|
|
|
SHLIB_MINOR= 0
|
2018-07-24 15:42:23 +00:00
|
|
|
|
2018-07-24 13:17:40 +00:00
|
|
|
SRCS= be.c be_access.c be_error.c be_info.c
|
|
|
|
INCS= be.h
|
|
|
|
MAN= libbe.3
|
2020-10-18 23:58:40 +00:00
|
|
|
MLINKS+= libbe.3 be_activate.3
|
|
|
|
MLINKS+= libbe.3 be_active_name.3
|
|
|
|
MLINKS+= libbe.3 be_active_path.3
|
|
|
|
MLINKS+= libbe.3 be_create_depth.3
|
|
|
|
MLINKS+= libbe.3 be_create_from_existing_snap.3
|
|
|
|
MLINKS+= libbe.3 be_create_from_existing.3
|
|
|
|
MLINKS+= libbe.3 be_create.3
|
|
|
|
MLINKS+= libbe.3 be_deactivate.3
|
|
|
|
MLINKS+= libbe.3 be_destroy.3
|
|
|
|
MLINKS+= libbe.3 be_exists.3
|
|
|
|
MLINKS+= libbe.3 be_export.3
|
|
|
|
MLINKS+= libbe.3 be_get_bootenv_props.3
|
|
|
|
MLINKS+= libbe.3 be_get_dataset_props.3
|
|
|
|
MLINKS+= libbe.3 be_get_dataset_snapshots.3
|
|
|
|
MLINKS+= libbe.3 be_import.3
|
|
|
|
MLINKS+= libbe.3 be_is_auto_snapshot_name.3
|
|
|
|
MLINKS+= libbe.3 be_mount.3
|
|
|
|
MLINKS+= libbe.3 be_mounted_at.3
|
|
|
|
MLINKS+= libbe.3 be_nextboot_name.3
|
|
|
|
MLINKS+= libbe.3 be_nextboot_path.3
|
|
|
|
MLINKS+= libbe.3 be_nicenum.3
|
|
|
|
MLINKS+= libbe.3 be_prop_list_alloc.3
|
|
|
|
MLINKS+= libbe.3 be_prop_list_free.3
|
|
|
|
MLINKS+= libbe.3 be_rename.3
|
|
|
|
MLINKS+= libbe.3 be_root_concat.3
|
|
|
|
MLINKS+= libbe.3 be_root_path.3
|
|
|
|
MLINKS+= libbe.3 be_snapshot.3
|
|
|
|
MLINKS+= libbe.3 be_unmount.3
|
|
|
|
MLINKS+= libbe.3 be_validate_name.3
|
|
|
|
MLINKS+= libbe.3 be_validate_snap.3
|
|
|
|
MLINKS+= libbe.3 libbe_close.3
|
|
|
|
MLINKS+= libbe.3 libbe_errno.3
|
|
|
|
MLINKS+= libbe.3 libbe_error_description.3
|
|
|
|
MLINKS+= libbe.3 libbe_init.3
|
|
|
|
MLINKS+= libbe.3 libbe_print_on_error.3
|
2018-07-24 13:17:40 +00:00
|
|
|
|
|
|
|
LIBADD+= zfs
|
loader: zfs should support bootonce an nextboot
bootonce feature is temporary, one time boot, activated by
"bectl activate -t BE", "bectl activate -T BE" will reset the bootonce flag.
By default, the bootonce setting is reset on attempt to boot and the next
boot will use previously active BE.
By setting zfs_bootonce_activate="YES" in rc.conf, the bootonce BE will
be set permanently active.
bootonce dataset name is recorded in boot pool labels, bootenv area.
in case of nextboot, the nextboot_enable boolean variable is recorded in
freebsd:nvstore nvlist, also stored in boot pool label bootenv area.
On boot, the loader will process /boot/nextboot.conf if nextboot_enable
is "YES", and will set nextboot_enable to "NO", preventing /boot/nextboot.conf
processing on next boot.
bootonce and nextboot features are usable in both UEFI and BIOS boot.
To use bootonce/nextboot features, the boot loader needs to be updated on disk;
if loader.efi is stored on ESP, then ESP needs to be updated and
for BIOS boot, stage2 (zfsboot or gptzfsboot) needs to be updated
(gpart or other tools).
At this time, only lua loader is updated.
Sponsored by: Netflix, Klara Inc.
Differential Revision: https://reviews.freebsd.org/D25512
2020-09-21 09:01:10 +00:00
|
|
|
LIBADD+= nvpair
|
|
|
|
LIBADD+= spl
|
|
|
|
LIBADD+= zfsbootenv
|
Merge OpenZFS support in to HEAD.
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
2020-08-25 02:21:27 +00:00
|
|
|
|
|
|
|
CFLAGS+= -DIN_BASE -DHAVE_RPC_TYPES
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libspl/include/os/freebsd
|
2021-06-08 17:02:21 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/lib/libzfs
|
Merge OpenZFS support in to HEAD.
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
2020-08-25 02:21:27 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/sys
|
2018-07-24 13:17:40 +00:00
|
|
|
CFLAGS+= -I${SRCTOP}/cddl/compat/opensolaris/include
|
Merge OpenZFS support in to HEAD.
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
2020-08-25 02:21:27 +00:00
|
|
|
CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
|
|
|
|
CFLAGS+= -DHAVE_ISSETUGID
|
2022-01-22 22:05:15 +00:00
|
|
|
CFLAGS.be.c= -Wno-cast-qual
|
|
|
|
CFLAGS.be_access.c= -Wno-cast-qual
|
|
|
|
CFLAGS.be_error.c= -Wno-cast-qual
|
|
|
|
CFLAGS.be_info.c= -Wno-cast-qual
|
2018-07-24 13:17:40 +00:00
|
|
|
|
2019-04-22 13:45:08 +00:00
|
|
|
HAS_TESTS= YES
|
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
|
|
|
|
2018-07-24 13:17:40 +00:00
|
|
|
.include <bsd.lib.mk>
|