FreeBSD src
Go to file
Adrian Chadd f4c1f0b9eb Fix MFS builds when both MD_ROOT_SIZE and MFS_IMAGE are specified
MD_ROOT_SIZE and embed_mfs.sh were basically retired as part of
https://reviews.freebsd.org/D2903 .
However, when building a kernel with 'options MD_ROOT_SIZE' specified, this
results in a non-working MFS, as within sys/dev/md/md.c we fall within the
wrong # ifdef.

This patch implements the following:

* Allow kernels to be built without the MD_ROOT_SIZE option, which results
  in a kernel built as per D2903.
* Allow kernels to be built with the MD_ROOT_SIZE option, which results
  in a kernel built similarly to the pre-D2903 way, with the following
  differences:
  * The MFS is now put in a separate section within the kernel (oldmfs,
    so it differs from the mfs section introduced by D2903).
  * embed_mfs.sh is changed, so it looks up the oldmfs section within the
    kernel, gets its size and offset, sees if the MFS will fit within the
    allocated oldmfs section and only if all is well does a dd of the MFS
    image into the kernel.

Submitted by:	Stanislav Galabov <sgalabov@gmail.com>
Reviewed by:	brooks, imp
Differential Revision:	https://reviews.freebsd.org/D5093
2016-02-02 07:02:51 +00:00
bin sh: Don't allocate a redirtab if there are no redirections. 2016-01-30 21:21:25 +00:00
cddl MFV 295046: 6358 A faulted pool with only unavailable vdevs triggers 2016-01-29 17:20:59 +00:00
contrib Add #include <string.h> to mute warning from clang/gcc about implicitly 2016-02-01 07:09:08 +00:00
crypto Merge OpenSSL 1.0.2f. 2016-01-28 20:15:22 +00:00
etc Use '^[>+][^+]' instead of '^[>+]' with grep(1) when filtering the 2016-01-29 01:54:32 +00:00
gnu Make .debug file for libgcc_s.so.1 more useful. 2016-01-27 20:20:35 +00:00
include Provide new socket option TCP_CCALGOOPT, which stands for TCP congestion 2016-01-22 02:07:48 +00:00
kerberos5 DIRDEPS_BUILD: Update dependencies. 2015-12-07 23:53:01 +00:00
lib This seems like a very trivial bug that should have been squashed a long 2016-01-30 04:16:05 +00:00
libexec Fix the type for hw.ncpu, so sysctlbyname doesn't consistently fail on 2016-01-30 17:54:18 +00:00
release Increase efiboot.img size used in ISO creation 2016-01-13 14:47:13 +00:00
rescue
sbin Delete argsize to fix a -Wunused-but-set-variable warning with gcc 4.9 2016-02-01 08:06:17 +00:00
secure Merge OpenSSL 1.0.2f. 2016-01-28 20:15:22 +00:00
share Note the double fork behavior with filemon. 2016-01-29 01:09:04 +00:00
sys Fix MFS builds when both MD_ROOT_SIZE and MFS_IMAGE are specified 2016-02-02 07:02:51 +00:00
targets Add in DIRDEPS_BUILD support. 2016-01-07 00:19:30 +00:00
tests Use the pidfile support added to ggated(8) in r294973 to ensure that the 2016-02-01 06:27:59 +00:00
tools Preliminary EFI support. Based, in part, on patches from Andy Turner. 2016-01-30 07:00:36 +00:00
usr.bin Increase max allowed backlog for listen sockets 2016-02-02 05:57:59 +00:00
usr.sbin Utilize new `-v var_to_set' of f_snprintf() 2016-02-01 00:54:26 +00:00
.arcconfig
.arclint
COPYRIGHT Bump copyright year. 2015-12-31 11:21:45 +00:00
LOCKS
MAINTAINERS Add interests/maintainerships + notes 2015-12-28 19:29:05 +00:00
Makefile Add make universe targets "kernels" and "worlds". 2016-01-31 17:32:58 +00:00
Makefile.inc1 Correct a comment. 2016-01-11 20:27:05 +00:00
ObsoleteFiles.inc Remove leading slashes added to ObsoleteFiles.inc in r294113. 2016-01-17 00:52:28 +00:00
README Import OpenSSL 1.0.2f. 2016-01-28 18:41:59 +00:00
UPDATING Add a sysctl to allow ZFS pools backed by zvols 2016-01-29 17:08:26 +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.  See build(7)
and 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.  See build(7), config(8),
and http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig.html
for more information.

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 kernel configuration files reside in the sys/<arch>/conf
sub-directory.  GENERIC is the default configuration used in release builds.
NOTES contains entries and documentation for all possible
devices, not just those commonly used.


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.

tests		Regression tests which can be run by Kyua.  See tests/README
		for additional information.

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