1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/lib/libstand
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
..
alpha
i386
powerpc
sparc64 libstand needs _setjmp/_longjmp for FICL. 2002-04-13 22:09:53 +00:00
__main.c
arp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
assert.c
bcd.c
bootp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
bootp.h
bootparam.c
bootparam.h
bswap.c
bzipfs.c Add splitfs vfs layer into libstand, which allows loading big kernels and 2002-03-17 12:18:05 +00:00
bzlib_private.h.diff
bzlib.c.diff
bzlib.h.diff
cd9660.c
close.c
closeall.c
dev_net.c
dev_net.h
dev.c
dosfs.c
dosfs.h
environment.c
ether.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
ext2fs.c Use an explicitly-sized type instead of daddr_t for on-disk block 2002-05-19 10:50:38 +00:00
fstat.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
getopt.c
gets.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
globals.c
gzipfs.c Add splitfs vfs layer into libstand, which allows loading big kernels and 2002-03-17 12:18:05 +00:00
if_ether.h
in_cksum.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
inet_ntoa.c
ioctl.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
iodesc.h
libstand.3 Remove a URL from the middle of the BSD copyright (a clicko? a pasto?). 2002-06-02 10:05:55 +00:00
lseek.c
Makefile Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
net.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
net.h
netif.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
netif.h
nfs.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
nfsv2.h
nullfs.c
open.c
pager.c
printf.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
qdivrem.c Add __divdi3() and __moddi3() to libstand. We will need them for UFS2. 2002-05-13 13:31:20 +00:00
quad.h Remove __P() usage. 2002-03-21 23:54:04 +00:00
random.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
rarp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
read.c
readdir.c
rpc.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
rpc.h
rpcv2.h
saioctl.h
sbrk.c
splitfs.c Kill debugging printf() slipped into my last commit. 2002-03-21 07:31:48 +00:00
stand.h Correct bswap64() prototype. 2002-06-03 19:04:10 +00:00
stat.c
strcasecmp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
strdup.c
strerror.c
strtol.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
tftp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
tftp.h
twiddle.c
udp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
ufs.c This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
write.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
zalloc_defs.h
zalloc_malloc.c
zalloc_mem.h
zalloc_protos.h
zalloc.c
zipfs.c Add splitfs vfs layer into libstand, which allows loading big kernels and 2002-03-17 12:18:05 +00:00