]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
This commit adds basic support for the UFS2 filesystem. The UFS2
authorKirk McKusick <mckusick@FreeBSD.org>
Fri, 21 Jun 2002 06:18:05 +0000 (06:18 +0000)
committerKirk McKusick <mckusick@FreeBSD.org>
Fri, 21 Jun 2002 06:18:05 +0000 (06:18 +0000)
commit1c85e6a35d93195e896b030d9a55f7ac4ccee2c3
treef1364dbfb9835934a3879b5904f7ff9a1495744c
parent27168693db756b7c8dabe3830a804bf72def2a6d
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>
89 files changed:
include/protocols/dumprestore.h
lib/libstand/ufs.c
release/picobsd/build/write_mfs_in_kernel.c
sbin/Makefile
sbin/badsect/badsect.c
sbin/clri/clri.c
sbin/dump/dump.h
sbin/dump/itime.c
sbin/dump/main.c
sbin/dump/optr.c
sbin/dump/tape.c
sbin/dump/traverse.c
sbin/dumpfs/dumpfs.c
sbin/fsck_ffs/dir.c
sbin/fsck_ffs/fsck.h
sbin/fsck_ffs/fsutil.c
sbin/fsck_ffs/inode.c
sbin/fsck_ffs/main.c
sbin/fsck_ffs/pass1.c
sbin/fsck_ffs/pass1b.c
sbin/fsck_ffs/pass2.c
sbin/fsck_ffs/pass4.c
sbin/fsck_ffs/pass5.c
sbin/fsck_ffs/setup.c
sbin/fsdb/fsdb.c
sbin/fsdb/fsdb.h
sbin/fsdb/fsdbutil.c
sbin/fsirand/fsirand.c
sbin/growfs/growfs.c
sbin/newfs/mkfs.c
sbin/newfs/newfs.8
sbin/newfs/newfs.c
sbin/newfs/newfs.h
sbin/quotacheck/quotacheck.c
sbin/restore/dirs.c
sbin/restore/main.c
sbin/restore/restore.c
sbin/restore/restore.h
sbin/restore/tape.c
sbin/tunefs/tunefs.8
sbin/tunefs/tunefs.c
sys/amd64/Makefile
sys/boot/common/ufsread.c
sys/boot/i386/Makefile
sys/boot/i386/boot2/Makefile
sys/boot/i386/boot2/boot2.c
sys/boot/i386/gptboot/Makefile
sys/boot/i386/gptboot/gptboot.c
sys/boot/i386/libi386/Makefile
sys/boot/i386/loader/Makefile
sys/i386/Makefile
sys/kern/subr_disklabel.c
sys/kern/subr_diskslice.c
sys/kern/vfs_bio.c
sys/kern/vfs_cluster.c
sys/kern/vfs_extattr.c
sys/kern/vfs_syscalls.c
sys/kern/vfs_vnops.c
sys/sys/stat.h
sys/sys/types.h
sys/sys/vnode.h
sys/ufs/ffs/ffs_alloc.c
sys/ufs/ffs/ffs_balloc.c
sys/ufs/ffs/ffs_extern.h
sys/ufs/ffs/ffs_inode.c
sys/ufs/ffs/ffs_snapshot.c
sys/ufs/ffs/ffs_softdep.c
sys/ufs/ffs/ffs_softdep_stub.c
sys/ufs/ffs/ffs_subr.c
sys/ufs/ffs/ffs_tables.c
sys/ufs/ffs/ffs_vfsops.c
sys/ufs/ffs/ffs_vnops.c
sys/ufs/ffs/fs.h
sys/ufs/ffs/softdep.h
sys/ufs/ufs/dinode.h
sys/ufs/ufs/inode.h
sys/ufs/ufs/quota.h
sys/ufs/ufs/ufs_acl.c
sys/ufs/ufs/ufs_bmap.c
sys/ufs/ufs/ufs_extattr.c
sys/ufs/ufs/ufs_extern.h
sys/ufs/ufs/ufs_inode.c
sys/ufs/ufs/ufs_lookup.c
sys/ufs/ufs/ufs_quota.c
sys/ufs/ufs/ufs_readwrite.c
sys/ufs/ufs/ufs_vnops.c
sys/ufs/ufs/ufsmount.h
usr.bin/fstat/fstat.c
usr.sbin/quot/quot.c