FreeBSD src
Go to file
Kirk McKusick 1c85e6a35d This commit adds basic support for the UFS2 filesystem. The UFS2
filesystem expands the inode to 256 bytes to make space for 64-bit
block pointers. It also adds a file-creation time field, an ability
to use jumbo blocks per inode to allow extent like pointer density,
and space for extended attributes (up to twice the filesystem block
size worth of attributes, e.g., on a 16K filesystem, there is space
for 32K of attributes). UFS2 fully supports and runs existing UFS1
filesystems. New filesystems built using newfs can be built in either
UFS1 or UFS2 format using the -O option. In this commit UFS1 is
the default format, so if you want to build UFS2 format filesystems,
you must specify -O 2. This default will be changed to UFS2 when
UFS2 proves itself to be stable. In this commit the boot code for
reading UFS2 filesystems is not compiled (see /sys/boot/common/ufsread.c)
as there is insufficient space in the boot block. Once the size of the
boot block is increased, this code can be defined.

Things to note: the definition of SBSIZE has changed to SBLOCKSIZE.
The header file <ufs/ufs/dinode.h> must be included before
<ufs/ffs/fs.h> so as to get the definitions of ufs2_daddr_t and
ufs_lbn_t.

Still TODO:
Verify that the first level bootstraps work for all the architectures.
Convert the utility ffsinfo to understand UFS2 and test growfs.
Add support for the extended attribute storage. Update soft updates
to ensure integrity of extended attribute storage. Switch the
current extended attribute interfaces to use the extended attribute
storage. Add the extent like functionality (framework is there,
but is currently never used).

Sponsored by: DARPA & NAI Labs.
Reviewed by:	Poul-Henning Kamp <phk@freebsd.org>
2002-06-21 06:18:05 +00:00
bin Don't try to decode old-style options if the argv[1] begins with `-' and the 2002-06-20 14:55:53 +00:00
contrib Merge libpcap 0.7.1 2002-06-21 01:38:14 +00:00
crypto Don't risk catching a signal while handling a signal for a dying child, as we 2002-05-27 08:10:24 +00:00
etc Anonymize the "portmap" program to get better compatibility with 2002-06-20 08:49:44 +00:00
games Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
gnu Remove GAWK. I removed it from the build 2 weeks ago and the world 2002-06-20 20:54:54 +00:00
include This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
kerberos5 Make this -j safe. 2002-05-14 15:27:13 +00:00
kerberosIV This code is no longer WARNS level 2 OK. 2002-05-15 06:32:29 +00:00
lib This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
libexec This is the same alloca() fix as was committed for i386. David O'Brien 2002-06-18 05:42:33 +00:00
release This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
sbin This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
secure for OpenSSL 0.9.5a 2002-05-15 09:17:27 +00:00
share Remove references to UIO_USERISPACE which no longer exists. 2002-06-20 07:09:24 +00:00
sys This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
tools Grrr, make the test for embedded variables in the left-hand-side actually do 2002-06-20 03:08:20 +00:00
usr.bin This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
usr.sbin This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
COPYRIGHT Update to add the July 22, 1999 addendum. 1999-09-05 21:33:47 +00:00
MAINTAINERS It seems the hard lock on m4(1) is viewed as superfluous. Okay. It's gone. 2002-06-20 10:37:43 +00:00
Makefile Reimplement FILES support using bsd.files.mk with the 2002-06-03 14:49:34 +00:00
Makefile.inc1 Don't try to build libssh if NO_OPENSSL is defined because NO_OPENSSL implies 2002-06-16 14:24:51 +00:00
Makefile.upgrade Removed "env" commands. "sh" is a real shell, so 2002-03-19 05:58:36 +00:00
README Spell "FreeBSD" correctly. 2002-03-26 12:35:49 +00:00
UPDATING Slightly modify the UPDATING text to indicate that -gstabs+ is a gcc 2002-06-05 20:21:40 +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/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.

kerberosIV	KerberosIV (eBones) 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/handbook/synching.html