opnsense-src/sys/sys
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
..
_lock.h Renamed the idempotency identifier to match the file name. 2002-06-07 14:37:09 +00:00
_mutex.h Renamed the idempotency identifier to match the file name. Cleaned up 2002-06-09 02:52:40 +00:00
_posix.h
_sigset.h Quick fix for the type of the bitmap in sigset_t. It was an array of 2002-06-20 09:04:33 +00:00
_timespec.h
_types.h Implement the <sys/statvfs.h> header. Related changes to <sys/types.h> 2002-06-14 19:37:06 +00:00
aac_ioctl.h
acct.h Remove __P 2002-03-19 20:18:42 +00:00
acl.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
agpio.h
aio.h o Add missing synchronization (splnet()/splx()) in aio_free_entry(). 2002-01-06 21:03:39 +00:00
assym.h
ata.h Cleanup, use the same method to denote parts for endianess. 2002-04-05 18:03:33 +00:00
bio.h Make daddr_t and u_daddr_t 64bits wide. 2002-05-14 11:09:43 +00:00
bitstring.h
blist.h Move the hideously misnamed type "u_daddr_t" to <sys/blist.h> where it 2002-05-18 09:38:20 +00:00
buf.h Make daddr_t and u_daddr_t 64bits wide. 2002-05-14 11:09:43 +00:00
bus.h Add resource_list_add_next() which returns the RID for the resource added. 2002-03-29 06:42:54 +00:00
bus_dma.h
bus_private.h
callout.h Remove __P 2002-03-19 20:18:42 +00:00
ccdvar.h
cdefs.h Backout 1.54 (restore definition for printf0 to actually do something). 2002-05-24 19:16:08 +00:00
cdio.h Add endianess kludge code, so that bitfields work on the sparc64 as well. 2002-04-05 13:10:26 +00:00
cdrio.h Update header. 2002-03-04 21:08:35 +00:00
chio.h
clist.h
clock.h Add a generic implementation of inittodr() and resettodr(), as well as 2002-04-04 23:39:10 +00:00
condvar.h A couple of bits survived Dans nukage of CV_DEBUG in favour of INVARIANTS, 2002-03-31 07:23:31 +00:00
conf.h Used protected names (_foo) for parameter names. This helps clean up 2002-04-21 10:57:43 +00:00
cons.h Remove __P 2002-03-19 20:18:42 +00:00
consio.h Rename struct scr_size into struct _scr_size and struct scrmap into 2002-05-16 10:57:10 +00:00
copyright.h Welcome 2002. Happy new year. 2002-01-01 09:20:52 +00:00
ctype.h
dataacq.h
device_port.h
devicestat.h
digiio.h
dir.h
dirent.h
disk.h Implement DIOCGFRONTSTUFF ioctl which reports how many bytes from the start 2002-04-09 15:43:32 +00:00
disklabel.h Remove the compat bits for the mis-aligned struct disklabel on alpha, 2002-06-19 08:37:02 +00:00
diskmbr.h Remove the compat bits for the mis-aligned struct disklabel on alpha, 2002-06-19 08:37:02 +00:00
diskpc98.h Remove the compat bits for the mis-aligned struct disklabel on alpha, 2002-06-19 08:37:02 +00:00
diskslice.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
dkstat.h
dmap.h
domain.h Remove __P 2002-03-19 20:18:42 +00:00
dvdio.h Update header. 2002-03-04 21:08:35 +00:00
elf32.h Move the definition of ElfN_Hashelt to common headers. The only platform 2002-05-30 08:32:18 +00:00
elf64.h Move the definition of ElfN_Hashelt to common headers. The only platform 2002-05-30 08:32:18 +00:00
elf_common.h
elf_generic.h Move the definition of ElfN_Hashelt to common headers. The only platform 2002-05-30 08:32:18 +00:00
endian.h Make this header self-reliant with regard to the types it uses. 2002-04-29 16:58:54 +00:00
errno.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
event.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
eventhandler.h The previous ANSIfication did not take into account upgrade-builds 2002-05-24 09:37:10 +00:00
eventvar.h
exec.h Remove __P 2002-03-19 20:18:42 +00:00
extattr.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
fbio.h Turn on TGA support. 2002-04-13 22:34:16 +00:00
fcntl.h Remove __P 2002-03-19 20:18:42 +00:00
fdcio.h
file.h remove bogus comment, select/poll do NOT need to fhold as they hold the 2002-06-17 09:39:30 +00:00
filedesc.h Make funsetown() take a 'struct sigio **' so that the locking can 2002-05-06 19:31:28 +00:00
filio.h
fnv_hash.h
gmon.h Reserved one of the spare fields in struct gmon to record the history 2002-02-21 05:52:49 +00:00
gpt.h Don't use an incomplete array type to mark the start of the padding 2002-05-31 01:07:13 +00:00
iconv.h The previous ANSIfication did not take into account earlier, 2002-05-24 09:40:51 +00:00
imgact.h Remove __P 2002-03-19 20:18:42 +00:00
imgact_aout.h Remove __P 2002-03-19 20:18:42 +00:00
imgact_elf.h Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
inflate.h Forgot one more instance of my old email address. 2002-03-26 08:29:40 +00:00
interrupt.h Remove __P 2002-03-19 20:18:42 +00:00
ioccom.h I've fixed the X11 port, so I can remove the (ioctl) hack. 2002-04-10 04:53:37 +00:00
ioctl.h Hide GCCisms in the non-GCC case. 2002-02-26 07:44:03 +00:00
ioctl_bt848.h
ioctl_compat.h
ioctl_meteor.h
ipc.h Remove __P 2002-03-19 20:18:42 +00:00
jail.h Include <sys/queue.h> so that this file provides its own namespace 2002-05-06 03:13:08 +00:00
joystick.h Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
kbio.h
kenv.h Rework the kernel environment subsystem. We now convert the static 2002-04-17 13:06:36 +00:00
kernel.h Add a new SYSINIT subsystem for KTRACE. 2002-06-07 05:11:39 +00:00
kerneldump.h Restore the ability to take crashdumps on alpha. This was cut and pasted 2002-05-11 21:53:46 +00:00
kobj.h Convert hit and miss counters to unsigned values. Surely negative values 2002-06-10 22:40:26 +00:00
kse.h Add the first shot at minimum KSE interface definitions. 2002-02-19 02:12:36 +00:00
kthread.h Remove __P 2002-03-19 20:18:42 +00:00
ktr.h Wrap the arguments to CTR6() in parentheses so that the u_long casts work 2002-04-01 19:44:13 +00:00
ktrace.h Overhaul the ktrace subsystem a bit. For the most part, the actual vnode 2002-06-07 05:32:59 +00:00
libkern.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
linedisc.h Used protected names (_foo) for parameter names. This helps clean up 2002-04-21 10:57:43 +00:00
link_aout.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
link_elf.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
linker.h Don't use the symbol name to lookup the symbol value when we can use 2002-04-25 01:22:16 +00:00
linker_set.h Wrap GCC-specific stuff and provide alternative for lint. 2002-04-21 11:11:02 +00:00
lock.h Parenthesise macro arguments to reduce lint warnings. 2002-04-21 10:43:24 +00:00
lockf.h Remove __P 2002-03-19 20:18:42 +00:00
lockmgr.h Record the file, line, and pid of the last successful shared lock holder. This 2002-05-30 05:55:22 +00:00
malloc.h fix whitespace botch in previous commit. 2002-06-19 01:23:54 +00:00
mbuf.h Add some #define's for mbuf annotations. 2002-06-20 21:29:55 +00:00
mchain.h Add the following functions/macros to support byte order conversions and 2002-02-27 17:16:18 +00:00
md4.h
md5.h Remove __P 2002-03-19 20:18:42 +00:00
mdioctl.h Actually make use of the md_version field of 'struct mdio'. In order 2001-12-20 06:38:21 +00:00
memrange.h Make the MTRR code a bit more defensive - this should help people 2002-04-14 20:19:13 +00:00
mman.h Remove __P 2002-03-19 20:18:42 +00:00
module.h - Lock down the ``module'' structure by adding an SX lock that is used by 2002-03-18 07:45:30 +00:00
mount.h Change the way we internally store the mount options to 2002-06-20 20:03:42 +00:00
mouse.h Minor changes: 2002-03-24 03:07:07 +00:00
msg.h Remove __P 2002-03-19 20:18:42 +00:00
msgbuf.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
mtio.h Make the mtio data structures explicitly sized. 2002-05-14 07:30:13 +00:00
mutex.h Optimize spin mutexes for UP kernels without debugging to just enter and 2002-05-21 20:34:28 +00:00
namei.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
nlist_aout.h Breath deep and take __P out of the system include files. 2002-03-23 17:24:55 +00:00
param.h NODEV is defined the same in _KERNEL and !_KERNEL case, so move it out from 2002-06-04 05:48:38 +00:00
pciio.h
pcpu.h Embed a struct vmmeter in the per-cpu structure and add a macro, 2002-04-04 21:38:47 +00:00
pioctl.h
pipe.h First rev at making pipe(2) pipe's MPsafe. 2002-02-27 07:35:59 +00:00
poll.h Cleanup comments. 2002-04-18 14:54:26 +00:00
posix4.h Remove __P. 2002-03-19 22:20:14 +00:00
power.h Add generalized power profile code. 2002-03-04 18:46:13 +00:00
priority.h
proc.h - Add a per-thread member 'td_inktrace' to be used by ktrace to detect 2002-06-07 05:11:08 +00:00
procfs.h
protosw.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
ptio.h
ptrace.h Implement PT_IO (read / write arbitrary amounts of data or text). 2002-03-16 02:40:02 +00:00
queue.h Parenthesize some macro arguments. 2002-04-17 14:00:37 +00:00
random.h Provide infrastructure for harvesting SWI entropy. 2002-03-03 20:09:42 +00:00
reboot.h
regression.h Remove __P 2002-03-19 20:18:42 +00:00
resource.h Remove __P 2002-03-19 20:18:42 +00:00
resourcevar.h Remove __P 2002-03-19 20:18:42 +00:00
rman.h Add a rman_reserve_resource_bound() function that takes an additional 2001-12-21 21:40:55 +00:00
rtprio.h Remove __P 2002-03-19 20:18:42 +00:00
runq.h Make the run queue parameters machine dependent. Optimize 64 bit 2002-05-25 01:12:23 +00:00
sbuf.h Replace spaces after #defines with tabs; this makes all #defines 2002-01-09 07:29:28 +00:00
select.h Now that we have a separate header file for sigset_t, use it and avoid 2002-06-16 18:40:16 +00:00
selinfo.h Remove __P 2002-03-19 20:18:42 +00:00
sem.h Remove __P 2002-03-19 20:18:42 +00:00
sema.h
semaphore.h Remove __P. 2002-03-19 22:20:14 +00:00
shm.h Remove __P 2002-03-19 20:18:42 +00:00
signal.h Use <sys/_sigset.h> to get declaration of sigset_t, which has been moved 2002-06-16 18:35:24 +00:00
signalvar.h CURSIG() is not a macro so rename it cursig(). 2002-05-29 23:44:32 +00:00
smp.h Forward declare struct thread. 2002-05-20 16:11:38 +00:00
snoop.h
socket.h Implement SO_NOSIGPIPE option for sockets. This allows one to request that 2002-06-20 18:52:54 +00:00
socketvar.h Remove so*_locked(), which were backed out by mistake. 2002-06-18 07:42:02 +00:00
sockio.h Style consistency fix for MAC ioctls added previously. 2002-02-10 16:55:35 +00:00
soundcard.h Remove __P 2002-03-19 20:18:42 +00:00
stat.h This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
statvfs.h Fix two syntax errors and add declarations of statvfs() and fstatvfs(). 2002-06-16 21:02:08 +00:00
stdint.h o Implement <sys/_types.h>, a new header for storing types that are 2002-04-01 08:12:25 +00:00
sun_disklabel.h Add a hack (ported from NetBSD) to support Sun disk labels. 2002-05-09 20:22:59 +00:00
sx.h - Make this compile if INVARIANTS support is not enabled. 2002-04-02 18:18:56 +00:00
syscall.h Regen. 2002-06-13 23:44:50 +00:00
syscall.mk Regen. 2002-06-13 23:44:50 +00:00
sysctl.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
sysent.h Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 08:46:52 +00:00
syslimits.h
syslog.h Remove __P 2002-03-19 20:18:42 +00:00
sysproto.h Regen. 2002-06-13 23:44:50 +00:00
systm.h Use suword16/fuword16 instead of susword/fusword - this has two different 2002-06-20 07:23:08 +00:00
taskqueue.h
termios.h Remove __P 2002-03-19 20:18:42 +00:00
time.h Fix visibility issues; use <sys/timespec.h>. 2002-06-15 23:37:33 +00:00
timeb.h Remove __P 2002-03-19 20:18:42 +00:00
timepps.h Brucifixion ? Yes, out that door, row on the left, one patch each. 2002-04-30 19:48:45 +00:00
timers.h
times.h Remove __P 2002-03-19 20:18:42 +00:00
timespec.h
timetc.h Initialize time_second to 1 instead of zero to pacify slightly bogus arp code. 2002-05-03 08:46:03 +00:00
timex.h Removed unused forward struct declaration. 2002-04-28 09:51:45 +00:00
tty.h Fixed some style bugs in recent commits. 2002-05-28 15:24:13 +00:00
ttychars.h
ttycom.h
ttydefaults.h
ttydev.h
types.h This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
ucontext.h Add getcontext, setcontext, makecontext, and swapcontext prototypes 2002-01-10 02:44:30 +00:00
ucred.h Squish the "could sleep with process lock" messages caused by calling 2002-06-19 06:39:25 +00:00
uio.h Remove UIO_USERISPACE - we do not support any split instruction/data 2002-06-20 07:08:43 +00:00
un.h Change spelling of u_char' to unsigned char' to avoid requiring 2002-06-19 19:05:41 +00:00
unistd.h
unpcb.h More s/file system/filesystem/g 2002-05-16 21:28:32 +00:00
user.h Adjust KINFO_PROC_SIZE due to segsz_t being changed from a 32-bit to 2002-05-03 01:41:37 +00:00
utsname.h
uuid.h Add uuidgen(2) and uuidgen(1). 2002-05-28 06:16:08 +00:00
vmmeter.h Make a structure definition slightly more style(9) compliant (makes 2002-06-01 03:55:16 +00:00
vnioctl.h
vnode.h This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
wait.h Remove the deprecated 4.2/4.3BSD wait union. 2002-06-05 02:21:01 +00:00
xrpuio.h