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)
Tue, Jun 2, 6:08 PM
Unknown Object (File)
Tue, May 26, 7:46 AM
Unknown Object (File)
Fri, May 22, 12:52 AM
Unknown Object (File)
Thu, May 21, 10:15 PM
Unknown Object (File)
Thu, May 21, 8:55 PM
Unknown Object (File)
Thu, May 21, 7:06 PM
Unknown Object (File)
Thu, May 21, 5:40 PM
Unknown Object (File)
Wed, May 20, 1:30 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.