Go to file
Adrian Chadd f3a90da995 Reviewed by: jlemon
An initial tidyup of the mount() syscall and VFS mount code.

This code replaces the earlier work done by jlemon in an attempt to
make linux_mount() work.

* the guts of the mount work has been moved into vfs_mount().

* move `type', `path' and `flags' from being userland variables into being
  kernel variables in vfs_mount(). `data' remains a pointer into
  userspace.

* Attempt to verify the `type' and `path' strings passed to vfs_mount()
  aren't too long.

* rework mount() and linux_mount() to take the userland parameters
  (besides data, as mentioned) and pass kernel variables to vfs_mount().
  (linux_mount() already did this, I've just tidied it up a little more.)

* remove the copyin*() stuff for `path'. `data' still requires copyin*()
  since its a pointer into userland.

* set `mount->mnt_statf_mntonname' in vfs_mount() rather than in each
  filesystem.  This variable is generally initialised with `path', and
  each filesystem can override it if they want to.

* NOTE: f_mntonname is intiailised with "/" in the case of a root mount.
2001-03-01 21:00:17 +00:00
bin The 'X' permission symbol is specified by POSIX.2, so don't say that it 2001-03-01 19:03:01 +00:00
contrib Fixed undesirable hyphenation on the dash of a flag argument. 2001-03-01 12:46:29 +00:00
crypto Resolve conflicts 2001-02-18 03:23:30 +00:00
etc Add code to turn on the entropy harvesting sysctl's as early as possible 2001-03-01 13:19:49 +00:00
games Prepare for mdocNG. 2001-02-26 09:05:48 +00:00
gnu Allow "NOSHARED" to be overridden. 2001-02-28 10:46:50 +00:00
include Hide the definition of struct __sFILEX and add the needed 2001-03-01 05:22:14 +00:00
kerberos5 try hard to make sure this does not get build as a shared library 2001-02-24 02:10:32 +00:00
kerberosIV add strcollect.c to SRCS (new file in 1.0.5) 2000-12-29 23:44:24 +00:00
lib Hide the definition of struct __sFILEX and add the needed 2001-03-01 05:22:14 +00:00
libexec Change the read-only reply to "550 Permission denied.". 2001-02-19 21:51:26 +00:00
release The HEAD now has sendmail 8.11.3 2001-02-28 01:51:13 +00:00
sbin Use _PATH_DEV. 2001-02-28 17:50:29 +00:00
secure Update the list of OpenSSL manpages (now contains many more describing 2001-02-25 21:42:12 +00:00
share Update the BUGS section. 2001-03-01 12:58:54 +00:00
sys Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
tools Preceed/preceeding are not english words. Use precede and preceding. 2001-02-18 10:43:53 +00:00
usr.bin Include -DDEFSHELL=1 in Makefile.dist so people boostrapping will 2001-03-01 06:26:32 +00:00
usr.sbin Fix brokeness in rev. 1.6: this manpage appeared in NetBSD 1.4. 2001-03-01 17:09:01 +00:00
COPYRIGHT
Makefile Cosmetic fix: Document targets at the top in a uniform way. 2001-02-13 07:47:41 +00:00
Makefile.inc1 MACHINE_ARCH is the target arch to crossbuild to, not TARGET_ARCH. 2001-02-22 22:58:24 +00:00
Makefile.upgrade
README Slightly improve the description of "crypto". "DES" is a subset of 2000-08-31 17:59:01 +00:00
UPDATING It is now safe to go back into the water. 2001-02-28 05:45:16 +00:00

This is the top level of the FreeBSD source directory.  This file
was last revised on:
$FreeBSD$

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, the most
commonly used one being ``world'', which rebuilds and installs
everything in the FreeBSD system from the source tree except the
kernel, the kernel-modules and the contents of /etc.  The
``buildkernel'' and ``installkernel'' targets build and install
the kernel and the modules (see below).  Please see the top of
the Makefile in this directory for more information on the
standard build targets and compile-time flags.

Building a kernel is a somewhat more involved process, documentation
for which can be found at:
   http://www.freebsd.org/handbook/kernelconfig.html
And in the config(8) man page.
Note: If you want to build and install the kernel with the
``buildkernel'' and ``installkernel'' targets, you have to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/i386/conf
sub-directory (assuming that you've installed the kernel sources), the
file named GENERIC being the one used to build your initial installation
kernel.  The file NOTES contains entries and documentation for all possible
devices, not just those commonly used.  It is the successor of the ancient
LINT file, but in contrast to LINT, it is not buildable as a kernel but a
pure reference and documentation file.


Source Roadmap:
---------------
bin		System/User commands.

contrib		Packages contributed by 3rd parties.

crypto		Cryptography stuff (see crypto/README).

etc		Template files for /etc

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* for more information.

include		System include files.

kerberosIV	Kerberos package.

lib		System libraries.

libexec		System daemons.

release		Release building Makefile & associated tools.

sbin		System commands.

secure		Cryptographic libraries and commands.

share		Shared resources.

sys		Kernel sources.

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:

  http://www.freebsd.org/handbook/synching.html