Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation and Context
#16047 notes that include/os/freebsd/spl/rpc/xdr.h carried an (apparently) incompatible license.
Closes #16047.
Description
While looking into it, it seems that this file is actually unnecessary these days - FreeBSD's kernel XDR has
XDR_CONTROL
,xdrmem_control
andXDR_GET_BYTES_AVAIL
, while userspace hasXDR_CONTROL
andxdrmem_control
, and our implementation ofXDR_GET_BYTES_AVAIL
for libspl works nicely with it. So this removes that file outright.To keep the includes in nvpair.c tidy, I've made a few small adjustments to the Linux headers. By definition,
rpc/types.h
providesbool_t
and is included beforerpc/xdr.
h, so I've createdrpc/types.
h for Linux. This isn't necessary for userspace; both FreeBSD native and tirpc on Linux already have these headers set up correctly.How Has This Been Tested?
Compile check and basic tests to see if nvlists go back and forth ok (mostly just running various
zpool
/zfs
commands.Ran
xattr
test suite on Linux; since SAs are XDR-encoded (I think), this seemed like an ok sanity check.Types of changes
Checklist:
Signed-off-by
.