freebsd-dev/sys/boot/i386
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
..
boot0 Unrevert revision 1.12. Revision 1.14 backed this out saying it was 2002-01-10 21:40:33 +00:00
boot2 This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
btx Fixed CLEANFILES after bsd.lib.mk sweep. 2002-05-13 15:48:05 +00:00
cdboot Remove a few more debugging bits and turn on twiddle output while reading 2001-11-07 01:20:33 +00:00
gptboot This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
kgzldr Don't be redundant. 2002-05-10 01:06:52 +00:00
libi386 This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
liloldr Fix a bug which prevents parsing this Makefile without having a 2000-09-05 22:33:07 +00:00
loader This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
mbr Unset MAINTAINER. 2001-07-21 14:32:47 +00:00
pxeldr Allow for text section alignment to properly align the "end" symbol at the 2001-08-09 20:47:58 +00:00
Makefile This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
Makefile.inc -ffreestanding is the word for /sys. 2002-05-10 00:53:45 +00:00