freebsd-dev/usr.sbin
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
..
ac I've been meaning to do this for a while. Add an underscore to the 2002-01-19 23:20:02 +00:00
accton Fix typo: to examining -> to examine. 2002-03-08 01:29:06 +00:00
acpi Fix bug on method local named object related panic and Bankfield 2002-03-02 15:05:26 +00:00
adduser Found a single point where rmuser(8) wasn't robust to strange 2002-02-11 15:26:20 +00:00
amd Mark all internal libraries with INTERNALLIB. 2002-05-13 11:24:03 +00:00
ancontrol Added missing DPADD detected by ``make checkdpadd''. 2002-06-06 11:30:57 +00:00
apm Minor grammar fix: 2002-03-08 12:48:05 +00:00
apmd Handle snprintf() returning < 0 (not just -1) 2001-08-20 15:09:34 +00:00
arp Unbreak this file after the last drive-by committing. We have to 2002-05-09 00:37:57 +00:00
atm - Convert a bunch of macros to the actual function they're calling. These 2002-05-16 23:57:37 +00:00
boot0cfg Remove references to the update/noupdate flag from the description 2002-05-28 17:53:52 +00:00
boot98cfg Fix typo: s/secotor/sector/. 2002-03-08 13:50:28 +00:00
bootparamd can not -> cannot 2001-08-08 18:32:06 +00:00
btxld mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
burncd Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
cdcontrol mdoc(7) police: tidy up the markup. 2002-05-30 07:34:10 +00:00
chkgrp Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
chown Don't exit immediately if an error occurs, continue but exit non-zero. 2002-06-02 09:32:39 +00:00
chroot Pedantry to satisfy the bin/34159 author. 2002-03-15 12:24:44 +00:00
ckdist mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
config Consistancy check: s/file system/filesystem/g 2002-05-16 02:28:39 +00:00
cron load_env(), the function that attempts to parse a crontab 2002-05-23 13:16:30 +00:00
crunch mdoc(7) police: markup nit. 2002-05-30 07:51:22 +00:00
ctm Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
daemon mdoc(7) police: minor formatting tweaks. 2001-08-31 12:52:50 +00:00
dev_mkdb o remove __P 2002-03-18 07:23:41 +00:00
devinfo Typo fix: syste -> system 2002-05-31 01:46:26 +00:00
digictl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
editmap Add editmap, a new utility which comes with sendmail 8.12 for editing maps in 2002-02-17 22:02:59 +00:00
edquota Reorder WARNS line for style. 2001-12-10 21:13:36 +00:00
elf2aout Make it work for a different endianness binary. 2002-05-25 13:43:16 +00:00
elf2exe This manpage is for Alpha only. 2002-05-23 07:38:51 +00:00
extattrctl Clean up usage message: don't put optional parameter's in brackets. 2002-04-19 01:42:55 +00:00
faithd mdoc(7) police: don't use .Pq with plain text, this breaks hyphenation. 2002-05-30 07:53:53 +00:00
fdcontrol mdoc(7) police: tidy up the markup. 2002-01-10 17:41:22 +00:00
fdformat Include <string.h> for some prototypes, rather than depending on 2002-04-01 21:13:17 +00:00
fdread Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
fdwrite Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
getextattr Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
gifconfig mdoc(7) police: fix markup, remove stray .Xr. 2001-12-21 08:10:28 +00:00
i4b demon -> daemon 2002-05-11 23:20:53 +00:00
ifmcstat Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
inetd Log invalid config entries. Make the -d option actually log to 2002-05-26 04:43:26 +00:00
iostat Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
ipftest * ipftest now compiles with IPFILTER_LOG and needs ip_log.c to be able to 2002-03-20 08:57:10 +00:00
ipresend Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ipsend Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
iptest Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
IPXrouted Fix syntax error (label with no statement). 2002-05-30 21:49:15 +00:00
jail Fix IP address typo. 2002-05-20 07:29:25 +00:00
kbdcontrol Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
kbdmap Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
kernbb Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
keyadmin Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
keyserv Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
kgmon Update kgmon.8 to refer to /boot/kernel/kernel on -CURRENT, rather than 2002-03-28 00:16:49 +00:00
kgzip mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
kldxref Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
lastlogin Don't depend on <pwd.h> to bogusly include <sys/types.h>. 2002-06-09 19:29:55 +00:00
lpr Just rename two generic-queue init routines from 'init_*' to '*_gi' 2002-06-16 01:51:37 +00:00
lptcontrol Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
mailstats Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
mailwrapper Add the missing hoststat and purgestat commands. These are normally 2002-04-05 04:25:14 +00:00
makemap Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
manctl Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
memcontrol Make the MTRR code a bit more defensive - this should help people 2002-04-14 20:19:13 +00:00
mergemaster Go back to taking the user's umask into account. Thanks to Alfred for 2002-06-10 07:16:42 +00:00
mixer Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mld6query Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mlxcontrol Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mount_nwfs mdoc(7) police: nits. 2002-05-29 16:47:55 +00:00
mount_portalfs o __P removed 2002-03-21 13:14:21 +00:00
mount_smbfs Add bmake glue for src/contrib/smbfs and connect userland smbfs 2001-12-14 11:41:22 +00:00
mountd more file system > filesystem 2002-05-16 04:10:46 +00:00
moused Work around a code generation bug of GCC 3.1 by replacing 2002-05-19 06:53:20 +00:00
mptable
mrouted Mark all internal libraries with INTERNALLIB. 2002-05-13 11:24:03 +00:00
mtest Include missing header files which define functions for which gcc has 2001-06-24 20:25:23 +00:00
mtree Assume __STDC__, remove non-__STDC__ code. 2002-05-28 19:23:47 +00:00
named Remove DESTDIR which is already included in DOCDIR. 2002-05-31 10:37:22 +00:00
named.reload Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
named.restart Remove whitespace at EOL. 2001-07-15 08:06:20 +00:00
ndc Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ndp Do not delete 'goto ours' routes when using -c option. 2001-08-09 19:40:35 +00:00
newsyslog style(9): sort includes, remove EOL spaces. 2002-05-03 21:03:37 +00:00
nfsd Fix spelling nit in error message. 2002-06-05 01:06:33 +00:00
ngctl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
nghook mdoc(7) police: protect trailing full stops of abbreviations 2001-08-10 13:45:36 +00:00
nologin Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
nslookup Install files via FILES. 2001-12-17 16:21:59 +00:00
nsupdate Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ntp Fix spelling errors: minumum, overriden, inheritted 2002-06-02 10:41:43 +00:00
pccard Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
pciconf mdoc(7) police: make SYNOPSIS really match usage(). 2002-05-30 08:20:35 +00:00
pcvt Comment out comments trailing #endif directives 2002-05-28 21:52:10 +00:00
periodic Mention the ``end of output'' for each periodic script. 2002-05-14 01:15:35 +00:00
pkg_install Reorder libraries to fix static linking (libssl depends on libcrypto, so 2002-06-12 12:45:24 +00:00
pnpinfo Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ppp Compensate for dodgy Win98/WinME MSCHAPv2 responses later in the code 2002-06-17 01:12:38 +00:00
pppctl *** empty log message *** 2001-10-01 08:43:58 +00:00
pppd inet_aton returns 0 on failure, not -1. 2002-05-06 08:39:43 +00:00
pppstats Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
praliases Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
prefix Use the SCRIPTS knob. 2002-04-29 15:43:47 +00:00
procctl Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
pstat If unable to retrive maxfiles / openfiles, fail rather than print garbage. 2002-05-28 06:52:21 +00:00
pw In the words of the submitter: 2002-04-05 08:39:31 +00:00
pwd_mkdb Consistancy check: s/file system/filesystem/g 2002-05-16 02:28:39 +00:00
quot This commit adds basic support for the UFS2 filesystem. The UFS2 2002-06-21 06:18:05 +00:00
quotaon Consistancy check: s/file system/filesystem/g 2002-05-16 02:28:39 +00:00
rarpd Fix buildworld breakage. 2002-05-09 14:15:57 +00:00
raycontrol Whack this code with the Blessed Wand of Stack Protection. 2001-08-08 22:27:02 +00:00
repquota Consistancy check: s/file system/filesystem/g 2002-05-16 02:28:39 +00:00
rip6query Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
rmt atol -> strtoll, for file offset 2001-09-05 17:05:31 +00:00
route6d mdoc(7) police: 2001-08-07 15:48:51 +00:00
rpc.lockd When binding to transports if getnetconfigent() fails then actually 2002-04-11 07:19:30 +00:00
rpc.statd rename 'enum res' and 'struct status' to 'enum sm_res' and 'struct sm_status' 2002-03-22 19:43:21 +00:00
rpc.umntall Don't ignore SIGINT and SIGQUIT. The comment said "Ignore SIGINT 2001-12-09 20:18:36 +00:00
rpc.yppasswdd Unbreak Alpha build. 2002-05-15 09:20:06 +00:00
rpc.ypupdated Unbogotify the comment containing the RCS Id. 2002-02-15 00:46:32 +00:00
rpc.ypxfrd Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
rpcbind Stop this program's abuse of malloc(3). Its return value doesn't need these 2002-05-17 05:27:52 +00:00
rrenumd mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
rtadvd Do not issue deprecated ioctl. 2002-06-15 18:56:32 +00:00
rtprio Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
rtsold Explicitly specifies sin6_family & sin6_len of sockaddr_in6 for raw socket 2002-04-19 11:39:54 +00:00
rwhod Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
sa Fixed divots that I created when I moved prototypes of group_from_gid 2002-02-19 00:05:59 +00:00
sade Change our default XF86Config location from /etc/ to /etc/X11/, 2002-06-10 04:47:26 +00:00
sendmail Update build infrastructure for sendmail 8.12. 2002-02-17 22:06:20 +00:00
setextattr Replace /kernel with /boot/kernel/kernel. 2002-05-09 11:47:42 +00:00
setkey Don't install scriptdump which is written in Perl. This is 2002-05-16 15:44:08 +00:00
sgsc
sicontrol Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
sliplogin Fix conflict with <paths.h> by renaming _PATH_LOGIN to _PATH_SLIP_LOGIN, 2002-05-30 21:26:49 +00:00
slstat The interface index space may be sparsely populated (e.g. when an 2001-10-17 04:12:29 +00:00
spkrtest Replace the perl script version of this with a sh(1) script. 2002-05-16 18:51:57 +00:00
spray Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
stallion Comment in the man page and warning in stlload (when stlload fails) to make 2002-02-11 02:34:25 +00:00
sysinstall Change our default XF86Config location from /etc/ to /etc/X11/, 2002-06-10 04:47:26 +00:00
syslogd Consistancy check: s/file system/filesystem/g 2002-05-16 02:28:39 +00:00
tcpdchk Don't clobber CFLAGS. 2001-08-04 21:48:18 +00:00
tcpdmatch Don't clobber the default for CFLAGS. 2001-08-31 11:05:24 +00:00
tcpdump Update for tcpdump 3.7.1 2002-06-21 00:52:33 +00:00
timed timed(8) manual page has some incorrect grammer 2002-04-09 20:47:17 +00:00
traceroute Set BINOWN=root explicitly for setuid root binaries. 2001-09-13 06:48:18 +00:00
traceroute6 Don't override BINGRP -- this binary is not ``setgid bin''. 2001-09-13 06:52:42 +00:00
trpt Remove bogus cast. 2002-05-15 09:36:46 +00:00
tzsetup Explicitly cast NCONTINENTS to int to silence an overflow warning. 2002-05-15 09:39:31 +00:00
usbd Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
usbdevs Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
vidcontrol Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
vipw Use libutil and libypclnt for all passwd manipulation and NIS needs. 2002-05-08 00:54:29 +00:00
vnconfig Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
watch de __P 2002-06-12 04:28:15 +00:00
wicontrol As far as I can tell, the maximum packet size for 802.11b is 2346, 2002-05-27 13:39:01 +00:00
wlconfig mdoc(7) police: join split punctuation to macro calls. 2001-08-10 17:35:21 +00:00
xten KNF. 2002-06-12 04:18:35 +00:00
yp_mkdb Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
ypbind Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
yppoll ANSIfy and remove some dead code. 2002-02-06 15:26:07 +00:00
yppush Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
ypserv Fix a boatload of format errors and constness violations. 2002-05-08 15:41:15 +00:00
ypset Spell void * as void * rather than caddr_t. This is complicated by the 2002-04-28 15:18:50 +00:00
zic Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
Makefile Don't install obsolete gifconfig(8). Please use ifconfig(8) instead. 2002-06-15 18:04:51 +00:00
Makefile.inc