Page MenuHomeFreeBSD

stand/zfs: Limit flags further for ZFS
ClosedPublic

Authored by imp on Jul 24 2022, 3:25 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 22, 3:18 PM
Unknown Object (File)
Tue, Aug 19, 8:49 AM
Unknown Object (File)
Thu, Aug 14, 10:31 AM
Unknown Object (File)
Jul 21 2025, 1:00 AM
Unknown Object (File)
Jul 17 2025, 3:03 AM
Unknown Object (File)
Jul 7 2025, 6:14 AM
Unknown Object (File)
Jul 5 2025, 11:27 PM
Unknown Object (File)
Jul 1 2025, 7:24 AM
Subscribers

Details

Summary

Constrain CFLAGS for ZFS: don't add anything globally. Add the includes
to only the files that need them. Add -DHAS_ZSTD_ZFS to zfs.c (which
includes zfsimpl.c which includes zfssubr.c both of which need this
defined). Also add it to efi/boot1/Makefile since zfs_module.c also
includes zfsimple.c.

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, 3:25 AM
imp added reviewers: jrtc27, jhb, tsoome, allanjude.

Remove the non-libsa changes... If these defines are needed, I'll add them in a
subsequent commit. These changes don't change the CFLAGS for these directories.

This revision is now accepted and ready to land.Jul 24 2022, 7:29 AM

Turns out, only zfs.c needs the cddl directory. Note to self... we may want to
move that under /stand for better grepping, etc since it's only used for the
bootloader (and now/soon makefs) so some thought is needed.

This revision now requires review to proceed.Jul 24 2022, 4:51 PM
This revision is now accepted and ready to land.Jul 24 2022, 5:03 PM
This revision was automatically updated to reflect the committed changes.