FreeBSD src
Go to file
Pawel Jakub Dawidek 9eec299fab Some major cleanups.
Keeping consumers open when device is closed is very hard. We need to
open consumers sometimes to update metadata, etc.
Many hacks was introduced in the past to made it possible. You cannot
be sure that you can open consumer for writing always, even if you think
it should be allowed. If one of the mirror components is for example da0
and you try to open it, you can get EPERM when da0s1 is opened for reading
(because BSD class opens consumers (da0) with an extra 'e' bit set).
Waiting for the events queue to be empty may do the trick, but it makes
code much uglier (as you cannot always call g_waitidle()), it doesn't
solve all edge cases and it can introduce deadlocks if there are events
in the queue that wait for gmirror.

I removed those hacks. Now all consumers are open r1w1e1 always, even if
device is closed. Maybe it is less clean from GEOM perspective, but simpify
code a lot and make it much more reliable.
The only issue was retaste event which is sent when we close consumers
opened for writing. I ignore retaste event by not detaching consumer
immediately (so retaste event is not send to my class) and sending event
right after it to detach and destroy consumer.
2004-12-19 23:12:00 +00:00
bin o Add a missed "." . 2004-12-02 13:13:27 +00:00
contrib Revert rev 1.66. This file needs to track its upstream source. 2004-12-17 16:29:54 +00:00
crypto Better Xlist command line. 2004-10-28 16:13:28 +00:00
etc In the ethernet-nic-regex: 2004-12-19 00:50:07 +00:00
games From Richard W. Hamming ``You and Your Research'' 2004-12-11 21:57:27 +00:00
gnu Uncomment an upcoming 5.4-RELEASE. 2004-12-18 07:20:33 +00:00
include According to the information on: 2004-12-10 15:24:40 +00:00
kerberos5 Introduce the PRECIOUSPROG knob in bsd.prog.mk, similar 2004-11-03 18:01:21 +00:00
lib Use a generic way to back threads out of wait queues when handling 2004-12-18 18:07:37 +00:00
libexec Do a small style(9) fix before I'm hacking the code itself. 2004-12-16 07:27:28 +00:00
release Autogenerate device listings for umass(4). 2004-12-17 18:37:58 +00:00
rescue Add missing dependencies of $(OUTPUTS) on source makefiles. 2004-12-18 17:30:53 +00:00
sbin Mark mknod(8) as deprecated. Add text in the 'COMPATIBILITY' section 2004-12-17 14:36:02 +00:00
secure Update for OpenSSH 3.9p1. 2004-10-28 16:04:23 +00:00
share We have an informative ng_source.4 manpage, which is not installed. 2004-12-19 16:03:06 +00:00
sys Some major cleanups. 2004-12-19 23:12:00 +00:00
tools Change terminal state, not terminal type 2004-12-18 16:31:21 +00:00
usr.bin Add myself. 2004-12-19 22:21:41 +00:00
usr.sbin Allocate an additional white space in a username column for 2004-12-19 18:02:45 +00:00
COPYRIGHT
MAINTAINERS add myself as the contact for the pkg_install tools 2004-11-30 20:04:47 +00:00
Makefile Previous revision didn't fix all cases. For example, 2004-12-16 19:55:57 +00:00
Makefile.inc1 Minor tweaks in "make update" comments. 2004-12-17 10:11:33 +00:00
README
UPDATING Mention the necessity for ``enable echo'' in ppp(8). 2004-12-13 17:52:10 +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/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.

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.

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