freebsd-nq/usr.sbin
Robert Watson bf1e70b230 Reformulate how sysinstall handles file system options in the label
editor, in order to support specifying UFS2 as a newfs option.

(1) Support three different newfs types: NEWFS_UFS, NEWFS_MSDOS, and
    NEWFS_CUSTOM.  Don't mix up the arguments to them: you can't use
    soft updates on an msdos file system.

(2) Distinguish adding new arguments to the newfs command line from
    replacing it.  Permit the addition of new arguments by the user for
    NEWFS_UFS.  If we entirely replace the command line provided by
    sysinstall, call it NEWFS_CUSTOM.  'N' will now add additional
    arguments; 'Z' will opt to replace the newfs command line entirely,
    but will prompt the user with their current command line as a
    starting point.

(3) Construct the newfs command line dynamically based on the options
    provided by the user at label-time.  Right now, this means selecting
    UFS1 vs. UFS2, and the soft updates flag.  Drop in some variables
    to support ACLs and MAC Multilabel in the future also, but don't
    expose them now.

This provides sysinstall with the ability to do more "in band" editing
of the newfs command line, so we can provide more support for the user,
but doesn't sacrifice the ability to entirely specify the newfs command
line of the user is willing to give up on the cushiness factor.  It
also makes it easier for us to specify defaults in the future, and
define conditional behavior based on user configuration selections.
For now, we default to UFS1, and permit UFS2 to be used as the root
only on non-i386 systems.

While I was there, I dropped the default fragment and block sizes,
since newfs has much more sensible defaults now.

Reviewed by:	jhb, marcel
Approved by:	re
ia64 bits from:	marcel
2002-12-03 22:25:47 +00:00
..
ac Remove unused #includes. Eliminate castings by using size_t instead of int. 2002-10-17 13:19:47 +00:00
accton The .Nm utility 2002-07-14 14:47:15 +00:00
acpi mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
adduser Replace the perl versions of adduser and rmuser with shell script versions. 2002-12-03 05:41:09 +00:00
amd Mark all internal libraries with INTERNALLIB. 2002-05-13 11:24:03 +00:00
ancontrol The symbol for Hertz is Hz. 2002-11-04 22:44:42 +00:00
apm Add missing .Nm. Add FBSDID. fprintf -> warnx. Lowercase first letter inside 2002-10-15 16:28:21 +00:00
apmd The .Nm utility 2002-07-14 14:47:15 +00:00
arp Change 'int pid' to 'pid_t pid' 2002-07-25 01:48:19 +00:00
atm de-__P() 2002-10-10 00:32:55 +00:00
bluetooth The second try a committing the bluetooth code 2002-11-20 23:01:59 +00:00
boot0cfg Split MBR and PC98 on-disk sliceformats out from disklabel.h, step 1: 2002-10-01 07:24:55 +00:00
boot98cfg The .Nm utility 2002-07-14 14:47:15 +00:00
bootparamd The .Nm utility 2002-07-14 14:47:15 +00:00
btxld Get howmany() macro from <sys/param.h>, instead of depending on its 2002-09-24 22:30:56 +00:00
burncd mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
cdcontrol The default CD drive is /dev/cd0, not /dev/cd0c. 2002-12-03 15:41:30 +00:00
chkgrp Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
chown Fix a spelling mistake. 2002-07-17 16:22:24 +00:00
chroot The .Nm utility 2002-07-14 14:47:15 +00:00
ckdist mdoc(7) police: s/BSD/.Bx/ where appropriate. 2001-08-14 10:01:54 +00:00
config mdoc(7) police: Removed redundant .Ns calls. 2002-08-13 16:07:28 +00:00
cron Actually use the exitstatus value that we maintain. 2002-10-01 22:59:11 +00:00
crunch Bootstrapping aid for 4.0-RELEASE. 2002-11-13 11:50:40 +00:00
ctm Make the threatened fts(3) ABI fix. FTSENT now avoids the use of the struct 2002-09-21 01:28:41 +00:00
daemon mdoc(7) police: minor formatting tweaks. 2001-08-31 12:52:50 +00:00
dev_mkdb The .Nm utility 2002-07-14 14:47:15 +00:00
devinfo o Don't print devices that aren't attached unless run with the newly 2002-09-20 02:26:58 +00:00
digictl The .Nm utility 2002-07-14 14:47:15 +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 mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
elf2aout Set NO_WERROR to ignore the following warning which is emitted on 2002-07-11 18:06:09 +00:00
elf2exe The .Nm utility 2002-07-14 14:47:15 +00:00
extattr Document the -n option and fix manpage Fl usage. 2002-10-10 17:19:43 +00:00
extattrctl The .Nm utility 2002-07-14 14:47:15 +00:00
faithd The .Nm utility 2002-07-14 14:47:15 +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
getfmac In general, prefer WARNS to CFLAGS+=-Wall. Tend towards a more 2002-12-01 23:10:28 +00:00
getpmac In general, prefer WARNS to CFLAGS+=-Wall. Tend towards a more 2002-12-01 23:10:28 +00:00
gifconfig Correctly handle ifr.ifr_flags/ifr.ifr_flagshigh like ifconfig(8) does. 2002-08-29 12:52:28 +00:00
i4b mdoc(7) police: 2002-11-27 15:24:11 +00:00
ifmcstat The .Nm utility 2002-07-14 14:47:15 +00:00
inetd Add used #include <limits.h>. 2002-10-27 17:46:53 +00:00
iostat Use essentially the same formatting of the CPU stats percentages as in 2002-08-18 17:51:14 +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 The .Nm utility 2002-07-14 14:47:15 +00:00
jail Fix example, we do not need NO_MAKEDEV_RUN any more. 2002-10-22 15:03:51 +00:00
kbdcontrol de-__P() 2002-07-11 21:13:37 +00:00
kbdmap mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
kernbb Include <nlist.h> for nlist interfaces instead of depending on namespace 2002-08-18 17:57:08 +00:00
keyadmin Arrange to not have /* inside a comment. Typo fix. 2002-10-16 15:56:13 +00:00
keyserv Initiate deorbit burn for the i386-only a.out related support. Moves are 2002-09-17 01:49:00 +00:00
kgmon Fix int/size_t mismatch for sysctl arguments. Try not to introduce more 2002-07-30 04:45:14 +00:00
kgzip mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
kldxref This is a userland tool, not a kernel component or libstand client. 2002-07-17 23:41:58 +00:00
lastlogin The .Nm utility 2002-07-14 14:47:15 +00:00
lpr mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
lptcontrol The .Nm utility 2002-07-14 14:47:15 +00:00
mailstats Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
mailwrapper Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
makemap Update build infrastructure for sendmail 8.12. 2002-02-17 22:05:07 +00:00
manctl The .Nm utility 2002-07-14 14:47:15 +00:00
memcontrol mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
mergemaster Don't use NO_MAKEDEV* option, its the default now. 2002-10-22 15:04:32 +00:00
mixer The .Nm utility 2002-07-14 14:47:15 +00:00
mld6query The .Nm utility 2002-07-14 14:47:15 +00:00
mlxcontrol Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
mount_nwfs s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mount_portalfs s/filesystem/file system/g as discussed on -developers 2002-08-21 18:11:48 +00:00
mount_smbfs Add bmake glue for src/contrib/smbfs and connect userland smbfs 2001-12-14 11:41:22 +00:00
mountd s/rpc.mountd/mountd/ 2002-10-16 16:04:50 +00:00
moused Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:30:43 +00:00
mptable
mrouted Check for FD_SET overruns. 2002-09-09 15:45:28 +00:00
mtest The .Nm utility 2002-07-14 14:47:15 +00:00
mtree mtree(8) wasn't a bootstrap tool since 2000/07/23 (Makefile.inc1,v 1.161). 2002-11-13 12:03:27 +00:00
named Install the rfc 2317 notes 2002-07-01 01:23:59 +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 Change 'int pid' to 'pid_t pid' 2002-07-25 01:48:19 +00:00
newsyslog mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
nfsd Update manpage to match the code, vfsload() is not used 2002-08-11 15:19:49 +00:00
ngctl Usage style sweep: spell "usage" with a small 'u'. 2002-04-22 13:44:47 +00:00
nghook The .Nm utility 2002-07-14 14:47:15 +00:00
nologin The .Nm utility 2002-07-06 19:34:18 +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 mdoc(7) police: kill whitespace at EOL. 2002-11-27 15:25:07 +00:00
ofwdump Add a utility to examine the OpenFirmware device tree (on sparc64). This 2002-10-18 15:37:15 +00:00
pccard Remove bogus comments about why we do some silly things, and instead 2002-09-29 23:56:33 +00:00
pciconf Use consistent terminology in the usage message, the man page 2002-09-17 18:10:39 +00:00
pcvt Don't depend on <sys/types.h> pollution in <sys/fcntl.h>. 2002-09-17 17:59:51 +00:00
periodic The .Nm utility 2002-07-14 14:47:15 +00:00
pkg_install Assume that packages passed on stdin are in bzip2 format, not gzip. 2002-11-14 21:01:17 +00:00
pnpinfo Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
ppp utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than 2002-11-15 22:42:00 +00:00
pppctl The .Nm utility 2002-07-14 14:47:15 +00:00
pppd utmp.ut_time and lastlog.ll_time are explicitly int32_t rather than 2002-11-15 22:42:00 +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 The .Nm utility 2002-07-14 14:47:15 +00:00
procctl The .Nm utility 2002-07-14 14:47:15 +00:00
pstat Adjust argument passed to getbsize(). 2002-10-23 18:55:20 +00:00
pw The .Nm utility 2002-07-14 14:47:15 +00:00
pwd_mkdb The .Nm utility 2002-07-14 14:47:15 +00:00
quot another int * to size_t * change for getbsize() to make it compile 2002-10-24 17:43:56 +00:00
quotaon The .Nm utility 2002-07-14 14:47:15 +00:00
rarpd Add "-t" to useage message and comment. (The -t option was added 2002-09-15 15:37:50 +00:00
raycontrol Replace the remaining strcpy() instances with strlcpy(), fixing a segfault 2002-12-02 20:29:08 +00:00
repquota The .Nm utility 2002-07-14 14:47:15 +00:00
rip6query The .Nm utility 2002-07-14 14:47:15 +00:00
rmt The .Nm utility 2002-07-14 14:47:15 +00:00
route6d The .Nm utility 2002-07-14 14:47:15 +00:00
rpc.lockd Remove a case of exposing 'struct ucred' to userspace. Use a struct xucred 2002-08-15 21:52:22 +00:00
rpc.statd use getaddrinfo() instead of gethostbyname(). 2002-07-15 19:02:45 +00:00
rpc.umntall The .Nm utility 2002-07-14 14:47:15 +00:00
rpc.yppasswdd Drop support for COPY, -c has been the default mode of install(1) 2002-07-29 09:40:17 +00:00
rpc.ypupdated Unbogotify the comment containing the RCS Id. 2002-02-15 00:46:32 +00:00
rpc.ypxfrd The .Nm utility 2002-07-14 14:47:15 +00:00
rpcbind mdoc(7) police: 2002-11-27 15:33:47 +00:00
rrenumd Add used #include <limits.h>. 2002-10-27 17:46:53 +00:00
rtadvd The .Nm utility 2002-07-14 14:47:15 +00:00
rtprio Use `The .Nm utility' 2002-04-20 12:27:18 +00:00
rtsold The .Nm utility 2002-07-14 14:47:15 +00:00
rwhod Comment out WARNS?=4 to unbreak the Alpha build. 2002-07-15 17:11:20 +00:00
sa Get rid of %qd, and unbreak Alpha build. 2002-07-15 16:05:15 +00:00
sade Reformulate how sysinstall handles file system options in the label 2002-12-03 22:25:47 +00:00
sendmail Update build infrastructure for sendmail 8.12. 2002-02-17 22:06:20 +00:00
setfmac Mdoc markup and language fixes. 2002-12-03 15:19:15 +00:00
setkey Fix spacing for -P (policy) examples. 2002-07-27 21:06:06 +00:00
setpmac In general, prefer WARNS to CFLAGS+=-Wall. Tend towards a more 2002-12-01 23:10:28 +00:00
sgsc
sicontrol The symbol for Hertz is Hz. 2002-11-04 22:44:42 +00:00
sliplogin The .Nm utility 2002-07-14 14:47:15 +00:00
slstat WARNS=2, de-__P() 2002-07-11 22:50:36 +00:00
spkrtest The .Nm utility 2002-07-14 14:47:15 +00:00
spray do not call clnt_spcreateerror nor clnt_sperror with a NULL pointer, instead 2002-07-15 18:53:52 +00:00
stallion Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:30:43 +00:00
sysinstall Reformulate how sysinstall handles file system options in the label 2002-12-03 22:25:47 +00:00
syslogd mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +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 Remove out-of-date -I. 2002-06-26 01:37:45 +00:00
timed The .Nm utility 2002-07-14 14:47:15 +00:00
traceroute Update for traceroute 1.4a12 2002-07-28 02:27:07 +00:00
traceroute6 Back out previous commit. I was a bit overzealous: the fd_set size is 2002-09-09 16:43:18 +00:00
trpt Unbreak Alpha build. 2002-07-16 09:58:36 +00:00
tzsetup The .Nm utility 2002-07-14 14:47:15 +00:00
ugidfw Stick .Os between .Dd and .Dt 2002-10-20 19:45:39 +00:00
usbd The .Nm utility 2002-07-14 14:47:15 +00:00
usbdevs The .Nm utility 2002-07-14 14:47:15 +00:00
vidcontrol Add a new -H' modifier, which when combined with -p' or `-P' allows to dump 2002-08-19 16:33:23 +00:00
vipw Don't use NULL when we really mean 0 for call to pw_edit. 2002-08-21 19:01:50 +00:00
vnconfig Perform a major cleanup of the usr.sbin Makefiles. 2001-07-20 06:20:32 +00:00
watch The FIONREAD sysctl operates on an int *, not a size_t *. 2002-11-11 10:56:57 +00:00
wicontrol mdoc(7) police: markup fixes. 2002-11-27 15:31:08 +00:00
wlconfig The .Nm utility 2002-07-14 14:47:15 +00:00
xten KNF. 2002-06-12 04:18:35 +00:00
yp_mkdb The .Nm utility 2002-07-14 14:47:15 +00:00
ypbind xids are u_int32_ts, which are not necessarily the same size as time_ts or 2002-09-16 21:39:42 +00:00
yppoll The .Nm utility 2002-07-14 14:47:15 +00:00
yppush The .Nm utility 2002-07-14 14:47:15 +00:00
ypserv The resolver library does a pretty acceptable set of domain 2002-09-20 20:09:27 +00:00
ypset The .Nm utility 2002-07-14 14:47:15 +00:00
zic The .Nm utility 2002-07-14 14:47:15 +00:00
Makefile Build sysinstall on sparc64. 2002-11-01 15:36:06 +00:00
Makefile.inc