]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfs_fha_new: Fix nfs_fha_new so that sysctls work in prisons
authorRick Macklem <rmacklem@FreeBSD.org>
Wed, 1 Mar 2023 23:25:35 +0000 (15:25 -0800)
committerRick Macklem <rmacklem@FreeBSD.org>
Wed, 1 Mar 2023 23:25:35 +0000 (15:25 -0800)
commita90b47abcbdbd48c68fbf7c407546293479056de
tree7f157b368101cea790dcf90cfb9d0223e1414d22
parente78dc78e517ae36143973dd2675da8ec93c4951e
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.

Reviewed by: glebius
MFC after: 3 months
Differential Revision: https://reviews.freebsd.org/D38748
sys/fs/nfsserver/nfs_fha_new.c
sys/fs/nfsserver/nfs_fha_new.h