a2p
accept
access
acct
addftinfo
addr2line
adjtime
afmtodit
after
aio_cancel
aio_error
aio_read
aio_return
aio_suspend
aio_waitcomplete
aio_write
alias
aliases
alloc
anvil
append
apply
apropos
ar
array
as
asa
asn1parse
at
atq
atrm
attemptckalloc
attemptckrealloc
authlib
authtest
autopoint
awk
b64decode
b64encode
basename
batch
bc
bdes
bell
bg
bgerror
biff
big5
binary
bind
bindkey
bindtags
bindtextdomain
bio
bitmap
blowfish
bn
bootparams
bootptab
bounce
brandelf
break
breaksw
brk
bsdiff
bsdtar
bsnmpd
bspatch
bthost
btsockstat
buffer
builtin
builtins
bunzip2
button
byacc
bzcat
bzegrep
bzfgrep
bzgrep
bzip2
c2ph
c89
c99
ca
cal
calendar
canvas
cap_mkdb
case
cat
catch
catman
cc
cd
cdcontrol
chdir
checkbutton
checknr
chflags
chfn
chgrp
chio
chkey
chmod
chown
chpass
chroot
chsh
ci
ciphers
ckalloc
ckdist
ckfree
ckrealloc
cksum
cleanup
clear
clipboard
clock
clock_getres
clock_gettime
clock_settime
close
cmp
co
col
colcrt
colldef
colors
colrm
column
comm
command
compile_et
complete
compress
concat
config
connect
console
continue
core
courierlogger
couriertcpd
cp
cpan
cpio
cpp
creat
crl
crontab
crunchgen
crunchide
crypt
crypto
csh
csplit
ctags
ctm
ctm_dequeue
ctm_rmail
ctm_smail
cu
cursor
cursors
cut
cvs
date
dbiprof
dbiproxy
dc
dcgettext
dcngettext
dd
dde
default
defer
deliverquota
des
destroy
devfs
df
dgettext
dgst
dh
dhparam
dialog
diff
diff3
dig
dir
dirent
dirname
dirs
discard
disktab
dngettext
do
domainname
done
dprofpp
dsa
dsaparam
dtmfdecode
du
dup
dup2
eaccess
ec
ecdsa
echo
echotc
ecparam
ed
edit
editrc
ee
egrep
elf
elfdump
elif
else
enc
enc2xs
encoding
end
endif
endsw
engine
enigma
entry
env
envsubst
eof
eqn
err
errno
error
errstr
esac
ethers
euc
eui64
eval
event
evp
ex
exec
execve
exit
expand
export
exports
expr
extattr
extattr_delete_fd
extattr_delete_file
extattr_get_fd
extattr_get_file
extattr_set_fd
extattr_set_file
f77
false
famm
famx
fblocked
fbtab
fc
fchdir
fchflags
fchmod
fchown
fcntl
fconfigure
fcopy
fdescfs
fdformat
fdread
fdwrite
fetch
fg
fgrep
fhopen
fhstat
fhstatfs
fi
file
file2c
fileevent
filename
filetest
find
find2perl
finger
flex
flock
flush
fmt
focus
fold
font
fontedit
for
foreach
fork
format
forward
fpathconf
frame
from
fs
fstab
fstat
fstatfs
fsync
ftp
ftpchroot
ftpusers
ftruncate
futimes
g711conv
gb2312
gb18030
gbk
gcc
gcore
gcov
gdb
gencat
gendsa
genrsa
gensnmptree
getconf
getdents
getdirentries
getdtablesize
getegid
geteuid
getfacl
getfh
getfsstat
getgid
getgroups
getitimer
getlogin
getopt
getopts
getpeername
getpgid
getpgrp
getpid
getppid
getpriority
getresgid
getresuid
getrlimit
getrusage
gets
getsid
getsockname
getsockopt
gettext
gettextize
gettimeofday
gettytab
getuid
glob
global
gmake
goto
gperf
gprof
grab
grep
grid
grn
grodvi
groff
groff_font
groff_out
groff_tmac
grog
grolbp
grolj4
grops
grotty
group
groups
gunzip
gzcat
gzexe
gzip
h2ph
h2xs
hash
hashstat
hd
head
help2man
hesinfo
hexdump
history
host
hostname
hosts
hosts_access
hosts_options
hpftodit
http
hup
i386_get_ioperm
i386_get_ldt
i386_set_ioperm
i386_set_ldt
i386_vm86
iconv
id
ident
idprio
if
ifnames253
ifnames259
image
imapd
incr
indent
indxbib
info
infokey
inode
install
instmodsh
interp
intro
introduction
ioctl
ipcrm
ipcs
ipf
ipftest
ipnat
ippool
ipresend
issetugid
jail
jail_attach
jobid
jobs
join
jot
kbdcontrol
kbdmap
kcon
kdestroy
kdump
kenv
kevent
keycap
keylogin
keylogout
keymap
keysyms
kgdb
kill
killall
killpg
kinit
kldfind
kldfirstmod
kldload
kldnext
kldstat
kldsym
kldunload
klist
kpasswd
kqueue
kse
kse_create
kse_exit
kse_release
kse_switchin
kse_thr_interrupt
kse_wakeup
ktrace
label
labelframe
lam
lappend
last
lastcomm
lastlog
lchflags
lchmod
lchown
ld
ldap
ldapadd
ldapcompare
ldapdelete
ldapmodify
ldapmodrdn
ldappasswd
ldapsearch
ldapwhoami
ldd
leave
less
lesskey
lex
lgetfh
lhash
libnetcfg
library
limit
limits
lindex
link
linprocfs
linsert
lint
lio_listio
list
listbox
listen
lj4_font
lkbib
llength
lmtp
ln
load
loadfont
local
locale
locate
lock
lockf
log
logger
login
logins
logname
logout
look
lookbib
lorder
lower
lp
lpq
lpr
lprm
lptest
lrange
lreplace
ls
lsearch
lseek
lset
lsort
lstat
lsvfs
lutimes
lynx
m4
madvise
magic
mail
maildiracl
maildirkw
maildirmake
mailq
mailx
make
makeinfo
makewhatis
man
manpath
master
mc
mcedit
mcview
md2
md4
md5
mdc2
memory
menu
menubar
menubutton
merge
mesg
message
mincore
minherit
minigzip
mkdep
mkdir
mkfifo
mkimapdcert
mklocale
mknod
mkpop3dcert
mkstr
mktemp
mlock
mlockall
mmap
mmroff
modfind
modfnext
modnext
modstat
moduli
more
motd
mount
mprotect
mptable
msdos
msdosfs
msgattrib
msgcat
msgcmp
msgcomm
msgconv
msgen
msgexec
msgfilter
msgfmt
msggrep
msginit
msgmerge
msgs
msgunfmt
msguniq
mskanji
msql2mysql
msync
mt
munlock
munlockall
munmap
mv
myisamchk
myisamlog
myisampack
mysql
mysqlaccess
mysqladmin
mysqlbinlog
mysqlcheck
mysqld
mysqldump
mysqld_multi
mysqld_safe
mysqlhotcopy
mysqlimport
mysqlshow
mysql_config
mysql_fix_privilege_tables
mysql_zap
namespace
nanosleep
nawk
nc
ncal
ncplist
ncplogin
ncplogout
neqn
netconfig
netgroup
netid
netstat
networks
newaliases
newgrp
nex
nfsstat
nfssvc
ngettext
nice
nl
nm
nmount
nohup
nologin
notify
nroff
nseq
nslookup
ntp_adjtime
ntp_gettime
nvi
nview
objcopy
objdump
objformat
ocsp
od
onintr
open
openssl
opieaccess
opieinfo
opiekey
opiekeys
opiepasswd
option
options
oqmgr
pack
package
packagens
pagesize
palette
pam_auth
panedwindow
parray
passwd
paste
patch
pathchk
pathconf
pawd
pax
pbm
pcre
pcreapi
pcrebuild
pcrecallout
pcrecompat
pcrecpp
pcregrep
pcrematching
pcrepartial
pcrepattern
pcreperform
pcreposix
pcreprecompile
pcresample
pcretest
perl
perl56delta
perl58delta
perl561delta
perl570delta
perl571delta
perl572delta
perl573delta
perl581delta
perl582delta
perl583delta
perl584delta
perl585delta
perl586delta
perl587delta
perl588delta
perl5004delta
perl5005delta
perlaix
perlamiga
perlapi
perlapio
perlapollo
perlartistic
perlbeos
perlbook
perlboot
perlbot
perlbs2000
perlbug
perlcall
perlcc
perlce
perlcheat
perlclib
perlcn
perlcompile
perlcygwin
perldata
perldbmfilter
perldebguts
perldebtut
perldebug
perldelta
perldgux
perldiag
perldoc
perldos
perldsc
perlebcdic
perlembed
perlepoc
perlfaq
perlfaq1
perlfaq2
perlfaq3
perlfaq4
perlfaq5
perlfaq6
perlfaq7
perlfaq8
perlfaq9
perlfilter
perlfork
perlform
perlfreebsd
perlfunc
perlglossary
perlgpl
perlguts
perlhack
perlhist
perlhpux
perlhurd
perlintern
perlintro
perliol
perlipc
perlirix
perlivp
perljp
perlko
perllexwarn
perllinux
perllocale
perllol
perlmachten
perlmacos
perlmacosx
perlmint
perlmod
perlmodinstall
perlmodlib
perlmodstyle
perlmpeix
perlnetware
perlnewmod
perlnumber
perlobj
perlop
perlopenbsd
perlopentut
perlos2
perlos390
perlos400
perlothrtut
perlpacktut
perlplan9
perlpod
perlpodspec
perlport
perlqnx
perlre
perlref
perlreftut
perlrequick
perlreref
perlretut
perlrun
perlsec
perlsolaris
perlstyle
perlsub
perlsyn
perlthrtut
perltie
perltoc
perltodo
perltooc
perltoot
perltrap
perltru64
perltw
perlunicode
perluniintro
perlutil
perluts
perlvar
perlvmesa
perlvms
perlvos
perlwin32
perlxs
perlxstut
perror
pfbtops
pftp
pgrep
phones
photo
pic
pickup
piconv
pid
pipe
pkcs7
pkcs8
pkcs12
pkg_add
pkg_check
pkg_create
pkg_delete
pkg_info
pkg_sign
pkg_version
pkill
pl2pm
place
pod2html
pod2latex
pod2man
pod2text
pod2usage
podchecker
podselect
poll
popd
popup
posix_madvise
postalias
postcat
postconf
postdrop
postfix
postkick
postlock
postlog
postmap
postqueue
postsuper
pr
pread
preadv
printcap
printenv
printf
proc
procfs
profil
protocols
prove
proxymap
ps
psed
psroff
pstruct
ptrace
publickey
pushd
puts
pwd
pwrite
pwritev
qmgr
qmqpd
quota
quotactl
radiobutton
raise
rand
ranlib
rcp
rcs
rcsclean
rcsdiff
rcsfile
rcsfreeze
rcsintro
rcsmerge
read
readelf
readlink
readonly
readv
realpath
reboot
recv
recvfrom
recvmsg
red
ree
refer
regexp
registry
regsub
rehash
remote
rename
repeat
replace
req
reset
resolver
resource
return
rev
revoke
rfcomm_sppd
rfork
rhosts
ripemd
ripemd160
rlog
rlogin
rm
rmd160
rmdir
rpc
rpcgen
rs
rsa
rsautl
rsh
rtld
rtprio
rup
ruptime
rusers
rwall
rwho
s2p
safe
sasl
sasldblistusers2
saslpasswd2
sbrk
scache
scale
scan
sched
sched_getparam
sched_getscheduler
sched_get_priority_max
sched_get_priority_min
sched_rr_get_interval
sched_setparam
sched_setscheduler
sched_yield
scon
scp
script
scrollbar
sdiff
sed
seek
select
selection
semctl
semget
semop
send
sendbug
sendfile
sendmail
sendmsg
sendto
services
sess_id
set
setegid
setenv
seteuid
setfacl
setgid
setgroups
setitimer
setlogin
setpgid
setpgrp
setpriority
setregid
setresgid
setresuid
setreuid
setrlimit
setsid
setsockopt
settc
settimeofday
setty
setuid
setvar
sftp
sh
sha
sha1
sha256
shar
shells
shift
shmat
shmctl
shmdt
shmget
showq
shutdown
sigaction
sigaltstack
sigblock
sigmask
sigpause
sigpending
sigprocmask
sigreturn
sigsetmask
sigstack
sigsuspend
sigvec
sigwait
size
slapadd
slapcat
slapd
slapdn
slapindex
slappasswd
slaptest
sleep
slogin
slurpd
smbutil
smime
smtp
smtpd
socket
socketpair
sockstat
soelim
sort
source
spawn
speed
spinbox
spkac
splain
split
squid
squid_ldap_auth
squid_ldap_group
squid_unix_group
sscop
ssh
sshd_config
ssh_config
stab
startslip
stat
statfs
stop
string
strings
strip
stty
su
subst
sum
suspend
swapoff
swapon
switch
symlink
sync
sysarch
syscall
sysconftool
sysconftoolcheck
systat
s_client
s_server
s_time
tabs
tail
talk
tar
tbl
tclsh
tcltest
tclvars
tcopy
tcpdump
tcpslice
tcsh
tee
tell
telltc
telnet
term
termcap
terminfo
test
texindex
texinfo
text
textdomain
tfmtodit
tftp
then
threads
time
tip
tk
tkerror
tkvars
tkwait
tlsmgr
tmac
top
toplevel
touch
tput
tr
trace
trafshow
trap
troff
true
truncate
truss
tset
tsort
tty
ttys
type
tzfile
ui
ul
ulimit
umask
unalias
uname
uncomplete
uncompress
undelete
unexpand
unhash
unifdef
unifdefall
uniq
units
unknown
unlimit
unlink
unmount
unset
unsetenv
until
unvis
update
uplevel
uptime
upvar
usbhidaction
usbhidctl
users
utf8
utimes
utmp
utrace
uudecode
uuencode
uuidgen
vacation
variable
verify
version
vfork
vgrind
vgrindefs
vi
vidcontrol
vidfont
view
virtual
vis
vt220keys
vwait
w
wait
wait3
wait4
waitpid
wall
wc
wget
what
whatis
where
whereis
which
while
who
whoami
whois
window
winfo
wish
wm
write
writev
wtmp
x509
xargs
xgettext
xmlwf
xstr
xsubpp
yacc
yes
ypcat
ypchfn
ypchpass
ypchsh
ypmatch
yppasswd
ypwhich
yyfix
zcat
zcmp
zdiff
zegrep
zfgrep
zforce
zgrep
zmore
znew
_exit
__syscall
 
FreeBSD/Linux/UNIX General Commands Manual
Hypertext Man Pages
inode
 
FS(5)			  FreeBSD File Formats Manual			 FS(5)

NAME
     fs, inode -- format of file system volume

SYNOPSIS
     #include 
     #include 

     #include 
     #include 
     #include 
     #include 

DESCRIPTION
     The files <fs.h> and <inode.h> declare several structures, defined vari-
     ables and macros which are used to create and manage the underlying for-
     mat of file system objects on random access devices (disks).

     The block size and number of blocks which comprise a file system are
     parameters of the file system.  Sectors beginning at BBLOCK and continu-
     ing for BBSIZE are used for a disklabel and for some hardware primary and
     secondary bootstrapping programs.

     The actual file system begins at sector SBLOCK with the super-block that
     is of size SBLOCKSIZE.  The following structure describes the super-block
     and is from the file <ufs/ffs/fs.h>:

     /*
      * Super block for an FFS filesystem.
      */
     struct fs {
	     int32_t  fs_firstfield;	/* historic filesystem linked list, */
	     int32_t  fs_unused_1;	/*     used for incore super blocks */
	     int32_t  fs_sblkno;	/* offset of super-block in filesys */
	     int32_t  fs_cblkno;	/* offset of cyl-block in filesys */
	     int32_t  fs_iblkno;	/* offset of inode-blocks in filesys */
	     int32_t  fs_dblkno;	/* offset of first data after cg */
	     int32_t  fs_old_cgoffset;	/* cylinder group offset in cylinder */
	     int32_t  fs_old_cgmask;	/* used to calc mod fs_ntrak */
	     int32_t  fs_old_time;	/* last time written */
	     int32_t  fs_old_size;	/* number of blocks in fs */
	     int32_t  fs_old_dsize;	/* number of data blocks in fs */
	     int32_t  fs_ncg;		/* number of cylinder groups */
	     int32_t  fs_bsize; 	/* size of basic blocks in fs */
	     int32_t  fs_fsize; 	/* size of frag blocks in fs */
	     int32_t  fs_frag;		/* number of frags in a block in fs */
     /* these are configuration parameters */
	     int32_t  fs_minfree;	/* minimum percentage of free blocks */
	     int32_t  fs_old_rotdelay;	/* num of ms for optimal next block */
	     int32_t  fs_old_rps;	/* disk revolutions per second */
     /* these fields can be computed from the others */
	     int32_t  fs_bmask; 	/* ``blkoff'' calc of blk offsets */
	     int32_t  fs_fmask; 	/* ``fragoff'' calc of frag offsets */
	     int32_t  fs_bshift;	/* ``lblkno'' calc of logical blkno */
	     int32_t  fs_fshift;	/* ``numfrags'' calc number of frags */
     /* these are configuration parameters */
	     int32_t  fs_maxcontig;	/* max number of contiguous blks */
	     int32_t  fs_maxbpg;	/* max number of blks per cyl group */
     /* these fields can be computed from the others */
	     int32_t  fs_fragshift;	/* block to frag shift */
	     int32_t  fs_fsbtodb;	/* fsbtodb and dbtofsb shift constant */
	     int32_t  fs_sbsize;	/* actual size of super block */
	     int32_t  fs_spare1[2];	/* old fs_csmask */
					/* old fs_csshift */
	     int32_t  fs_nindir;	/* value of NINDIR */
	     int32_t  fs_inopb; 	/* value of INOPB */
	     int32_t  fs_old_nspf;	/* value of NSPF */
     /* yet another configuration parameter */
	     int32_t  fs_optim; 	/* optimization preference, see below */
	     int32_t  fs_old_npsect;	/* # sectors/track including spares */
	     int32_t  fs_old_interleave; /* hardware sector interleave */
	     int32_t  fs_old_trackskew; /* sector 0 skew, per track */
	     int32_t  fs_id[2]; 	/* unique filesystem id */
     /* sizes determined by number of cylinder groups and their sizes */
	     int32_t  fs_old_csaddr;	/* blk addr of cyl grp summary area */
	     int32_t  fs_cssize;	/* size of cyl grp summary area */
	     int32_t  fs_cgsize;	/* cylinder group size */
	     int32_t  fs_spare2;	/* old fs_ntrak */
	     int32_t  fs_old_nsect;	/* sectors per track */
	     int32_t  fs_old_spc;	/* sectors per cylinder */
	     int32_t  fs_old_ncyl;	/* cylinders in filesystem */
	     int32_t  fs_old_cpg;	/* cylinders per group */
	     int32_t  fs_ipg;		/* inodes per group */
	     int32_t  fs_fpg;		/* blocks per group * fs_frag */
     /* this data must be re-computed after crashes */
	     struct  csum fs_old_cstotal; /* cylinder summary information */
     /* these fields are cleared at mount time */
	     int8_t   fs_fmod;		/* super block modified flag */
	     int8_t   fs_clean; 	/* filesystem is clean flag */
	     int8_t   fs_ronly; 	/* mounted read-only flag */
	     int8_t   fs_old_flags;	/* old FS_ flags */
	     u_char   fs_fsmnt[MAXMNTLEN]; /* name mounted on */
	     u_char   fs_volname[MAXVOLLEN]; /* volume name */
	     u_int64_t fs_swuid;	/* system-wide uid */
	     int32_t  fs_pad;		/* due to alignment of fs_swuid */
     /* these fields retain the current block allocation info */
	     int32_t  fs_cgrotor;	/* last cg searched */
	     void    *fs_ocsp[NOCSPTRS]; /* padding; was list of fs_cs buffers */
	     u_int8_t *fs_contigdirs;	/* # of contiguously allocated dirs */
	     struct  csum *fs_csp;	/* cg summary info buffer for fs_cs */
	     int32_t *fs_maxcluster;	/* max cluster in each cyl group */
	     u_int   *fs_active;	/* used by snapshots to track fs */
	     int32_t  fs_old_cpc;	/* cyl per cycle in postbl */
	     int32_t  fs_maxbsize;	/* maximum blocking factor permitted */
	     int64_t  fs_sparecon64[17]; /* old rotation block list head */
	     int64_t  fs_sblockloc;	/* byte offset of standard superblock */
	     struct  csum_total fs_cstotal;  /* cylinder summary information */
	     ufs_time_t fs_time;	/* last time written */
	     int64_t  fs_size;		/* number of blocks in fs */
	     int64_t  fs_dsize; 	/* number of data blocks in fs */
	     ufs2_daddr_t fs_csaddr;	/* blk addr of cyl grp summary area */
	     int64_t  fs_pendingblocks; /* blocks in process of being freed */
	     int32_t  fs_pendinginodes; /* inodes in process of being freed */
	     int32_t  fs_snapinum[FSMAXSNAP]; /* list of snapshot inode numbers */
	     int32_t  fs_avgfilesize;	/* expected average file size */
	     int32_t  fs_avgfpdir;	/* expected # of files per directory */
	     int32_t  fs_save_cgsize;	/* save real cg size to use fs_bsize */
	     int32_t  fs_sparecon32[26]; /* reserved for future constants */
	     int32_t  fs_flags; 	/* see FS_ flags below */
	     int32_t  fs_contigsumsize; /* size of cluster summary array */
	     int32_t  fs_maxsymlinklen; /* max length of an internal symlink */
	     int32_t  fs_old_inodefmt;	/* format of on-disk inodes */
	     u_int64_t fs_maxfilesize;	/* maximum representable file size */
	     int64_t  fs_qbmask;	/* ~fs_bmask for use with 64-bit size */
	     int64_t  fs_qfmask;	/* ~fs_fmask for use with 64-bit size */
	     int32_t  fs_state; 	/* validate fs_clean field */
	     int32_t  fs_old_postblformat; /* format of positional layout tables */
	     int32_t  fs_old_nrpos;	/* number of rotational positions */
	     int32_t  fs_spare5[2];	/* old fs_postbloff */
					/* old fs_rotbloff */
	     int32_t  fs_magic; 	/* magic number */
     };

     /*
      * Filesystem identification
      */
     #define FS_UFS1_MAGIC   0x011954	 /* UFS1 fast filesystem magic number */
     #define FS_UFS2_MAGIC   0x19540119  /* UFS2 fast filesystem magic number */
     #define FS_OKAY	     0x7c269d38  /* superblock checksum */
     #define FS_42INODEFMT   -1      /* 4.2BSD inode format */
     #define FS_44INODEFMT   2	     /* 4.4BSD inode format */

     /*
      * Preference for optimization.
      */
     #define FS_OPTTIME      0	     /* minimize allocation time */
     #define FS_OPTSPACE     1	     /* minimize disk fragmentation */

     Each disk drive contains some number of file systems.  A file system con-
     sists of a number of cylinder groups.  Each cylinder group has inodes and
     data.

     A file system is described by its super-block, which in turn describes
     the cylinder groups.  The super-block is critical data and is replicated
     in each cylinder group to protect against catastrophic loss.  This is
     done at file system creation time and the critical super-block data does
     not change, so the copies need not be referenced further unless disaster
     strikes.

     Addresses stored in inodes are capable of addressing fragments of
     `blocks'.	File system blocks of at most size MAXBSIZE can be optionally
     broken into 2, 4, or 8 pieces, each of which is addressable; these pieces
     may be DEV_BSIZE, or some multiple of a DEV_BSIZE unit.

     Large files consist of exclusively large data blocks.  To avoid undue
     wasted disk space, the last data block of a small file is allocated as
     only as many fragments of a large block as are necessary.	The file sys-
     tem format retains only a single pointer to such a fragment, which is a
     piece of a single large block that has been divided.  The size of such a
     fragment is determinable from information in the inode, using the
     blksize(fs, ip, lbn) macro.

     The file system records space availability at the fragment level; to
     determine block availability, aligned fragments are examined.

     The root inode is the root of the file system.  Inode 0 cannot be used
     for normal purposes and historically bad blocks were linked to inode 1,
     thus the root inode is 2 (inode 1 is no longer used for this purpose,
     however numerous dump tapes make this assumption, so we are stuck with
     it).

     The fs_minfree element gives the minimum acceptable percentage of file
     system blocks that may be free.  If the freelist drops below this level
     only the super-user may continue to allocate blocks.  The fs_minfree ele-
     ment may be set to 0 if no reserve of free blocks is deemed necessary,
     however severe performance degradations will be observed if the file sys-
     tem is run at greater than 90% full; thus the default value of fs_minfree
     is 10%.

     Empirically the best trade-off between block fragmentation and overall
     disk utilization at a loading of 90% comes with a fragmentation of 8,
     thus the default fragment size is an eighth of the block size.

     The element fs_optim specifies whether the file system should try to min-
     imize the time spent allocating blocks, or if it should attempt to mini-
     mize the space fragmentation on the disk.	If the value of fs_minfree
     (see above) is less than 10%, then the file system defaults to optimizing
     for space to avoid running out of full sized blocks.  If the value of
     minfree is greater than or equal to 10%, fragmentation is unlikely to be
     problematical, and the file system defaults to optimizing for time.

     Cylinder group related limits: Each cylinder keeps track of the avail-
     ability of blocks at different rotational positions, so that sequential
     blocks can be laid out with minimum rotational latency.  With the default
     of 8 distinguished rotational positions, the resolution of the summary
     information is 2ms for a typical 3600 rpm drive.

     The element fs_old_rotdelay gives the minimum number of milliseconds to
     initiate another disk transfer on the same cylinder.  It is used in
     determining the rotationally optimal layout for disk blocks within a
     file; the default value for fs_old_rotdelay is 2ms.

     Each file system has a statically allocated number of inodes.  An inode
     is allocated for each NBPI bytes of disk space.  The inode allocation
     strategy is extremely conservative.

     MINBSIZE is the smallest allowable block size.  With a MINBSIZE of 4096
     it is possible to create files of size 2^32 with only two levels of indi-
     rection.  MINBSIZE must be big enough to hold a cylinder group block,
     thus changes to (struct cg) must keep its size within MINBSIZE.  Note
     that super-blocks are never more than size SBLOCKSIZE.

     The path name on which the file system is mounted is maintained in
     fs_fsmnt.	MAXMNTLEN defines the amount of space allocated in the super-
     block for this name.  The limit on the amount of summary information per
     file system is defined by MAXCSBUFS.  For a 4096 byte block size, it is
     currently parameterized for a maximum of two million cylinders.

     Per cylinder group information is summarized in blocks allocated from the
     first cylinder group's data blocks.  These blocks are read in from
     fs_csaddr (size fs_cssize) in addition to the super-block.

     N.B.: sizeof(struct csum) must be a power of two in order for the fs_cs()
     macro to work.

     The Super-block for a file system: The size of the rotational layout
     tables is limited by the fact that the super-block is of size SBLOCKSIZE.
     The size of these tables is inversely proportional to the block size of
     the file system.  The size of the tables is increased when sector sizes
     are not powers of two, as this increases the number of cylinders included
     before the rotational pattern repeats (fs_cpc).  The size of the rota-
     tional layout tables is derived from the number of bytes remaining in
     (struct fs).

     The number of blocks of data per cylinder group is limited because cylin-
     der groups are at most one block.	The inode and free block tables must
     fit into a single block after deducting space for the cylinder group
     structure (struct cg).

     The Inode: The inode is the focus of all file activity in the UNIX file
     system.  There is a unique inode allocated for each active file, each
     current directory, each mounted-on file, text file, and the root.	An
     inode is `named' by its device/i-number pair.  For further information,
     see the include file <ufs/ufs/inode.h>.

HISTORY
     A super-block structure named filsys appeared in Version 6 AT&T UNIX.
     The file system described in this manual appeared in 4.2BSD.

FreeBSD 6.1			April 19, 1994			   FreeBSD 6.1
=19273
+591
(85)