freebsd kernel with SKQ
Go to file
marcel d8a11be2f4 Provide a means for loaders to control which file system to use. This
to counteract the default behaviour of always trying each and every
file system until one succeeds, or the open fails. The problem with the
loader is that we've implemented features based on this behavior. The
handling of compressed files is a good example of this. However, it is
in general highly undesirable to not have a one-time probe (or taste
in the geom lingo), followed by something similar to a mount whenever
we (first) read from a device. Everytime we go to the same device, we
can reasonably assume it (still) has the same file system. For file
systems that need to do far more that a trivial read of a super block,
not having something similar to a mount operation is disastrous from
a performance (and thus usability) perspective.

But, again, since we've implemented features based on this stateless
approach, things can get complicated quickly if and when we want to
change this. And yet, we sometimes do need stateful behaviour.

For this reason, this change simply introduces exclusive_file_system.
When set to the fsops of the file system to use, the open call will
only try this file system. Setting it to NULL restores the default
behaviour. It's a low-cost (low-brow?) approach to provide enough
control without re-implementing the guts of the loader.

A good example of when this is useful is when we're trying to load
files out of a container (say, a software packaga) that itself lives
on a file system or is fetched over the network. While opening the
container can be done in the normal stateless manner, once it is
opened, subsequent opens should only consider the container.

Obtained from:	Juniper Networks, Inc.
2014-07-30 16:08:16 +00:00
bin sh: Allow arbitrarily large numbers in break and continue. 2014-07-20 20:29:09 +00:00
cddl MFV r269223: 2014-07-29 08:42:22 +00:00
contrib Add FreeBSD to the list of environments that needs to handle R_ARM_TARGET2 2014-07-22 20:49:58 +00:00
crypto Merge OpenSSL 1.0.1h. 2014-06-09 05:50:57 +00:00
etc Add the mtree entry for yacc tests 2014-07-17 22:26:24 +00:00
games Update the freebsd-tips example to use drill instead of dig since bind is no longer in base 2014-07-25 14:47:44 +00:00
gnu Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
include Add re-entrant versions of the hash functions based on the GNU api. 2014-07-21 15:22:48 +00:00
kerberos5 Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
lib Provide a means for loaders to control which file system to use. This 2014-07-30 16:08:16 +00:00
libexec Don't save entropy inside jails. 2014-07-22 06:40:27 +00:00
release Fake out the deprecation of XDEV and XDEV_ARCH by 2014-07-23 22:35:23 +00:00
rescue In r232153, libarchive 3.0.3 was imported, replacing the archive_hash.h 2014-07-26 15:33:20 +00:00
sbin When restoring a UFS dump onto a ZFS filesystem, an assertion in 2014-07-30 14:52:04 +00:00
secure Replace all uses of libncurses and libtermcap with their wide character 2014-07-17 18:24:34 +00:00
share Remove trailing comma from ending Xref 2014-07-30 04:48:56 +00:00
sys files.mips: the kbd driver is used by vt(4) too 2014-07-30 15:43:17 +00:00
tests Fix unintended KBI change from r264905. Add _fib versions of 2014-05-29 21:03:49 +00:00
tools Add a 'raw' parameter to the 'modinfo' subcommand. This is handy when 2014-07-26 00:51:45 +00:00
usr.bin Fix relative numerical addressing (addr,+N). 2014-07-30 14:46:39 +00:00
usr.sbin mdoc: kill EOL whitespace. 2014-07-29 19:49:27 +00:00
.arcconfig Prevent arc commands from overwriting history 2014-06-06 08:05:34 +00:00
.arclint arc: add linting for python files 2014-06-02 00:21:42 +00:00
COPYRIGHT Bump copyright year. 2013-12-31 12:18:10 +00:00
LOCKS Explicitly require Security Officer's approval for kernel PRNG bits. 2013-09-17 14:19:05 +00:00
MAINTAINERS Remove send-pr, the supported interface to submit bugs is now via 2014-06-14 20:36:32 +00:00
Makefile Add compat shims for XDEV and XDEV_ARCH so we don't break all the 2014-07-24 06:16:51 +00:00
Makefile.inc1 Deprecate the use of XDEV and XDEV_ARCH and just use TARGET/TARGET_ARCH 2014-07-23 22:18:43 +00:00
ObsoleteFiles.inc Add VOP_GETVOBJECT.9 to obsolete files, un-xref. 2014-07-29 13:40:33 +00:00
README
UPDATING Make mmap() of the console device when using ofwfb work like other supported 2014-07-29 23:11:05 +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 ``world''
target should only be used in cases where the source tree has not
changed from the currently running version.  See:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html
for more information, including setting make(1) variables.

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/doc/en_US.ISO8859-1/books/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 might need to build
world before.  More information is available in the handbook.

The sample kernel configuration files reside in the sys/<arch>/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.

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.

games		Amusements.

gnu		Various commands and libraries under the GNU Public License.
		Please see gnu/COPYING* 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.

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/doc/en_US.ISO8859-1/books/handbook/synching.html