freebsd-dev/sys/fs/nfsserver
Rick Macklem 7e44856e3a nfsd: Prepare the NFS server code to run in a vnet prison
This patch defines null macros that can be used to apply
the vnet macros for global variables and SYSCTL flags.
It also applies these macros to many of the global variables
and some of the SYSCTLs.  Since the macros do nothing, these
changes should not result in semantics changes, although the
changes are large in number.

The patch does change several global variables that were
arrays or structures to pointers to same.  For these variables,
modified initialization and cleanup code malloc's and free's
the arrays/structures.  This was done so that the vnet footprint
would be about 300bytes when the macros are defined as vnet macros,
allowing nfsd.ko to load dynamically.

I believe the comments in D37519 have been addressed, although
it has never been reviewed, due in part to the large size of the patch.
This is the first of a series of patches that will put D37519 in main.

Once everything is in main, the macros will be defined as front
end macros to the vnet ones.

MFC after:	3 months
Differential Revision:	https://reviews.freebsd.org/D37519
2023-02-11 15:51:19 -08:00
..
nfs_fha_new.c nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00
nfs_fha_new.h Re-organize the NFS file handle affinity code for the NFS server. 2020-04-14 00:01:26 +00:00
nfs_nfsdcache.c nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00
nfs_nfsdkrpc.c nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00
nfs_nfsdport.c nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -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: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00
nfs_nfsdstate.c nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -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