Page MenuHomeFreeBSD

stand/libsa: zfs use standard ZFS_EARLY stuff
ClosedPublic

Authored by imp on Jul 24 2022, 5:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 7:23 AM
Unknown Object (File)
Mar 17 2024, 3:29 AM
Unknown Object (File)
Mar 17 2024, 3:24 AM
Unknown Object (File)
Mar 17 2024, 3:24 AM
Unknown Object (File)
Mar 17 2024, 3:24 AM
Unknown Object (File)
Mar 14 2024, 10:46 AM
Unknown Object (File)
Feb 28 2024, 6:37 PM
Unknown Object (File)
Feb 20 2024, 3:19 PM
Subscribers

Details

Summary

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 various
stand-alone boot loaders that don't use libsa for space reasons (though
they should be changed to use the same ZFS compile env in the fullness
of time). This has to be done in the same change as using the ZFS_EARLY
stuff for zfs.c to not break zfs.c building for one commit.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Jul 24 2022, 5:45 PM
This revision is now accepted and ready to land.Jul 24 2022, 7:27 PM

We have to do the boolean_t and ZFS_EARLY change at the same time
commit message updated locally.

This revision now requires review to proceed.Jul 24 2022, 8:07 PM
This revision is now accepted and ready to land.Jul 24 2022, 8:20 PM
This revision was automatically updated to reflect the committed changes.