freebsd-dev/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 Change #include "DEFS.h" to <machine/asm.h>. 2001-10-25 01:30:54 +00:00
powerpc Make setjmp work our way, as opposed to NetBSD's. 2000-11-10 06:10:28 +00:00
sparc64 libstand needs _setjmp/_longjmp for FICL. 2002-04-13 22:09:53 +00:00
__main.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
arp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
assert.c Make the output from assert() look more like the example in the C99 2001-10-29 07:07:25 +00:00
bcd.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bootp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
bootp.h
bootparam.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
bootparam.h
bswap.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
bzlib.c.diff Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
bzlib.h.diff Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
cd9660.c - Change the f_isdir field of struct file to be a flags field and two 2001-11-06 22:31:10 +00:00
close.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
closeall.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dev_net.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dev_net.h
dev.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dosfs.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
dosfs.h
environment.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
gets.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
globals.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Don't always enable debugging for the network device code. 2000-11-10 06:06:55 +00:00
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 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
open.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
pager.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
readdir.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
rpc.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
rpc.h
rpcv2.h
saioctl.h
sbrk.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strcasecmp.c Remove 'register' keyword. 2002-03-21 23:39:28 +00:00
strdup.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
strerror.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
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 Define the types iaddr_t and saddr_t for sparc64. 2001-10-15 13:50:47 +00:00
zalloc_malloc.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
zalloc_mem.h
zalloc_protos.h
zalloc.c Add __FBSDID()s to libstand 2001-09-30 22:28:01 +00:00
zipfs.c Add splitfs vfs layer into libstand, which allows loading big kernels and 2002-03-17 12:18:05 +00:00