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)
Sun, May 4, 12:18 PM
Unknown Object (File)
Mar 26 2025, 7:30 AM
Unknown Object (File)
Mar 20 2025, 8:48 AM
Unknown Object (File)
Mar 20 2025, 5:57 AM
Unknown Object (File)
Mar 19 2025, 10:10 PM
Unknown Object (File)
Mar 15 2025, 9:10 PM
Unknown Object (File)
Mar 15 2025, 8:54 AM
Unknown Object (File)
Mar 8 2025, 10:46 PM
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.