FreeBSD src
Go to file
Peter Grehan cf087c12c2 ZFS boot support for bhyveload.
Modelled after the i386 zfsloader. However, with no
2nd stage zfsboot to search for a bootable dataset,
attempt a ZFS boot if there is more than one ZFS
dataset found during the disk probe.

sys/boot/userboot/zfs
 - build the ZFS boot library

sys/boot/userboot/userboot/
 conf.c
  - Add the ZFS pool and filesystem tables
 devicename.c
  - correctly format ZFS devices
 main.c
  - increase the size of the libstand malloc pool
  to account for the increased usage from ZFS buffers
  - probe for a ZFS dataset, and if one is
  found, attempt to boot from it.

usr.sbin/bhyveload/bhyveload.c
 - allow multiple invocations of the '-d' option
 to specify multiple disks e.g. a raidz set.
 Up to 32 disks are supported.

Tested with various combinations of GPT, MBR, single
and multiple disks, RAID-Z, mirrors.

Reviewed by:	neel
Discussed with:	avg
Tested by:	Michael Dexter and others
MFC after:	3 weeks
2014-02-22 07:18:06 +00:00
bin sh: Allow aliases to force alias substitution on the following word. 2014-01-26 21:19:33 +00:00
cddl 1452 DTrace buffer autoscaling should be less violent 2014-02-22 05:18:55 +00:00
contrib Update serf-1.3.0 -> 1.3.4 - fixes multiple issues (see the CHANGES file) 2014-02-22 01:19:47 +00:00
crypto Fix installations that use kernels without CAPABILITIES support. 2014-02-04 21:48:09 +00:00
etc Install a default configuration file for dma 2014-02-21 21:02:19 +00:00
games Correct a typo in Malcolm MacDougall's name. 2014-02-15 22:15:24 +00:00
gnu add support for building a cross-gdb for ARM... This isn't hooked up 2014-02-12 02:08:42 +00:00
include Update jemalloc to version 3.5.0. 2014-01-23 02:47:36 +00:00
kerberos5 Revert my commit in r261253; the real problem was tackled in r262209. 2014-02-20 20:53:29 +00:00
lib Match the correct variable to the variable description. 2014-02-21 13:53:41 +00:00
libexec Lower warning level when built with gcc 2014-02-21 14:14:48 +00:00
release Document r261504 - FreeBSD/i386 guests can be run under bhyve. 2014-02-20 14:39:12 +00:00
rescue - Trim an unused and bogus Makefile for mount_smbfs. 2013-06-28 21:00:08 +00:00
sbin Better build fix. 2014-02-15 16:22:51 +00:00
secure Upgrade to OpenSSH 6.5p1. 2014-01-31 13:12:02 +00:00
share Move the part in bsd.own.mk that sets -Wno-c++11-extensions for clang to 2014-02-21 22:38:25 +00:00
sys ZFS boot support for bhyveload. 2014-02-22 07:18:06 +00:00
tests test_eagain_*_* should've been using nonblocking sockets instead of 2014-02-17 22:06:52 +00:00
tools Import Dragonfly Mail Agent into base system 2014-02-21 07:26:49 +00:00
usr.bin Match our implementation of iconv's inbuf argument. 2014-02-20 20:09:28 +00:00
usr.sbin ZFS boot support for bhyveload. 2014-02-22 07:18:06 +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 pkg_install has been removed on 20131031. 2013-11-09 16:20:42 +00:00
Makefile Remove the armv6eb architecture as it is unused, and almost certainly 2013-09-22 07:30:17 +00:00
Makefile.inc1 Merge from CheriBSD: 2014-01-30 22:26:51 +00:00
ObsoleteFiles.inc Upgrade our copy of llvm/clang to 3.4 release. This version supports 2014-02-16 19:44:07 +00:00
README Vendor import serf-1.3.4 2014-02-22 01:09:12 +00:00
UPDATING Upgrade our copy of llvm/clang to 3.4 release. This version supports 2014-02-16 19:44:07 +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