Page MenuHomeFreeBSD

stand/zfs: Limit flags further for ZFS
ClosedPublic

Authored by imp on Jul 24 2022, 3:25 AM.
Tags
None
Referenced Files
F102999185: D35887.id108443.diff
Tue, Nov 19, 4:05 PM
F102998382: D35887.id108481.diff
Tue, Nov 19, 3:51 PM
Unknown Object (File)
Fri, Nov 15, 2:16 PM
Unknown Object (File)
Fri, Nov 15, 2:13 PM
Unknown Object (File)
Fri, Nov 15, 4:00 AM
Unknown Object (File)
Thu, Nov 14, 10:06 PM
Unknown Object (File)
Wed, Nov 6, 4:06 PM
Unknown Object (File)
Mon, Oct 28, 8:03 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.