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)
Wed, Apr 17, 7:23 AM
Unknown Object (File)
Mar 19 2024, 1:01 AM
Unknown Object (File)
Mar 19 2024, 1:01 AM
Unknown Object (File)
Feb 26 2024, 7:48 AM
Unknown Object (File)
Feb 19 2024, 7:31 PM
Unknown Object (File)
Jan 20 2024, 7:58 AM
Unknown Object (File)
Jan 15 2024, 10:40 PM
Unknown Object (File)
Jan 14 2024, 10:27 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.