HomeFreeBSD

nfs_fha_new: Fix nfs_fha_new so that sysctls work in prisons

Description

nfs_fha_new: Fix nfs_fha_new so that sysctls work in prisons

The sysctls were in "struct fha_params", making it impractical
to vnet them. This patch moves the sysctls out of "struct fha_params"
and vnet's them, so that they are available in vnet prisons
running nfsd(8). It also avoids the IS_DEFAULT_VNET() macros
in the VNET_SYSINIT() function.

(cherry picked from commit a90b47abcbdbd48c68fbf7c407546293479056de)

Details

Provenance
rmacklemAuthored on Mar 1 2023, 11:25 PM
Parents
rG4ee3d271b74d: nfsd: Add NFSD_VNET() macros to nfs_fha_new.c
Branches
Unknown
Tags
Unknown