1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00
freebsd/usr.bin
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
..
apply Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
ar Add .Pp before enumerating options 2002-04-19 23:18:18 +00:00
asa mdoc(7) police: minor markup nits. 2002-05-30 13:33:59 +00:00
at mdoc(7) police: lint. 2002-05-29 18:00:23 +00:00
awk BWK awk appears to work for world builds just fine now. We want to make 2002-05-10 20:36:21 +00:00
banner remove __P 2002-03-22 01:22:50 +00:00
basename Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
biff Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
brandelf Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
bzip2 Complete bzip2-1.0.2 import. 2002-02-01 16:33:40 +00:00
c89 Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
calendar Remove 17 June as German national holiday. 2002-06-16 22:59:21 +00:00
cap_mkdb Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
catman mdoc(7) police: tidy up. 2002-05-30 13:39:43 +00:00
chat Remove GCC-specific flags. 2002-04-28 13:53:38 +00:00
checknr Use `The .Nm utility'. Introduce options with well known sentence. 2002-04-19 23:23:28 +00:00
chflags Reorder for style. 2002-04-28 13:54:45 +00:00
chkey Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
chpass Use libutil and libypclnt for all passwd manipulation and NIS needs. 2002-05-08 00:54:29 +00:00
cksum remove __P 2002-03-22 01:22:50 +00:00
cmp No need to check for "-" explicitly in getopt() loop. 2002-06-07 02:35:21 +00:00
col Sort options in Description section. 2002-06-04 09:17:30 +00:00
colcrt Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
colldef Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
colrm Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
column remove __P 2002-03-22 01:22:50 +00:00
comm Add a History section. comm(1) appeared in V4. 2002-05-28 09:35:30 +00:00
compile_et
compress mdoc(7) police: lint. 2002-05-29 18:12:21 +00:00
csplit Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
ctags Document conformance to IEEE Std 1003.1-2001. 2002-05-30 12:13:18 +00:00
cut cut(1) appeared at least as early as System III. 2002-06-11 08:11:12 +00:00
dig
dirname remove __P 2002-03-22 01:22:50 +00:00
dnskeygen
dnsquery
doscmd More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
du More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
ee Assume __STDC__, remove non-__STDC__ code. 2002-05-28 19:23:47 +00:00
elf2aout Make it work for a different endianness binary. 2002-05-25 13:43:16 +00:00
enigma Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
env Indicate that env(1) allows you to supply arguments to the utility it 2002-06-19 07:09:44 +00:00
expand Remove obsolescent -tabstop option from Synopsis (it was already removed 2002-06-15 10:52:20 +00:00
false A function which takes no arguments has an argument list spelled (void) in the 2002-06-20 05:35:40 +00:00
fetch Reorder LDADD to fix static linking. 2002-06-12 12:46:50 +00:00
file Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
file2c Modernize my email address 2002-03-25 13:53:46 +00:00
find Support the SysV-style -exec utility args.. {} + function, required by 2002-06-02 12:57:41 +00:00
finger Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
fmt Very minor whitespace nit. 2002-04-28 13:59:42 +00:00
fold Only advance the column position for printable characters, update manual 2002-06-17 12:11:05 +00:00
from Introduce flags enumeration with standard 2002-03-26 12:15:31 +00:00
fstat This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
fsync Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00
ftp Update for lukemftp-1.6-beta2. 2002-06-15 09:42:17 +00:00
gcore Use `The .Nm utility' 2002-04-19 23:44:58 +00:00
gencat Use mkstemp(3) to avoid /tmp race. 2002-05-29 14:23:10 +00:00
getconf confstr() returns (size_t)-1 on failure. Check for this explicitly instead 2002-06-04 08:45:38 +00:00
getopt Minor nit; return(foo) from main rather than exit(foo). 2002-04-28 14:04:24 +00:00
gprof Fix preprocessor directive syntax (text after #endif). 2002-05-30 21:18:01 +00:00
head Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
help Add support for non-numeric key lookup via the 'cmds' file, by using the key 2002-06-04 06:14:11 +00:00
hesinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
hexdump mdoc(7) police: tidy up the markup. 2002-05-29 18:49:22 +00:00
host
id remove __P 2002-03-22 01:22:50 +00:00
indent Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ipcrm Add some function prototypes to squash warnings. 2002-04-28 13:49:15 +00:00
ipcs Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
join Remove -j from synopsis. The form given in the synopsis was incorrect, 2002-06-10 10:39:33 +00:00
jot Remove local prototype for main(). 2002-06-15 11:28:09 +00:00
kdump I now don't seem to be able to reproduce the -DNOCLEAN buildworld 2002-04-11 14:49:32 +00:00
kenv mdoc(7) police: punctuation. 2002-05-29 18:52:02 +00:00
keylogin Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
keylogout Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
killall mdoc(7) police: lint. 2002-05-29 18:53:22 +00:00
ktrace Warnings fix; ANSIfy, constify, mark unused function parameter(s). 2002-04-28 13:00:16 +00:00
ktrdump Added missing DPADD detected by ``make checkdpadd''. 2002-06-06 11:30:57 +00:00
lam Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
last Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
lastcomm Use `The .Nm utility'. Add section number to .Xr. 2002-04-20 21:28:47 +00:00
ldd Fix a tiny bug in shlib support of ldd(1); if dlopen(lib, RTLD_TRACE) 2002-05-17 17:06:56 +00:00
leave Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
less Update for less v371 2002-01-07 20:37:33 +00:00
lessecho
lesskey
lex Added new bsd.incs.mk which handles installing of header files 2002-05-12 16:01:00 +00:00
limits Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
locate Make locate.updatedb tell about the security risk when it is run as root. 2002-06-19 19:22:18 +00:00
lock Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lockf Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
logger .Nm is not required at the begining of this sentence. 2002-04-20 21:33:10 +00:00
login Drive-by whitespace cleanup. 2002-05-28 06:46:37 +00:00
logname remove __P 2002-03-22 01:22:50 +00:00
look Fix a const-char vs char issue. 2002-04-28 12:39:12 +00:00
lorder Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
lsvfs More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
m4 Whitespace fixes to line-up EOL escapes whose right-most extraints changed in 2002-06-20 11:17:46 +00:00
mail Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
make Fix a bug fixed by NetBSD in revision 1.42 of parse.c by christos which caused 2002-06-20 19:51:13 +00:00
makewhatis Use size_t or ino_t instead of int, and remove a few warnings. 2002-06-07 01:01:08 +00:00
mesg Affect the first of stdin, stdout and stderr that is attached to a terminal. 2002-05-06 04:33:04 +00:00
minigzip Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkdep Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mkfifo Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
mklocale Declarations cleanup; make sure externs are in a common header. 2002-04-28 12:34:54 +00:00
mkstr warns fixes; ANSIfy, deregister, constify. 2002-04-28 12:28:41 +00:00
mktemp Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
msgs mdoc(7) police: removed unnecessary .Ns. 2002-05-30 05:52:19 +00:00
mt mdoc(7) police: removed unnecessary .Ns. 2002-05-30 05:52:19 +00:00
ncal Correct History: cal(1) appeared in V5, not V6. 2002-06-03 15:02:02 +00:00
ncplist Style fixes; whitespace and header order. 2002-04-28 12:21:31 +00:00
ncplogin Fix VCS inclusion and tidy up #includes. 2002-04-28 12:19:30 +00:00
netstat Use calculated column widths for the routing table display when -W is 2002-06-05 18:29:26 +00:00
newgrp mdoc(7) police: one minor change that was not probably worth a commit. 2002-05-30 13:57:35 +00:00
newkey ANSIfy, VCS inclusions and some very minor style. 2002-04-28 12:09:33 +00:00
nfsstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
nice Correct History: nice(1) appeared in V4. 2002-06-03 14:56:57 +00:00
nl The XCU issue 5 requirement of accepting the file operand intermingled 2002-05-27 06:53:54 +00:00
nm Fix some easy warnings; ANSIfy, constify. 2002-04-28 12:04:20 +00:00
nohup remove __P 2002-03-22 01:33:25 +00:00
objformat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
opieinfo Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
opiekey Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
opiepasswd Add opie lib dir to includes list 2002-01-03 21:20:29 +00:00
pagesize Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
passwd #include <stdlib.h> for exit(3) prototype. 2002-05-11 03:18:14 +00:00
paste paste(1) appeared at least as early as 32v. 2002-06-11 08:13:03 +00:00
pathchk When stat(2) fails, put the name of the component it failed on in the 2002-06-10 10:03:46 +00:00
perl Install a "perl5.6.1" wrapper. I think this is going too far as now 2002-06-07 18:55:42 +00:00
pr Don't convert a single space before a tab stop into a tab when the 2002-06-19 01:45:03 +00:00
printenv Indicate that env(1) allows you to supply arguments to the utility it 2002-06-19 07:09:44 +00:00
printf Fix duplicate % in %b format introduced in rev 1.22. 2002-06-19 09:42:20 +00:00
quota Call getmntinfo with MNT_NOWAIT to avoid hanging if any NFS servers 2002-06-03 12:06:49 +00:00
ranlib ANSIfy functions, and move extern declarations into a shared header 2002-04-28 11:59:43 +00:00
renice Add Standards section. 2002-06-17 13:37:31 +00:00
rev remove __P 2002-03-22 01:33:25 +00:00
rlogin Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
rpcgen Back out part of previous commit - K&R doesn't have const. 2002-05-09 11:24:58 +00:00
rpcinfo Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
rs Contrary to what the comments said, rs -H did not recycle storage, it just 2002-06-07 07:08:06 +00:00
rsh Use <paths.h> rather than "pathnames.h", and fix a couple of whitespace nits. 2002-05-08 00:47:01 +00:00
rup Style only; format function declarations, sort header includes, and 2002-04-28 10:49:15 +00:00
ruptime Use __FBSDID(), ANSIfy headings, use const/unsigned in minor but 2002-04-28 10:56:09 +00:00
rusers Trivial warnings fixes; staticise and use unsigned. 2002-04-28 11:13:20 +00:00
rwall Revert/fix the most controversial parts of the last commit: 2002-03-07 14:11:41 +00:00
rwho remove __P 2002-03-22 01:33:25 +00:00
sasc remove __P 2002-03-22 01:42:45 +00:00
sccs We have a version of help(SCCS) in /usr/bin now. 2002-06-01 01:07:50 +00:00
script Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
sed Kill superfluous blank line. 2002-06-17 08:21:53 +00:00
shar mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
showmount More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
size Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
smbutil Add bmake glue for src/contrib/smbfs and connect userland smbfs 2001-12-14 11:41:22 +00:00
sockstat Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
soelim Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
split Remove <sys/types> where we use <sys/param> already. 2002-06-15 11:03:28 +00:00
stat Virgin import of NetBSD's stat(1) 2002-06-06 19:27:17 +00:00
strings Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
strip Do not override the `install' target. 2002-04-29 10:28:11 +00:00
su Make our child the leader of its own process group to avoid receiving 2002-05-29 03:32:17 +00:00
symorder Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
systat debug.{numvnodes,freevnodes} moved to vfs. 2002-06-06 23:01:50 +00:00
tabs Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
tail Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
talk nroff and pr no longer try to disallow messages. 2002-06-08 10:19:07 +00:00
tconv Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tcopy Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
tee Revert part of the previous revision. Changing exit() to return() in main() 2002-05-17 11:16:49 +00:00
telnet Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
tftp mdoc(7) police: markup nits. 2002-05-30 06:18:53 +00:00
time time(1) does not use the shell to execute the specified utility, remove 2002-06-20 07:12:34 +00:00
tip More consistancy. file system > filesystem 2002-05-16 02:19:14 +00:00
top remove __P 2002-03-22 01:42:45 +00:00
touch remove __P 2002-03-22 01:42:45 +00:00
tput Sort sections. 2002-06-15 08:41:12 +00:00
tr Improve parsing of character and equivalence classes: 2002-06-15 07:38:27 +00:00
true A function which takes no arguments has an argument list spelled (void) in the 2002-06-20 05:35:40 +00:00
truncate remove __P 2002-03-22 01:42:45 +00:00
truss OOPS! rev 1.16 accidently changed the default outfile from stderr to 2002-05-16 21:58:57 +00:00
tset Clean up malloc(3)'s argument. Remove casts which do nothing when we're 2002-05-17 05:11:07 +00:00
tsort Style nit: group together optional flags under the one Fl macro. 2002-06-07 01:17:54 +00:00
tty A space between switch and open-paren. Don't explicitly cast the value 2002-05-29 17:12:30 +00:00
uac Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
ul Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uname Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
unexpand Allow <blank>s to be used to separate tab stop positions with the -t 2002-06-15 10:16:39 +00:00
unifdef Character 0 is nul not null. 2002-05-30 11:42:44 +00:00
uniq Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
units Add tbl and tbsp as contractions of tablespoon, and tsp for teaspoon. 2001-12-18 11:25:58 +00:00
unvis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
usbhidctl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
users Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
uudecode Synch usage() and manpage for b64encode/b64decode. 2002-05-19 11:22:54 +00:00
uuencode Fix a late-night buglet in MLINKS ordering. 2002-05-19 20:39:42 +00:00
uuidgen mdoc(7) police: kill hard sentence breaks. 2002-05-30 14:10:44 +00:00
vacation Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
vgrind Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vi Remove Perl and TCL/TK bits, neither of which are in the base system 2002-05-18 14:27:17 +00:00
vis Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
vmstat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
w ANSI style function declarations. 2002-06-07 01:41:54 +00:00
wall Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
wc When counting words, check the correct character variable to see whether it's 2002-06-16 06:04:43 +00:00
what Document standards conformance. 2002-05-29 13:45:16 +00:00
whereis mdoc(7) police: removed HISTORY info from the .Os call. 2001-07-10 14:16:33 +00:00
which which(1) was once a Perl script. 2002-05-30 08:33:13 +00:00
who Style: put static qualifier on definition of static functions. 2002-06-20 07:36:22 +00:00
whois Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
window Use POSIX macros for wait(2)-style status information instead of the 2002-06-03 23:13:11 +00:00
write Use getopt() to reject any options and skip "--" arguments. 2002-05-29 13:14:51 +00:00
xargs Note that this appeared at least as early as PWB UNIX. 2002-06-10 22:59:59 +00:00
xinstall Start the (overdue) de-orbit sequence for the -d -C combo, 2002-06-05 17:37:48 +00:00
xlint Make sure the file in Attic is really "dead". 2002-05-07 06:57:04 +00:00
xstr Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
yacc Use the constants from <limits.h> for the sizes of integral C types 2002-06-11 11:27:20 +00:00
yes Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypcat Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypmatch Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
ypwhich Use `The .Nm utility' 2002-04-20 12:18:28 +00:00
Makefile Per previous discussion, and with Mark's blessing, update the value 2002-06-09 09:28:02 +00:00
Makefile.inc Backout -Werror protection. No need to walk all over the upcoming 2002-02-06 18:13:12 +00:00