freebsd-nq/sys/cddl/boot/zfs
Warner Losh 1306a5dc07 stand/libsa: zfs use standard ZFS_EARLY stuff
Now that the minor issues preventing zfs.c from using CFLAGS_EARLY have
been fixed, use that mechanism like everything else that needs the
OpenZFS spl headers. This simplifies things somewhat. Update comments to
document why zfs.c is still special, though in different ways.

Note: We also use the fact that NEED_SOLARIS_BOOLEAN is only defined in
an environment where the solaris compat boolean stuff will be defined
prior to this point (eg, when we're building zfs.c in libsa), but not in
other environments (like when we're building mkimage and stand-alone
boot loaders that don't use libsa). These latter uses should be changed
to use the same ZFS compile env, but aren't as part of this commit.
This has to be done in the same change as the ZFS_EARLY change to not
break zfs.c building for one commit affecting bisectabiltiy.

Sponsored by:		Netflix
Reviewed by:		tsoome, delphij
Differential Revision:	https://reviews.freebsd.org/D35894
2022-07-24 16:53:36 -06:00
..
blake3_zfs.c stand: Add blake3 support to boot loader 2022-07-08 22:57:59 -06:00
blkptr.c
fletcher.c
gzip.c loader: add support for gzip compression 2022-06-09 20:54:30 +03:00
lzjb.c
README loader: add support for gzip compression 2022-06-09 20:54:30 +03:00
sha256.c stand/zfs: Fix const-qual warnings 2022-05-04 10:06:21 -04:00
skein_zfs.c
zfsimpl.h stand/libsa: zfs use standard ZFS_EARLY stuff 2022-07-24 16:53:36 -06:00
zfssubr.c zfs: Increase compatibility for different environments 2022-07-24 16:53:36 -06:00
zle.c

$FreeBSD$

This directory contains various files derived from CDDL sources that
are used by the ZFS bootstrap:

    fletcher.c			checksum support
    sha256.c			checksum support
    gzip.c			compression support
    lz4.c			compression support
    lzjb.c			compression support
    blkptr.c			ZFS embedded-data block pointers support
    zfssubr.c			checksum, compression and raidz support
    zfsimpl.h			mostly describing the physical layout

The files fletcher.c, lzjb.c, lz4.c, sha256.c and blkptr.c are largely identical
to the ZFS base code (with write support removed) and could be shared but that
might complicate future imports from Illumos.