freebsd-dev/sys/fs/nfsserver
Rick Macklem ed03776ca7 nfsd: Enable the NFSD_VNET vnet front end macros
Several commits have added front end macros for the vnet
macros to the NFS server, krpc and kgssapi.  These macros
are now null, but this patch changes them to front end
the vnet macros.

With this commit, many global variables in the code become
vnet'd, so that nfsd(8), nfsuserd(8), rpc.tlsservd(8) and
gssd(8) can run in a vnet prison, once enabled.
To run the NFS server in a vnet prison still requires a
couple of patches (in D37741 and D38371) that allow mountd(8)
to export file systems from within a vnet prison.  Once
these are committed to main, a small patch to kern_jail.c
allowing "allow.nfsd" without VNET_NFSD defined will allow
the NFS server to run in a vnet prison.

One area that still needs to be settled is cleanup when a
prison is removed.  Without this, everything should work
except there will be a leak of malloc'd data and mutex locks
when a vnet prison is removed.

MFC after:	3 months
2023-02-18 14:59:36 -08:00
..
nfs_fha_new.c nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
nfs_fha_new.h nfsd: Get rid of useless "pool" field in nfs_fha_new.c 2023-02-17 07:34:40 -08:00
nfs_nfsdcache.c nfsd: Wrap nfsstatsv1_p in the NFSD_VNET() macro 2023-02-15 17:39:07 -08:00
nfs_nfsdkrpc.c nfsd: Fix initialization broken by 7344856e3a6d 2023-02-12 09:16:56 -08:00
nfs_nfsdport.c nfsd: Enable the NFSD_VNET vnet front end macros 2023-02-18 14:59:36 -08:00
nfs_nfsdserv.c nfsd: Fix handling of the error case for nfsvno_open 2023-02-08 13:08:51 -08:00
nfs_nfsdsocket.c nfsd: Wrap nfsstatsv1_p in the NFSD_VNET() macro 2023-02-15 17:39:07 -08:00
nfs_nfsdstate.c nfsd: Wrap nfsstatsv1_p in the NFSD_VNET() macro 2023-02-15 17:39:07 -08:00
nfs_nfsdsubs.c nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00