FreeBSD src
Go to file
Kenneth D. Merry 0ba1e4d063 Add a callback to the ada(4) driver so that it knows when GEOM has released
references to it.

This is the functional equivalent to change r237518, which added this
functionality to the cd(4) and da(4) drivers.

This fix prevents a panic caused by GEOM calling adaopen() while the device
is going away.  We now keep the device around until GEOM has finished
cleaning up its state.

ata_da.c:	In adaregister(), add a d_gone callback to the GEOM disk
		structure registered for the ada driver.  Increment the
		peripheral reference count for GEOM.

		Add a new callback, adadiskgonecb(), that GEOM calls when
		it is done with its resources.  This callback releases the
		reference acquired in adaregister().

Submitted by:	Po-Li Soong
Sponsored by:	Spectra Logic
MFC After:	5 days
2013-04-10 22:12:21 +00:00
bin sh: Add const to nodesavestr(). 2013-04-07 16:28:36 +00:00
cddl ZFS expects a copyout of zfs_cmd_t on an ioctl error. Our sys_ioctl() 2013-04-09 22:27:44 +00:00
contrib Last remaining prototype issue that still hasn't been fixed upstream. 2013-04-09 13:16:11 +00:00
crypto Merge upstream patch to silence spurious "no such identity file" warnings. 2013-04-02 11:44:55 +00:00
etc Regenerate usb.conf 2013-04-06 17:25:17 +00:00
games Remove a reference to instant-server which has been removed from the 2013-03-21 12:42:25 +00:00
gnu Add FreeBSD 8.4. 2013-04-08 20:33:51 +00:00
include Add static/const keywords to the arrays. 2013-04-09 16:16:34 +00:00
kerberos5 Add -lheimntlm to LDADD directly. 2013-02-11 09:45:24 +00:00
lib o Provide function kvm_read_zpcpu() to access UMA_ZONE_PCPU allocations. 2013-04-10 20:26:53 +00:00
libexec Map libraries linked with -Ttext-segment=base_addr at base_addr. 2013-02-27 09:34:09 +00:00
release - Update hardware notes to reflect that amd64 is no longer "young"[1] 2013-03-28 22:52:42 +00:00
rescue Remove all legacy ATA code parts, not used since options ATA_CAM enabled in 2013-04-04 07:12:24 +00:00
sbin Prevent the creation of an unused variable. 2013-04-08 08:03:42 +00:00
secure Upgrade to OpenSSH 6.2p1. The most important new features are support 2013-03-22 17:55:38 +00:00
share Merge from projects/counters: counter(9). 2013-04-08 19:40:53 +00:00
sys Add a callback to the ada(4) driver so that it knows when GEOM has released 2013-04-10 22:12:21 +00:00
tools sh: Add a variation on builtins/eval4.0 where the cmdsubst returns 0. 2013-04-06 22:30:46 +00:00
usr.bin Use kvm_counter_u64_fetch() to fix obtaining ipstat and tcpstat from 2013-04-10 20:29:23 +00:00
usr.sbin Need to call init_mem() to really initialize the MMIO range lookups. 2013-04-10 18:59:20 +00:00
COPYRIGHT Happy New Year 2013! 2012-12-31 11:22:55 +00:00
LOCKS Test commit to make sure commit mail works after moving the server. 2012-12-29 16:03:23 +00:00
MAINTAINERS Update wiht the times. 2013-03-28 02:44:15 +00:00
Makefile Ensure make -j N universe works correctly, by checking for an up-to-date 2013-04-09 20:21:35 +00:00
Makefile.inc1 Fix xdev-install when installing to a location other than / 2013-03-31 08:54:04 +00:00
ObsoleteFiles.inc Fix a typo in the burncd line. 2013-04-05 21:18:01 +00:00
README Pull in r3828 from upstream (remove dead code, fix prototypes) 2013-04-09 13:08:33 +00:00
UPDATING Add warning about SOCK_CLOEXEC and SOCK_NONBLOCK (r248534). 2013-04-06 22:28:19 +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