FreeBSD src
Go to file
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
.cirrus-ci Cirrus-CI: add some timing info on pkg install failure 2021-08-04 15:02:00 -04:00
.github .github: Restrict permissions on cross-build jobs. 2023-02-09 12:12:17 -08:00
bin man: some typesetting and style fixes for recent additions 2023-02-11 19:23:54 +02:00
cddl pkgbase: Create a FreeBSD-ctf-tools package 2023-02-08 08:48:58 +01:00
contrib Merge bmake-20230208 2023-02-09 17:23:23 -08:00
crypto ssh: fix SIZEOF_TIME_T #define on i386 2023-02-08 18:34:09 -05:00
etc Merge llvm-project release/15.x llvmorg-15.0.7-0-g8dfdcc7b7bf6 2023-02-08 20:05:25 +01:00
gnu gnu diff3: apply patch to committed src, rather than at build time 2022-11-13 21:33:40 -05:00
include Revert "stdlib.h: Fix qsort_r compatibility with GCC 12." 2023-01-26 16:28:03 -08:00
kerberos5 kerberos5: retire now-unused MIPS support 2022-11-02 13:16:18 -04:00
lib getopt_long(3): note an inconsistency with getopt(3) in BUGS 2023-02-10 23:32:50 -06:00
libexec rc: syscons: Add UEFI special case 2023-02-08 08:53:20 +01:00
release pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
rescue rescue: Fix link order of SSL libraries and fetch. 2023-02-02 09:23:02 -08:00
sbin pkgbase: Create a FreeBSD-console-tools package 2023-02-08 08:52:40 +01:00
secure OpenSSL: Regen manual pages for OpenSSL 1.1.1t 2023-02-07 14:01:15 -05:00
share man: some typesetting and style fixes for recent additions 2023-02-11 19:23:54 +02:00
stand lua: Export loaded modules env vars via environment 2023-02-09 11:56:20 -07:00
sys nfsd: Prepare the NFS server code to run in a vnet prison 2023-02-11 15:51:19 -08:00
targets retire sconfig(8) ce(4)/cp(4) configuration tool 2022-12-13 15:25:13 -05:00
tests tarfs: Fix issues revealed by static analysis and testing. 2023-02-09 17:35:47 +00:00
tools stress2: Fix compiler warning about unused variables 2023-02-11 06:36:39 +01:00
usr.bin Merge bmake-20230208 2023-02-09 17:23:23 -08:00
usr.sbin daemon: add long_opts 2023-02-09 22:36:07 -06:00
.arcconfig arcanist: use FreeBSD/git project repository instead of FreeBSD/svn 2022-08-23 14:16:41 +00:00
.arclint arc lint: ignore /tests/ in chmod 2017-12-19 03:38:06 +00:00
.cirrus.yml Cirrus-CI: switch GCC job to GCC 12 2023-01-27 15:02:34 -05:00
.clang-format clang-format: Add bitset loop macros 2021-09-21 12:08:01 -04:00
.git-blame-ignore-revs Add git-blame ignore file 2023-01-23 15:27:25 -05:00
.gitattributes Add a basic clang-format configuration file 2019-06-07 15:23:52 +00:00
.gitignore gitignore: whack dead architectures 2022-11-23 01:18:03 +00:00
COPYRIGHT Happy New Year 2023! 2023-01-01 13:44:43 +08:00
LOCKS LOCKS: update current locks 2018-06-09 03:08:04 +00:00
MAINTAINERS Remove myself from bhyve maintenance; ENOTIME. 2021-11-19 07:09:30 +10:00
Makefile universe: Switch GCC toolchains to GCC 12. 2023-01-27 13:35:13 -08:00
Makefile.inc1 buildworld: drop config(8) dependencies from bootstrap 2023-02-08 23:19:23 -06:00
Makefile.libcompat libcompat: avoid installing include files twice 2022-11-16 19:15:20 -05:00
Makefile.sys.inc AUTO_OBJ: For all top-level targets enforce using an OBJDIR. 2017-12-05 21:29:47 +00:00
ObsoleteFiles.inc Add libclang_rt files for powerpc64le to ObsoleteFiles.inc 2023-02-10 20:10:44 +01:00
README.md Vendor import of OpenSSH 9.2p1 2023-02-05 13:04:12 -05:00
RELNOTES Note upgrade to sendmail 8.17.1 2023-02-01 02:23:02 +00:00
UPDATING UPDATING: add UPDATING section for HUAWEI 3G/4G Devices change 2023-02-10 16:35:39 -07:00

FreeBSD Source:

This is the top level of the FreeBSD source directory.

FreeBSD is an operating system used to power modern servers, desktops, and embedded platforms. A large community has continually developed it for more than thirty years. Its advanced networking, security, and storage features have made FreeBSD the platform of choice for many of the busiest web sites and most pervasive embedded networking and storage devices.

For copyright information, please see the file COPYRIGHT in this directory. Additional copyright information also exists for some sources in this tree - please see the specific source directories for more information.

The Makefile in this directory supports a number of targets for building components (or all) of the FreeBSD source tree. See build(7), config(8), FreeBSD handbook on building userland, and Handbook for kernels for more information, including setting make(1) variables.

For information on the CPU architectures and platforms supported by FreeBSD, see the FreeBSD website's Platforms page.

Source Roadmap:

Directory Description
bin System/user commands.
cddl Various commands and libraries under the Common Development and Distribution License.
contrib Packages contributed by 3rd parties.
crypto Cryptography stuff (see crypto/README).
etc Template files for /etc.
gnu Commands and libraries under the GNU General Public License (GPL) or Lesser General Public License (LGPL). Please see gnu/COPYING and gnu/COPYING.LIB for more information.
include System include files.
kerberos5 Kerberos5 (Heimdal) package.
lib System libraries.
libexec System daemons.
release Release building Makefile & associated tools.
rescue Build system for statically linked /rescue utilities.
sbin System commands.
secure Cryptographic libraries and commands.
share Shared resources.
stand Boot loader sources.
sys Kernel sources (see sys/README.md).
targets Support for experimental DIRDEPS_BUILD
tests Regression tests which can be run by Kyua. See tests/README for additional information.
tools Utilities for regression testing and miscellaneous tasks.
usr.bin User commands.
usr.sbin System administration commands.

For information on synchronizing your source tree with one or more of the FreeBSD Project's development branches, please see FreeBSD Handbook.