Commit Graph

3195 Commits

Author SHA1 Message Date
simonb 8cd68a2ff9 Setting BINMODE=555 is redundant, as is setting BIN{OWN,GRP} of we're
using the default BINMODE.
2002-08-02 03:58:09 +00:00
christos 8e5a0987a4 support utmpx 2002-08-02 02:07:09 +00:00
itojun f104c36660 u_short cleansing (use u_int16_t where appropriate) 2002-08-01 08:56:59 +00:00
wiz 92b80e91d7 Format the path to a file with .Pa. 2002-07-29 21:08:30 +00:00
thorpej 1384fef106 Note that not all watchdog timers can be disarmed once armed, and that
when such a case is encountered, an error message will be displayed and
the timer will remain armed if an attempt to disarm it is made.
2002-07-29 21:00:15 +00:00
manu 3966af389b Enable USE_MBR for all arm ports. 2002-07-28 15:17:38 +00:00
christos 06596adfbd add utmpx/wtmpx processing support. 2002-07-27 23:49:47 +00:00
manu 3f13baf349 Added fdisk on hpcarm 2002-07-26 17:22:51 +00:00
joda 72d8f527fb various spelling 2002-07-24 14:14:10 +00:00
grant 6742cb1812 sweep of errx/warnx, remove unnecessary trailing \n 2002-07-20 08:36:17 +00:00
tsutsui 4b541a44d0 Drop a trailing space in bootstr[] properly. 2002-07-20 06:44:45 +00:00
wiz 7b1f0f9426 Remove duplicate 'to'. From Ryo HAYASAKA in bin/17562. 2002-07-11 15:06:04 +00:00
wiz 1322c69689 Nit. 2002-07-09 22:51:13 +00:00
jdolecek 0fb4a207d2 This isn't i386 specific (also macppc) 2002-07-09 22:11:50 +00:00
dbj 913e76340c get pdisk compiling on macppc and mac68k 2002-07-09 05:57:32 +00:00
yamt e9ae5a9bbd add a new command, "keeplabel". 2002-07-01 18:49:57 +00:00
dbj c88ccea33d commit fix from pr bin/15449
this fixes FS_42POSTBLFMT compatibility
2002-06-30 22:57:30 +00:00
lukem 71764f4db5 KNF, remove unnecessary crap, ... 2002-06-30 14:17:44 +00:00
lukem 5f212d76c6 use strnode_add() to implement add_before() 2002-06-30 13:31:15 +00:00
grant 97a9e02381 disallow creation of partitions which start beyond (or extend beyond)
the end of the disk.
2002-06-29 15:24:03 +00:00
wiz 5081d82d22 Punctuation vs. markup nits, and use .Dq instead of double quotes. 2002-06-26 18:07:21 +00:00
mjacob 41194c0e70 Add a bunch of stuff from Bob Nestor that fixes format to allow one to
specify device logical blocksize.

Furthermore, it also adds an 'immediate' option, which then sends more modern
devices into formatting in the background. scsictl still waits around and
sends a TEST UNIT READY every 10 seconds and, based upon the sense data
it gets back after the invariable CHECK CONDITION, prints out a progress
indicator (based upon SKSV progress in the sense data).

While we're at it, add a 'tur', 'reserve', 'release', 'start' and 'stop'
functions to the device commands.

Fix a long standing bug in scsi_command- the value in retsts is an integral
value- not a bitmask.
2002-06-26 16:04:11 +00:00
jdolecek d1f10f9f74 Support 'dp' as mount option for 'sw' fstype, so it DTRT for entries like:
/dev/wd0b none swap sw,dp 0 0
2002-06-21 09:04:16 +00:00
itojun 53daf81056 correct usage (-n) 2002-06-21 07:48:53 +00:00
itojun a532d33818 USE_MBR on macppc too 2002-06-18 00:21:53 +00:00
itojun cd668e919e need disklabel_mbr.h for USE_MBR build 2002-06-18 00:19:27 +00:00
itojun 245453be61 mbr for FDISK-formatted macppc disk 2002-06-17 15:25:45 +00:00
itojun b11bd24490 fdisk is now useful for macppc, build it 2002-06-17 15:11:46 +00:00
wrstuden 0e65ecc5d2 Catch error code from mount command, and if it's the
error given when we ask for a v3 mount on a v2-only kernel,
*and* we weren't forcing v3, try the mount again as a v2 mount
before erroring out.
2002-06-16 02:27:31 +00:00
itojun e923169715 grab eui64 only from the same interface. 2002-06-14 09:12:08 +00:00
itojun 331dc975fb support "eui64" option (grab interface ID from link-local addr).
from: ww@styx.org
2002-06-14 09:01:59 +00:00
itojun 65eb0105f4 init variable before strtoul 2002-06-14 01:07:00 +00:00
itojun 5bcf2ac974 metric and mtu are u_long, not int. 2002-06-14 01:04:41 +00:00
wiz 3443a24794 Seems I was overzealous. Undo part of last, noted by grant. 2002-06-11 13:58:09 +00:00
wiz d354ad6e04 Fix copyright, and some minor mdoc improvements. 2002-06-11 13:45:35 +00:00
grant 39541f4926 add ccd.conf(5) 2002-06-11 13:33:48 +00:00
itojun d24b68cd4f permit DNS names to address portion. they will be considered as RTF_HOST
if specified as destination (as there's no getnetbyname in IPv6).
2002-06-10 21:18:53 +00:00
itojun 0dcc61701e now "ifconfig tunnel" is usable for gre too, change wording slightly 2002-06-09 17:47:33 +00:00
itojun a1662dac72 if we're unsure about prefixlen, don't say "128". 2002-06-05 22:11:28 +00:00
itojun 65829ef6aa more correct ion to RTF_HOST handling. 2002-06-05 22:10:44 +00:00
yamt 15da77e3d3 exit on EOF from stdin. 2002-06-05 12:19:23 +00:00
augustss 1225b61055 Make it possible to see \ in dmesg. 2002-06-05 06:31:21 +00:00
itojun fff7bbceef do not have -prefixlen 128 on RTF_HOST.
From: Dawid Szymanski <dawszy@arhea.net>
2002-06-04 22:20:00 +00:00
itojun d816e24b39 avoid fd_set overrun. 2002-05-31 22:10:18 +00:00
atatat 16790d2404 Add descriptions of the "self" symbolic link and the "maps" pseudo file.
Also note the kernel option that is required in order to get pathnames
with file backed entries in the "maps" pseudo file.
2002-05-31 16:48:28 +00:00
itojun b31318e482 KNF, from openbsd via kame 2002-05-31 10:22:11 +00:00
itojun 16e84a7542 clarify comment when nreceived > ntransmitted. from deraadt 2002-05-31 01:10:53 +00:00
itojun 08f5f94674 typo, from openbsd 2002-05-30 21:32:18 +00:00
thorpej 313148a4db Fix Missing %s in format string. 2002-05-30 17:02:17 +00:00
msaitoh 48b457ab6c document vfs.nfs.iothreads 2002-05-29 23:30:50 +00:00
cjs 9af8b52f66 When RPC fails, state explicitly which service we were trying to connect to. 2002-05-29 02:19:56 +00:00
itojun 256a128339 document net.inet6.ip6.maxfrags 2002-05-28 03:17:26 +00:00
drochner ec943f317b display / read the p_cdsession field in the FS_ISO9660 case 2002-05-27 17:33:08 +00:00
itojun 7f0c96b84b KNF. remove unused variable "signo". from deraadt 2002-05-26 13:21:01 +00:00
itojun e500a07555 no need for KAME_SCOPEID 2002-05-26 13:01:21 +00:00
itojun 6cad7e9bef s/IPSec/IPsec/ 2002-05-26 12:56:57 +00:00
itojun 9e3976cdf7 Xr ping6 8 -> Nm 2002-05-26 12:07:05 +00:00
wiz 07da92e69f Sort sections and a grammar fix. 2002-05-26 10:52:01 +00:00
itojun d265331969 sync with kame.
- use bind(2) to select source.
- KNF.
- -g option to specify intermediate gateway.
2002-05-26 05:46:24 +00:00
wiz c632c8bea4 __STDC__ is always defined on NetBSD. 2002-05-25 23:45:12 +00:00
matt 2ea027698b Add support to print interface counters (via SIOCGIFDATA) when the [new]
option -v is provided.
2002-05-23 21:38:01 +00:00
perseant de3d200cd0 Re-checksum the superblock whenever it is marked dirty.
Tested on alpha.
2002-05-23 04:05:11 +00:00
nathanw be856ef968 When attempting to guess the filesystem type from the disklabel, don't
consider a out-of-range partition letter at the end of the special
device node to be a fatal error; just return NULL and let the caller
fall back to FFS.

This fixes the "mount -u /kern/rootdev /" done by the script installer.

XXX this is still gross, and breaks things like
"mount /my/strange/dev/path/b /mnt". Perhaps it should stat the node
and use the minor number as an index instead?
2002-05-21 23:51:19 +00:00
lukem e5aacbc0a7 Add examples. Inspired by [misc/16193] from
Brian A. Seklecki <lavalamp@hurt.spiritual-machines.org>
2002-05-21 11:25:38 +00:00
lukem 9234db0acd Improve mount_mfs examples. Inspired by [misc/16193] from
Brian A. Seklecki <lavalamp@hurt.spiritual-machines.org>
2002-05-21 11:17:57 +00:00
yamt 381fee523f open device as readonly unless -w is specified. 2002-05-21 01:39:56 +00:00
itojun e534b69c1d raise RTF_HOST if destination is a host (/128). from ume 2002-05-20 23:01:32 +00:00
enami 1fd6d975ac Since all members in rndpoolstat_t are unsigned, print them so. PR#14584. 2002-05-19 09:47:10 +00:00
itojun 9244bd8154 document net.key.* sysctl. provide sysctl MIB for controlling
proposal payload on ACQUIRE message.  sync w/kame
2002-05-19 08:12:55 +00:00
simonb ad50b1a980 In the description of the -r and -w options, match the wording of the
stats to look for from netstat(1) with what netstat actually shows.
2002-05-15 01:58:16 +00:00
thorpej 3740cbf193 Alpha boot block stuff has moved to <sys/bootblock.h> 2002-05-14 21:27:05 +00:00
itojun 33fe7af9a4 sync with latest kame setkey(8), modulo icmp6 hack.
pfkey.c is now more picky about buffer length validation.
spddump (setkey -DP) will print lifetime information.
2002-05-14 11:24:20 +00:00
itojun b5f1426ee0 rename: net.inet6.ip6.bindv6only -> net.inet6.ip6.v6only
sync w/kame.
2002-05-14 10:27:28 +00:00
wiz d30d25dc1a Spelling fixes, from Sergey Svishchev in kern/16650. 2002-05-12 15:48:36 +00:00
uch f7b9e074ee add hpcsh 2002-05-09 18:16:16 +00:00
simonb 1d08e313ae Don't bother testing if a uint8_t is > 256 -- that test is always false. 2002-05-09 02:55:49 +00:00
thorpej 177f0931bd Don't bother testing if a u_short is > 0xffff -- that test is always false. 2002-05-06 20:14:36 +00:00
agc 6df6be6300 Make this compile on some of the more esoteric architectures. 2002-05-06 19:37:51 +00:00
lukem bb82a84ded If SIGINFO is received, display summary information to stderr.
Based on changes in FreeBSD, via Chuck Cranor <chuck@research.att.com>
2002-05-06 03:17:43 +00:00
itojun 2e7169447f use in_aliasreq for inet address manipulation, not ifaliasreq. they have
different alignment constraint.  [tests on 64bit arch wanted]
2002-04-25 09:39:17 +00:00
lukem 2c1cfc8e8c - in <bsd.files.mk>, don't clear FILES after using it, as that prevents
make -V FILES
  from being useful (and given that every other variable can be
  extracted using make -V, the behaviour was unusually inconsistent
  given that the original reason for clearing it doesn't seem to be
  relevant anymore)
- use <bsd.prog.mk> instead of directly including <bsd.files.mk>
  (and possibly <bsd.man.mk> or <bsd.own.mk>)
- remove obsolete NOPROG
2002-04-24 08:18:45 +00:00
msaitoh 039616e700 don't override LDSTATIC if NOPIC is defined. 2002-04-23 08:19:15 +00:00
wiz 73d9fb5b1f Sync order of programs with their actions, noted by mrg. 2002-04-17 16:31:02 +00:00
mycroft e84a828ff1 In single-user, after taking a signal and having the `shell' die with
SIGKILL, go into an infinite loop (like in the runcom SIGTERM case), on the
assumption that reboot(8) is in the middle of taking the system down.
This fixes `panic: init died' from sysinst.
2002-04-16 01:59:37 +00:00
martin 573dfcd430 Fix copyright notice, sprinkle some $NetBSD$. 2002-04-14 11:41:42 +00:00
tsutsui 93fc30d106 21600000 -> 6*60*60*1000 (timeout in six hours for format command) 2002-04-14 03:24:42 +00:00
mycroft fb1196703d Some manual strength reduction. 2002-04-10 17:29:30 +00:00
mycroft f127f0f067 Some manual strength reduction. 2002-04-10 17:28:13 +00:00
christos 28bf921d47 don't whine about non-regular files. It is perfectly normal to keep a CVS
or RCS directory in /etc/rc.d.
2002-04-10 12:38:26 +00:00
mycroft 3bc20d3480 Remove debugging output. 2002-04-10 08:27:54 +00:00
mycroft 9eab713623 Use fs_fragshift more. Simplify a bunch of arithmetic involving NSPF(). 2002-04-10 08:27:23 +00:00
mycroft 9e695e896c Make this build again after the alpha/disklabel.h and dev/dec/dec_boot.h
changes.
2002-04-09 21:08:58 +00:00
hannken 01647c299e Allow setting display's font. 2002-04-07 10:40:04 +00:00
bjh21 be27950398 .Nm . -> .Nm "" . 2002-04-06 15:49:30 +00:00
dsainty be5810b4d6 Reverted a small part of 1.30, removing full stops that accidentally got added
in the middle of sentences.
2002-04-06 05:57:17 +00:00
jdolecek 83e7b8936b Only provide sym_size and sym_symsize if symbols are actually going
to be loaded.
This also avoids the annoying 'Unable to find symbol table slot
for xxx' kernel message when module is unloaded.
2002-04-03 19:03:09 +00:00
thorpej 34525f12a8 Build fdisk(8) on netwinder. 2002-04-03 03:17:36 +00:00
groo 73934d7bb5 s/bypassing/passing/ 2002-03-30 15:28:35 +00:00
christos 56a72506f9 nicer printing. 2002-03-26 23:56:45 +00:00
christos d9d77caa18 PR/16073: Jachym _Freza_ Holecek: Add the ability to list known partition types.
While I am here, KNF a bit.
2002-03-26 23:56:05 +00:00
bjh21 f8840ef0ab Rename arm26 -> acorn26. 2002-03-24 22:25:27 +00:00
sommerfeld 1803fb93a9 Add -q flag, for use with -w and -f, which suppresses output after a set. 2002-03-24 00:11:00 +00:00
simonb 6fccd7ab03 Open the raid device read-only for the commands that don't need
write access.  With the default set up this allows users in group
operator to query the status of the raid devices.

Fixes PR admin/15840.
2002-03-21 00:27:11 +00:00
christos 412e9e63d4 remove debugging line. 2002-03-20 00:29:24 +00:00
christos 58d461858a handle new emulation sysctls, and cleanup function duplication. 2002-03-20 00:23:23 +00:00
christos 94d01e0c5d PR/15502: Wolfgang Rupprecht: savecore fails for > 2GB files. 2002-03-19 18:55:03 +00:00
thorpej 26ba84d1e5 Cast 3rd arg to el_parse() to deal with const'ification of
libedit.
2002-03-18 20:04:49 +00:00
martin 093f5dbc55 Rename ISDN devices, per discussion on tech-kern. The network devices
become ippp (ISDN ppp) and irip (ISDN raw IP). The character device now
are called: /dev/isdn (isdnd <-> kernel communication), /dev/isdnctl (dialing
and other control), /dev/isdntrc* (tracing), /dev/isdnbchan* (raw B channel
access, i.e. for user land PPP) and /dev/isdntel* (telephone devices, i.e.
for answering machines).
2002-03-16 17:03:28 +00:00
itojun 3d6f24bae3 no \n to warnx(3). From: Mike Pechkin <mpech@prosoft.org.lv> 2002-03-11 02:06:02 +00:00
tsutsui 07b8153219 Change type of dumpmag and newdumpmag from int to u_int32_t
since they hold 32bit unsigned magic numbers. (sync with kernels)
2002-03-06 13:13:08 +00:00
wiz 10d6eb080d Drop duplicate .Pp. 2002-03-05 15:09:26 +00:00
dbj 5aa1b71afb add "Apple UFS" and "Apple Boot" partition ids used by Darwin 2002-03-04 04:22:22 +00:00
wiz 794dc9ea92 Typo fix. 2002-03-04 00:44:35 +00:00
wiz 69db0d9c90 Whitespace nit. 2002-03-04 00:44:11 +00:00
he 479e133dbf Rename the local devname -> dev_name to avoid warning with shadowing
global definition in stdlib.h.
2002-03-03 12:13:47 +00:00
martin 8c33bf88e8 Add a "query-dns" parameter to tell the interface we would like to get
DNS settings from the peer and a "-n" option to retrieve the results
after the PPP connection is established.
2002-03-02 16:27:02 +00:00
mrg 4d6dd4f8f5 when complaining that we can't lookup a hostname, actually say which
hostname this is...
2002-03-02 12:25:23 +00:00
mrg a8fa43f6b6 include <stdlib.h> 2002-03-02 12:22:27 +00:00
scw aea350ead2 fdisk(8) is needed on mvmeppc since PPCBUG uses PeeCee-style MBR
partition info when booting from disk.
2002-02-27 22:31:18 +00:00
wiz f61ef32241 Add -b to getopt argument. Patch from DHOYASHIKI Shinichi in bin/15742. 2002-02-26 15:57:13 +00:00
matthias 2a1ed782f8 -Wshadow warnings for variable index. 2002-02-26 07:50:30 +00:00
wiz f26d205dbb Typo fix, from jslag@prop.walkerart.org via OpenBSD. 2002-02-26 02:00:15 +00:00
matt 838ad806e7 Also build ldconfig is MACHINE_ARCH is arm or vax buf OBJECT_FMT=ELF 2002-02-24 03:18:44 +00:00
ad a66008a0b5 Add WSMOUSE_TYPE_MAXINE. 2002-02-24 02:01:40 +00:00
christos 69da3546f5 PR/15672: Love: route monitor missing info 2002-02-21 15:44:25 +00:00
lukem d45e6662b4 change the default back to checking the file system type is '4.2BSD',
and add -I to ignore this check.  per discussion with thorpej.
2002-02-20 04:04:39 +00:00
lukem 56705fb84f rcsid 2002-02-19 23:11:28 +00:00
perseant 9aca526666 Don't forget to update curfile, if tape begins with TS_ADDR type block.
In particular, this means that if one member (say the last member) of a tape
set begins with continuation blocks, restore will not consider that tape
to contain all the inodes (curfile.ino==0 at the beginning of the tape).

Close PR #15545.
2002-02-19 19:16:38 +00:00
yamt 2584fed461 s/read only/write only/ for FLG_WRONLY. 2002-02-18 17:00:16 +00:00
thorpej 044d35e196 * Undo rev 1.55. While one might think this test is useful, newfs
has historically allowed file systems to be created on non-4.2BSD
  partitions, and the ability to do so is quite useful to some people.
* When rewriting the disklabel, don't consider it an error if there's
  not a label already on the disk (and thus the rewrite operation fails).
2002-02-16 19:39:30 +00:00
kleink 52de2c81da When accessing the MBR magic as a 16-bit value, consider its on-disk
layout would be little-endian, too.
2002-02-14 00:07:43 +00:00
atatat a63801ede0 Minor tweak to make portalfs work on 64 bit ports. 2002-02-11 07:32:56 +00:00
hubertf 85cc2d10d5 the modifiers (-inet6, ...) do not only affect the behaviour of "flush",
but at least also of "get", so make the wording a bit more general.
2002-02-08 13:32:32 +00:00
ross dc5571b22e Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:21:55 +00:00
ross 8bd7cb6a69 Edit -mdoc usage.
* There is no -indent option to .Bd or .Bl, although you would
  never know that from its frequent use in this tree. There is a
  "-offset indent" combination that makes sense, and you can certainly
  say "-width indent".

* Also, you can't markup the -width option argument, tho you CAN
  use a callable macro. So "-width Ar filename" doesn't make sense,
  but either "-width Ar" or "-width filename" does, as might something
  like "-width xxfilename" for a little extra space.

* There are a lot of needlessly complex hanging tag macros in man4 used
  to create simple item lists. Those should be simplified one of these
  days before someone copies and edits yet another man4 page.
2002-02-07 03:15:06 +00:00
ross b8ff67cc6d minor LP64 nits 2002-02-07 02:14:02 +00:00
perseant fd4bbaaa48 Walk the segment list correctly when rolling forward between the two
primary superblocks.  This prevents spurious "block could not be read"
messages that might otherwise be seen if the filesystem had not been
properly unmounted.
2002-02-04 23:43:43 +00:00
perseant 5dcafb60c7 Use the correct size for inode blocks. This caused false data checksum
mispatches to be reported on v2 filesystems.
2002-02-04 23:41:28 +00:00
lukem 447e6b3ec5 crank size of mfs from 512 sectors to 768 sectors (large i386 MAKEDEV) 2002-02-03 12:55:26 +00:00
lukem b7677f4e0e .ifdef SMALLPROG, compile without ALTSHELL and SECURE support 2002-02-03 02:40:14 +00:00
tv 9fbd88883c Roll in fixes to permit cross-compiling from non-NetBSD hosts. This
round has been tested on Solaris/x86 and Linux hosts.

* Add host tools cap_mkdb, ctags, m4, uudecode.
* Protect __RCSID() and __COPYRIGHT() better.
* Reduce the number of places that need to include "config.h", to keep
  sources closer to their "vanilla" versions.
* Add more compat #defines and autoconf-checked functions.
2002-01-31 22:43:33 +00:00
christos 373820b6f3 fix inconsistencies with USEAPP; centralize the flags check so that we
don't have to deal with it in the future.
2002-01-31 20:15:14 +00:00
christos bcbaa46862 Use __MNT_FLAGS from <sys/mount.h> instead of rolling our own list. Also
when -v is used, print even the silent flags.
2002-01-30 21:40:31 +00:00
tv 01c2615055 Move the inclusion of <bsd.prog.mk> up so that keysym.h can have ${DESTDIR}
properly in its dependency list.
2002-01-30 20:32:29 +00:00
tv fcae5f73b7 Add hooks to make mtree compilable from src/tools. 2002-01-29 00:07:27 +00:00
simonb 3860ddc415 Descend into kern.tkstat. 2002-01-28 02:07:40 +00:00
simonb adce1e7c12 Document the new kern.tkstat.* sysctls. 2002-01-28 02:07:01 +00:00
simonb 750526acc6 ANSIfy. 2002-01-28 01:37:17 +00:00
simonb 8e6a975576 Fix a tyop in a comment. 2002-01-27 23:50:36 +00:00
simonb f8f98db732 Prod from lukem - remember to add hw.disk* here too. 2002-01-27 13:04:21 +00:00
simonb 93f270352c Teach sysctl(8) that hw.diskstats is a structure. 2002-01-27 12:47:37 +00:00
christos 62a708c06d KNF: - use %m always instead of sometimes using strerror()
- space problems in casts
     - don't cast 0, use NULL
     - don't have long lines
     - don't cast malloc
     - use warn/warnx instead of fprintf
     - fix bug where a failed mount_mfs would cause the program to continue.
     - pass lint
2002-01-26 19:50:25 +00:00
fair 20d78a0f95 make the description of -w and -r more clear, per PR 13503. 2002-01-24 23:35:10 +00:00
lukem d369b2c6a5 fix compilation problems on my alpha 2002-01-23 01:45:41 +00:00
wiz 65c4d36952 Use mdoc macros instead of man ones. 2002-01-21 18:23:09 +00:00
wiz b8ed997fc6 Fix typo in macro. 2002-01-21 18:14:33 +00:00
abs c48a08886b Rename MSDOSFS_ROOT to MFS_DEV_IF_NO_CONSOLE, and rework:
- Always attempt mfs dev if missing /dev/console
    - Save and run both MAKEDEV and MAKEDEV.local
    - After creating the mfs dev, mknod() and freopen() /dev/console.
    - If MAKEDEV is missing do not fail out early, but still create the mfs,
      /dev/console.
    - If we hit any errors fail out to single user.
This change _only_ affects systems booting without /dev/console.
2002-01-21 15:57:40 +00:00
wiz 8c920e9e22 Drop trailing whitespace. 2002-01-21 11:40:20 +00:00
oster c4aed2da0e Add a description of how to possibly recover a RAID set in the
event of a multiple disk failure.
2002-01-20 02:30:11 +00:00
lukem 94243a4cd5 wrap some mfs specific code in #ifdef MFS 2002-01-18 08:59:18 +00:00
lukem 775d59e652 fix this if MFS is not #defined 2002-01-18 08:37:08 +00:00
abs 83c1ea626b Increase the size of the dev mfs to at least enough for 1.5.2 i386.
bin/15235 by Gavan Fantom.
2002-01-16 18:30:57 +00:00
lukem 6707a64c88 If -F isn't given, only newfs(8) partitions of type `4.2BSD'. 2002-01-15 07:41:50 +00:00
jandberg dd3802a0b8 added amiga display/mouse/keyboard types 2002-01-13 18:16:10 +00:00
fair fe1cad9aa9 Cross-link fdisk(8), mbr(8), and mbrlabel(8) in the SEE ALSO sections,
as suggested in PR 14288.  Also add a little white space to mbr(8) to
make it a little more readable.
2002-01-13 08:02:14 +00:00
wiz 6220b41f40 Grammar fix, and drop a trailing comma in SEE ALSO section. 2002-01-09 23:10:19 +00:00
thorpej 94fb6ebed1 Descend into dkctl. 2002-01-09 22:31:57 +00:00
thorpej fcc3de9c40 dkctl(8) -- a program to manupulate disks. It currently supports
the disk cache-related ioctls.
2002-01-09 22:30:14 +00:00
martin ee0b7f707c Xref pppoe(4) and ifwatchd(8). 2002-01-09 20:20:54 +00:00
darrenr 53b688a6ee should be using htons() to convert from a host byte order into a network
byte order, not ntohs().
2002-01-09 12:30:15 +00:00
thorpej 62a62f7bc9 Use MACHINE_ARCH, not MACHINE. 2002-01-08 20:54:49 +00:00
lukem ed7fcecaac need ufs/ufs/dinode.h for ufs/ffs/fs.h 2002-01-08 05:01:50 +00:00
bouyer cf39881866 For -l: specify the timeout on the command line (in seconds) instead of
hardwiring it to 2s, as suggested on tech-userlevel.
2002-01-07 17:34:08 +00:00
martin 3b1c9c16b0 Improve usage message. 2002-01-07 12:22:02 +00:00
simonb ab5ccee692 Add the ability for the user, group and permissions of an MFS to be set
on the command line with the -u, -g and -p options respectively.
The old malloc() replacement (and related functions) didn't work with
the libc get{pw,gr}nam() functions so it was removed and a separate
memory allocation function added that is only called to allocate the
space for the MFS file system.
Also use a table for the usage flags instead of multiple fprintf()'s
with "if (mfs)" checks sprinkled through.
2002-01-07 12:00:09 +00:00
martin 74801af62d Display the authentication failure count (if non zero) and make the
limit settable.
2002-01-07 11:10:25 +00:00
wiz ed2ab556af Fix two typos and a whitespace nit. 2002-01-07 00:55:25 +00:00
lukem df7858b179 add ugly hack for alpha to crank the optimisation level down to -O1,
because the default -O2 with gcc 2.95.3 builds a non functional newfs
2002-01-06 23:09:47 +00:00
martin 28ae1fab38 Make idle timeout settable and display it.
Bring the man page closer to reality.
2002-01-06 20:23:55 +00:00
martin 3fd75e2cd7 Adapt to new if_sppp.h ioctls.
Add -d option to dump PPPoE session state. XXX need to document this.
2002-01-04 12:23:00 +00:00
lukem 574fa8fb21 remove duplicate MAN= entry 2002-01-04 11:30:33 +00:00
lukem 04e7d8d5fb move mount_mfs(8) into separate man page 2002-01-04 10:47:47 +00:00
lukem 2b8424b54a oops; another minor fix from rev 1.34 noticed by Simon Gerraty 2002-01-04 06:48:49 +00:00
jdolecek b3adaffa36 make sure string_table is initialized to NULL in read_shstring_table(),
so that NULL is returned if .strtab is not found
2002-01-03 21:45:58 +00:00
lukem 4c7a4f8eda don't bother printing a warning about the cylinder group size being
restricted if -c isn't given; it just confuses a user of newfs (and
the cpg info is printed as part of the display anyway), and prints an
unnecessary warning for mount_mfs.
2001-12-31 07:07:58 +00:00
lukem 14fb096dce document that default block-size, frag-size, and bytes-per-inode are
now dependent upon file system size
2001-12-31 02:27:14 +00:00
augustss c6d7884ffd Change how default block size is picked. The default block size is used
if there is no command line option and the disklabel gives 0 as the size.
The default used to be 8k, not the default is picked depending on the
file system size.  FS < 20M gets 4k, <1G get 8k, and >1G get 16k.
The 16k default was suggested by lukem which FreeBSD is using.
2001-12-30 18:49:28 +00:00
mrg c43c746480 fix a typo 2001-12-30 17:42:18 +00:00
lukem 059cb50f9d Revert rev 1.37 (use disklabel value for cpg if -c isn't given), because
we would rather let the "optimal cpg" calculation kick in at this point.
2001-12-30 16:53:00 +00:00
lukem 86c0243f4f Fixes from and/or inspired by FreeBSD:
- Change the default cpg from 16 to 65536, which effectively means
  that the largest allowable value for cpg will be computed if it's
  not specified with -c or in the disklabel for that partition.
  This is much more convenient for users.
- Improve the description of the defaults for various options
2001-12-30 16:47:55 +00:00
lukem 9dcaec9cca Add -a to "auto-size" the tape, rather than relying upon other options
to define the tape size.  Requires the tape driver to either return ENOSPC
at end of media, or 0 when a write is attempted (such as the "early warning"
support in st(4) enabled with "mt eew 1").   From FreeBSD.
2001-12-30 04:03:16 +00:00
lukem efcc9a4c9d * Add user-controlled mk.conf variables
- SHLIBDIR	Location to install shared libraries if ${USE_SHLIBDIR}
			is "yes".  Defaults to "/usr/lib".

	- USE_SHLIBDIR	If "yes", install shared libraries in ${SHLIBDIR}
			instead of ${LIBDIR}.  Defaults to "no".
			Sets ${_LIBSODIR} to the appropriate value.
			This may be set by individual Makefiles as well.

	- SHLINKDIR	Location of shared linker.  Defaults to "/usr/libexec".
			If != "/usr/libexec", change the dynamic-linker
			encoded in shared programs

* Set USE_SHLIBDIR for libraries used by /bin and /sbin:
	libc libcrypt libcrypto libedit libipsec libkvm libm libmi387
	libtermcap libutil libz

* If ${_LIBSODIR} != ${LIBDIR}, add symlinks from ${LIBDIR}/${LIB}.so*
  to ${_LIBSODIR}/${LIB}.so* for compatibility.

* Always install /sbin/init statically (for now)


The net effect of these changes depends on how the variables are set:

  1.)	If nothing is set or changed, there is no change from the
	current behaviour:
		- Static /bin, /sbin, and bits of /usr/*
		- Dynamic rest
		- Shared linker is /usr/libexec/ld*so

  2.)	If the following make variables are set:
		LDSTATIC=
		SHLINKDIR=/lib
		SHLIBDIR=/lib
	Then the behaviour becomes:
		- Dynamic tools
		- .so libraries used by /bin and /sbin are installed to /lib,
		  with symlinks from /usr/lib/lib*so to -> /lib/lib*so
		  where appropriate
		- Shared linker is /lib/ld*so

  3.)	As per 2.), but add the following variable:
		USE_SHLIBDIR=yes
	This forces all .so's to be instaleld in /lib (with compat
	symlinks), not just those tagged by their Makefiles to be.
	Again, compat symlinks are installed
2001-12-28 01:32:37 +00:00
lukem 8975510a51 Fixes from FreeBSD:
- Fix error if first tape was write protected.  Fix NetBSD PRs 4754 and 6098.
- Make dump exit codes confirm to manual page.
- Use \a instead of \7 to make noise.
- Fix estimated number of tapes for huge dumps to cartridges.
- Use <sys/queue.h> SLIST_* instead of home-rolled lists.
- Do not exit if unable to read or create /etc/dumpdates.
- Support output (tape) device returning ENOSPC for end-of-media on a write.

Fixes by me:
- Remove unused ddates_in.
- Don't dump core if SIGINFO is received before 1 second has elapsed.
- Only process SIGINFO in current "active" child.
- Don't dump core in -w if dumpdates wasn't readable and ddatev == NULL
- Minor KNF; wrap some lines
2001-12-25 12:06:26 +00:00
lukem 1f19340e88 document more of the debug options 2001-12-25 11:56:14 +00:00
lukem 1c9f606d2a For dump_lfs(8), in getfstab(), only "lfs" (instead of "ufs" or "ffs").
Fix from Minoura Makoto in [bin/10525].
2001-12-24 03:02:34 +00:00
lukem 6de0e99d81 change a lot of the "error" messages to display to stdout instead of
stderr, so that "sysctl -A" output is actually usable.  requested by perry
2001-12-24 01:30:38 +00:00
chs 2981550892 update for changed vm knobs. 2001-12-24 00:49:36 +00:00
lukem b73cca7b92 clean up from time_t -> int32_t change in dumprestore.h 2001-12-23 14:42:22 +00:00
lukem f3017fa83a fix compile issues now that on-tape times are int32_t instead of time_t 2001-12-23 14:40:42 +00:00
lukem 1ab8ecafe7 unifdef sunos 2001-12-23 12:54:53 +00:00
lukem b734f790f5 nuke trailing whitespace 2001-12-23 12:29:55 +00:00
augustss da3c0f78d9 Allow check to proceed with bad backup boot block if we're doing a readonly
check.
2001-12-22 17:25:20 +00:00
lukem e9164a9509 When using the read cache in bread(), ensure that the current (sub)block
isn't past the end of the file system.

Should fix the "spins forever but doing nothing" bug that dump
would occasionally have.
2001-12-22 08:45:36 +00:00
lukem 4720d32cfe - use correct type for minTime in findlru() (size_t instead of int)
- clean up whitespace
2001-12-22 08:05:24 +00:00
lukem 750a014c75 In rawread(), add back a check to ensure that dump doesn't try to read
past EOM and fail with "short read error". This check was part of
traverse.c::bread(), and was removed when that function was migrated
to rcache.c::rawread() as part of the "read cache" functionality.

This should fix the problem with dump barfing on "short read" when "-r 0",
but I'm still debugging the problem where dump gets to a point and
"does nothing" when the read cache is being used.
2001-12-22 07:45:38 +00:00
wiz 02b65f0c5c Sync options with usage. 2001-12-20 20:23:09 +00:00
soren 11c2f93975 Another little mistake, spotted by wiz. 2001-12-20 20:20:38 +00:00
soren dc53bf3cba Sync getopt() / man page with actual getopt options. 2001-12-20 20:10:33 +00:00
fvdl b2e85b4526 Don't use the pendinginodes and pendingblocks fields in alternate
superblock comparison.
2001-12-19 10:05:20 +00:00
fredette 46d320c7db The sun2 also requires partitions in integer cylinders. 2001-12-14 23:36:25 +00:00
bouyer 740dbf0d62 Add a -l (autoload) flag. For multivolume dumps, this makes dump eject the
tape when a volume is full, and try to reopen the tape drive for 2 mn.
To be used with tape changers which load the next tape when the current one is
ejected.
While I'm there fix eject handling for remote tape.
2001-12-14 14:43:33 +00:00
reinoud 994f1fb3f6 Remove `const' attribute from writelabel prototype and function to make it
compile again on Alpha.
2001-12-13 13:52:13 +00:00
lukem c00b68cf31 clamp bsize to MAXBSIZE 2001-12-13 06:31:31 +00:00
lukem b38676bc97 constrain bsize and fsize to MAXBSIZE 2001-12-13 06:29:15 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
bgrayson 60174aaabf Fixed minor typo in example for cksum /tmp/rc 2001-12-11 15:46:26 +00:00
bgrayson 5a5f9c9c20 Removed 'chmod +x cvs.sh' from instructions -- the script is now installed executable by the Makefile 2001-12-11 15:44:11 +00:00
bgrayson e87372ade5 Changed Makefile to install scripts as executable (SCRIPTS, not as FILES), and
also did name change on them to preserve .sh suffix
2001-12-11 15:39:10 +00:00
bgrayson 3952d2905e Renamed so that .sh suffix is not stripped on install 2001-12-11 15:35:53 +00:00
wiz 552c88dee6 Lots of grammar fixes and other slight improvements. 2001-12-10 23:57:48 +00:00
martin b7af7aeccd Move /usr/sbin/pppoectl to /sbin/pppoectl, so we can call it from
ifconfig.pppoe* files.

Rename the source directory and files to match the primary purpose
of this utility - probably noone is using this for ISDN now anymore,
as isdnd has simpler ways to acomplish the same.
2001-12-10 17:22:09 +00:00
scw 61551fba00 Fix a `parameter shadows global variable' warning spotted by new-toolchain. 2001-12-07 23:12:33 +00:00
wiz ed5ba510c2 One '\' too many. 2001-12-07 19:50:20 +00:00
wiz d318231f3d Sort options. Improve english in DIAGNOSTICS.
[Pointed at this file by augustss.]
2001-12-05 15:03:27 +00:00
lukem d121c52699 enable WARNS?=2 2001-12-05 05:50:22 +00:00
ad 3c1dbe4aee Fix typo; pointed out by Gregory McGarry. :-) 2001-12-04 09:56:31 +00:00
gmcgarry d4ff414a7d Update for new HP devices. Add some others while here.
Pointed out by Andrew Doran.
2001-12-04 04:31:56 +00:00
bjh21 822cc4efe2 Rather than making FileCore boot block support conditional on __arm32__, make
it conditional on USE_ACORN, and define that if MACHINE is arm26 or acorn32.
This is less than optimal, and maybe we should define it for all ARM systems,
but then disklabel handling across architectures is generally a mess at the
moment.
2001-11-29 23:08:53 +00:00
pooka 633273af12 Add word "WARNING" when complaining about swap being world-read/writeable
to clarify that this was not an error condition and that swap was indeed
added despite the problem.
2001-11-26 15:23:38 +00:00
perry 96aece1560 Note in far more places that -B is only supported on some platforms. 2001-11-24 18:30:59 +00:00
simonb bd2791dcde Wrap a long line, some other minor KNF. 2001-11-22 23:24:44 +00:00
wiz 1fd7eeefcd "than" instead of "then". 2001-11-21 19:14:19 +00:00
lukem 6a8524d62e - For mount_mfs, always ignore the `special' field and just fake up
the label instead. The previous change to use opendisk() prevented
  this from working with special fields such as `/dev/wd0b', and this
  new method is arguably cleaner anyway. Fixes [misc/14654]
- Don't bother supporting -T for mount_mfs anymore, since it's
  superfluous. The option still works (for compatibility reasons), but
  it's just ignored and not documented anymore.
- Use an RPM of 10000 instead of 3600 for the fake label (why not :-)
2001-11-21 15:23:40 +00:00
minoura d7835b08b0 Preserve the boot area on x68k. 2001-11-19 13:55:06 +00:00
wiz 940b1a65e3 Improve grammar. Noted by Stoned Elipot. 2001-11-18 23:21:02 +00:00
hubertf e7d1bd3418 Fix typo (etc/config -> etc.config)
Pointed out by Robby Griffin <sysadmin@terc.edu> in  PR 14603.
2001-11-18 03:50:53 +00:00
lukem 4ad1f9f2ae this doesn't need <ufs/ufs/inode.h> 2001-11-16 14:33:37 +00:00
wiz 83634e4e14 Slightly improve markup in two places, sort sections. 2001-11-16 12:10:06 +00:00
wiz 49e6214ed8 Punctuation fix, sort sections, lose a .Pp. 2001-11-16 12:09:19 +00:00
wiz 7dd6e69db4 Punctuation fix, sort sections, sort SEE ALSO. 2001-11-16 12:08:49 +00:00
wiz e8e51dce31 Sort sections, use standard headers, sort SEE ALSO. 2001-11-16 12:08:19 +00:00
wiz d80de2cabd Sort sections, use .Ic for a non-NetBSD program instead of .Xr. 2001-11-16 12:07:43 +00:00
wiz 13dc9abfef Sort SEE ALSO, use .Pp for paragraphs. 2001-11-16 12:06:32 +00:00
wiz 6e5e605c25 Add space before ..., lose a .Pp. 2001-11-16 12:06:01 +00:00
wiz f8379a3c43 Simplify markup, use .Nx, sort sections. 2001-11-16 12:05:38 +00:00
wiz 39304f2bbb Punctuation fixes, sort SEE ALSO, use an mdoc macros instead of two man macros. 2001-11-16 12:05:00 +00:00
wiz bc9fb62163 Remove unnecessary .Pps, use .Nx for NetBSD, sort sections. 2001-11-16 12:03:54 +00:00
wiz bfda038ed2 Sort SEE ALSO, sort sections. 2001-11-16 12:03:20 +00:00
wiz 2e3c8045a5 Punctuation fixes, sort SEE ALSO, sort sections, use standard headers. 2001-11-16 12:01:57 +00:00
wiz 8d4a9e3b24 Use .Pp for paragraphs, sort sections, use standard headers, and a markup fix. 2001-11-16 12:01:22 +00:00
wiz 59b19c2885 Lose unnecessary .Nm argument. 2001-11-16 12:00:10 +00:00
wiz 7c14ef34a9 Punctuation nits, drop a .Pp, use .Nx, use standard headers. 2001-11-16 11:59:47 +00:00
wiz d7130393cf Punctuation nit, and drop two .Pps. 2001-11-16 11:58:59 +00:00
wiz 66eabe4561 Punctuation nit. 2001-11-16 11:58:28 +00:00
wiz 0d862d5885 Drop empty lines and an unnecessary .Pp, sort sections. 2001-11-16 11:57:51 +00:00
wiz ca7b306a86 Improve author markup, use standard header. 2001-11-16 11:57:16 +00:00
wiz 957c91939f Drop unnecessary .Pp. 2001-11-16 11:38:35 +00:00
wiz 5cbb6a51be Drop unnecessary .Pp and empty lines. Drop unneeded .Nm argument. 2001-11-16 11:38:15 +00:00
wiz 0c8436d425 Sort sections, use standard headers, slight markup improvement. 2001-11-16 11:37:40 +00:00
wiz 011b3214d5 Sort sections and SEE ALSO. 2001-11-16 11:37:04 +00:00
wiz 8d4080ddcb Drop an unnecessary .Pp. 2001-11-16 11:36:33 +00:00
wiz 217af7b8a1 Use .Nx for NetBSD, drop some unnecessary empty lines, use standard headers. 2001-11-16 11:36:09 +00:00
wiz bb03964e95 Sort SEE ALSO. 2001-11-16 11:31:30 +00:00
wiz 9608821813 Simplify markup in one place, and sort sections and SEE ALSO. 2001-11-16 11:30:09 +00:00
wiz 5ee6bd0ade Use .Pp for new paragraphs. 2001-11-16 11:29:09 +00:00
wiz 4136eb5c86 Use standard section headers. 2001-11-16 11:27:09 +00:00
wiz 875bfce8db Sort sections, use standard section headers. 2001-11-16 11:26:53 +00:00
wiz 80d1ff493a Sort sections. 2001-11-16 11:21:37 +00:00
wiz dbb255dc26 Don't abuse -unfilled for -literal; sort sections, sort SEE ALSO, drop
lots of unnecessary .Pps.
2001-11-16 11:06:46 +00:00
wiz 4ce43ae0cd Whitespace nits 2001-11-16 10:25:42 +00:00
wiz c8fa8a4d7a Sort SEE ALSO, whitespace nits. 2001-11-16 10:11:41 +00:00
lukem d1931f4f62 - Without -F, use opendisk(3) to find the raw device
- With -F, relax the restriction that the filesystem must be a regular file
2001-11-16 09:58:16 +00:00
lukem 0c249d8f04 - changes to -F semantics:
- remove the restriction that filesystem must be a regular file
	- don't try and read a disklabel
- use `p' (instead of `h') as the index of the last partition
2001-11-16 05:35:40 +00:00
lukem 29d31edd5f relax the restriction on -F that the file system image argument must be a
regular file
2001-11-16 04:41:23 +00:00
lukem 2fa188aaec change -F semantics to treat the argument as a file system image; open it
`as-is' without attempting to determine the device name with opendisk(3),
and don't attempt to read a disklabel.
2001-11-16 04:25:42 +00:00
christos 4c4a8c2fb6 Make route exit with a non-zero error code when operations to the routing
socket fails. eg, running route add 1.2.3.4 5.6.7.8 as non root.
2001-11-15 21:25:08 +00:00
lukem fbab1e72fb move guts of non-F special parsing into separate openpartition() func 2001-11-09 11:48:39 +00:00
lukem e48d7547e2 Change -F from "special must be a regular file" to "special can be any type,
and don't attempt to do any file name translation (e.g, search in fstab)".

In the non -F case, search for special in fstab. If found, convert fs_spec
to a raw device name. In any case, use opendisk(3) to open the device.
2001-11-09 09:05:51 +00:00
lukem 3c367dcbb0 use MAXPATHLEN instead of 32 as the size of the rawbuf 2001-11-09 07:50:19 +00:00
christos 522d8e170c PR/14498: Wesley Chen: Support symbol loading on elf lkms. 2001-11-08 15:33:15 +00:00
lukem c3e4fa53d9 if sysctl kern.root_device is availalbe, use that the default device
(rather than /dev/rwd0d).  display the disk device used when printing
the partition table.
2001-11-07 14:50:32 +00:00
lukem 9bf29de9d5 fix many -Wshadow warnings 2001-11-02 05:57:38 +00:00
lukem 6c07f34b54 fix -Wshadow warnings 2001-11-02 05:44:46 +00:00
lukem 04d5555436 fix -Wshadow warning 2001-11-02 05:33:21 +00:00
lukem cbbd79f700 fix -Wshadow warnings 2001-11-02 05:30:56 +00:00
lukem 895db4cb83 fix -Wshadow warnings 2001-11-02 03:57:25 +00:00
lukem fd87fe6aaa fix -Wshadow warnings 2001-11-02 03:51:48 +00:00
lukem 5b5d0d23b8 oops, remove temporary comment 2001-11-01 08:21:57 +00:00
lukem 7f675a25b7 fix -Wshadow warnings 2001-11-01 08:21:07 +00:00
lukem 3a17632dfb remove arg name in prototype decl 2001-11-01 08:18:01 +00:00
lukem 7623928b3a fix a couple of -Wshadow warnings 2001-11-01 08:06:57 +00:00
lukem 4c4307e3ce fix -Wshadow warnings 2001-11-01 08:03:03 +00:00
lukem fa02ec4ccb fix a -Wshadow warning 2001-11-01 07:48:08 +00:00
lukem 3d6fc56715 fix -Wshadow warning by moving "int version" from global to main() scope 2001-11-01 07:44:05 +00:00
lukem d3656d428d fix a couple of -Wshadow warnings 2001-11-01 07:39:38 +00:00
lukem 4475e1747e fix a couple of -Wshadow warnings 2001-11-01 07:31:22 +00:00
lukem 058fbb840d opendisk(3) checks the device type for us 2001-11-01 07:04:18 +00:00
jdolecek d66dfc84d0 Xref disklabel and mention that mbrlabel can help setup the disk label
Note that NTFS partition is no longer accessible in NetBSD once
it's marked 'dynamic' in MS Windows XP.

Pointed out by Christos.
2001-10-31 21:04:45 +00:00
jdolecek 1295376b01 Couple changes, mainly to address stuff raised recently on port-i386
('Does i386 support NTFS5 now?'):

add a note both NTFS4 and NTFS5 are supported
reformat the Limitations a bit
assert the write support is not really useful, and should not be used
add a BUGS section, note missing stuff for the write support to be useful,
and the disk label thing spotted by Christos Zoulas
2001-10-31 19:16:36 +00:00
wiz f1dd0210ab Sort sections, whitespace nits. 2001-10-30 07:28:22 +00:00
kml 1d2a82ea66 Added descriptions of the new sysctls for controlling the disposition
of IPv4 routes added via redirects, rediraccept and redirtimeout.
2001-10-30 06:43:21 +00:00
lukem 99147a7648 remove #include <ufs/ufs/quota.h> where it was just to appease
<ufs/ufs/inode.h>, since the latter now includes the former.  leave the former
in source that obviously uses specific bits of it (for completeness.)
2001-10-26 05:56:06 +00:00
lukem ca2a1a8c3b in msg(), don't call va_list using functions twice in a row without calling
va_start() in between; reorder code so that we call vsnprintf and then
just fputs that buffer. crank the size of lastmsg whilst we're here
problem noted by Hideo Saito in [bin/14348].
2001-10-25 08:04:27 +00:00
atatat 70478477a0 Clean up the code a bit so that the ioctl() return value is always
compared to -1 (instead of <0 or !=0) and always to call err() with
EXIT_FAILURE instead of sometimes using 1.
2001-10-24 22:10:15 +00:00
atatat cdc6282274 Provide a short output format for the get command that only prints the
address corresponding to RTA_GATEWAY, or nothing if it doesn't exist.
Modify the exit value of route depending on this, so that one can do
stuff like:

#!/bin/sh
gw=`route -sn get default 2>/dev/null`
if [ -z "$gw" ]; then
	echo no default route
	exit 1
fi
ping -w1 -c1 $gw >/dev/null 2>&1
if ! route -sn get $gw >/dev/null; then
	echo default gateway not responding
	exit 1
fi
echo default gateway is at $gw
2001-10-24 18:40:16 +00:00
atatat 2e4d1a174e Print a R on reject routes to indicate that they're not normal routes,
and check netmask (or prefix) length as well as the destination
address when determining if a route is a "default" or not.  This means
that the output from 'route show' will no longer say:

	Internet6:
	Destination       Gateway            Flags
	default           localhost          UG
	default           localhost          UG

but instead

	Internet6:
	Destination       Gateway            Flags
	::/104            localhost          UGR
	::/96             localhost          UGR

which makes much more sense.
2001-10-24 16:05:06 +00:00
lukem 8064490359 minor WARNS=2 stuff 2001-10-19 01:16:37 +00:00
christos b77fb2a456 PR/14286: reed@reedmedia.net: Explain default. 2001-10-18 13:42:32 +00:00
atatat 39c4f538a3 Use the new sh script instead of the (now defunct) pl one 2001-10-15 17:34:50 +00:00
uch 0cbd019fc3 playstation2 support 2001-10-15 16:22:50 +00:00
wiz 699d58b177 Whitespace fixes, sort SEE ALSO, sort sections. 2001-10-15 13:43:06 +00:00
blymn a152a6a92a Add the capability for dump to print timestamps on all informational
messages.
2001-10-15 13:25:33 +00:00
lukem 9f95bf0782 fix error reporting in rdfs() and wtfs() 2001-10-14 01:38:53 +00:00
atatat 04fb6977ef Install the shell script instead of the perl script 2001-10-12 16:19:30 +00:00
atatat c9281cb7dd Bye bye, perl script. 2001-10-12 16:19:05 +00:00
atatat 149865a4d7 Remove the perl script from the mount_portal example for cvs and
replace it with a regular sh script.
2001-10-12 16:15:26 +00:00
atatat 9305145646 Add another example that shows how to map a cvs server into your local
file system so that you can pull random files out of it easily.
2001-10-11 18:41:11 +00:00
yamt 01f308933f - use IP_MAXPACKET instead of 65535.
- change max packet size from 65468 to 65467(= IP_MAXPACKET-60-8).
2001-10-10 15:58:04 +00:00
yamt d549add37f - fix overrun bug.
- bump bufsize to fix "packet loss" with large packet.
2001-10-09 19:17:02 +00:00
lukem 7ca2a2b569 cleanups suggested by simonb:
- rename "format.c" -> "pack_dev.c", "mknod.h" -> "pack_dev.h"
- make the private stuff in pack_dev.c static
2001-10-08 04:45:29 +00:00
lukem da188f40f2 improve arg clamping 2001-10-08 04:25:00 +00:00
lukem a1dcc3ea23 - move parsing of format type and format handlers into format.c, for easier
use in other programs
- do a bit of KNF whilst here
- enable WARNS=2
2001-10-08 04:20:43 +00:00
mycroft 7e21660e42 Fix a formatting error. 2001-10-08 01:40:43 +00:00
bjh21 6ef5a92fbb When dumping the routing table, use getnameinfo() to print link-layer
addresses rather than doing it ourselves and falling back to link_ntoa().
2001-10-06 18:32:45 +00:00
bjh21 3821a9917d Use getnameinfo() to format AF_LINK addresses again. 2001-10-06 17:05:29 +00:00
bjh21 daa1982d02 Revert last change. getnameinfo() AF_LINK support is going away until I can
make it lint-clean.
2001-10-05 20:50:19 +00:00
bjh21 10237f4efc Use getnameinfo() to format AF_LINK addresses rather than doing it ourselves. 2001-10-04 23:12:22 +00:00
oster 6c2d6f6c4f Remove cruft. We no longer need to look into sys/dev/raidframe to
find the needed include files.
2001-10-04 16:03:05 +00:00
oster 541d521a40 rf_configure.c
- remove dependence on stuff in sys/dev/raidframe
 - now rely on <dev/raidframe/*>
 - bring in some needed prototypes for local functions
 - nuke RF_ASSERT's.
 - drag in some needed RF_ERRORMSG's

raidctl.c
 - rely on <dev/raidframe/*>
 - welcome to the New Way of doing RAIDframe #includes.

(No functional changes.)
2001-10-04 16:02:08 +00:00
oster 75d30c8978 Add a pruned-down version of rf_configure.h. First step at disentangling
raidctl files from the hairy .h file mess.
2001-10-04 16:00:37 +00:00
wiz 6494394420 Remove swapoff mention, per misc/14120.
Some whitespace, section name, section order fixes while I'm here.
2001-10-01 23:15:59 +00:00
kleink d8ad923577 "kernel switch ipforwarding" -> "sysctl net.inet.ip.forwarding". 2001-10-01 10:31:45 +00:00
jdolecek de45f5a902 couple cosmetic stylistic changes 2001-09-29 21:15:11 +00:00
itojun 04e80984bf remove duplicated line in cmds[]. 2001-09-26 07:20:16 +00:00
oster 91ffb9ffd3 Since this is the only place it's used, nuke RF_DEV2RAIDID and
replace it with DISKUNIT.
2001-09-26 02:59:40 +00:00
wiz c2370c3f0a Add some \n to error messages. 2001-09-25 00:03:25 +00:00
wiz ae34c20bb1 Fix a typo and two white space nits. 2001-09-25 00:03:03 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
lukem 058b690102 the change of calculation of inodes per group in rev 1.52 was far too
aggressive; rework to be a bit less susceptable to round-off error.
now it's likely that the density might not be obtained with a small
filesystem with a large number of inodes (e.g -s 4M -i 1k), but that's
an extremely unlikely corner case that can easily be rectified with
command-line arguments.
fixed provided in private email by Takao Shinohara <shin@sm.sony.co.jp>
should resolve PRs [bin/14049] and [bin/14046]
2001-09-24 08:21:44 +00:00
tv d63e12815a objcopy -> ${OBJCOPY} 2001-09-22 02:01:13 +00:00
toshii 0ea3ab3e14 Fix a typo which prevented manual keying from working. 2001-09-20 00:01:10 +00:00
ad 9824683b54 - Sync device lists with wsconsio.h.
- Get/set keyclick on keyboards that support it.
2001-09-19 12:45:24 +00:00
lukem 22966108bb add comments to make it clearer what cmpsblks() is doing 2001-09-18 08:38:28 +00:00
thorpej f7a04ba84f Add tcp4csum-rx and udp4csum-rx commands for interfaces that only
support TCP/UDP checksums on the in-bound direction.
2001-09-17 17:36:06 +00:00
toshii 04f91a6594 Uncomment-out part of FreeBSD code so that we can calculate partition
index from a filename.
2001-09-17 16:26:56 +00:00
assar 1a56bc85de (usage): add -s and -S 2001-09-17 01:40:08 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
gmcgarry 684c2af799 Prominently provide explanation of who is allowed to mount file
systems.
2001-09-12 21:48:08 +00:00
lukem fa5157d9fb explicitly set the default compression level to 1 (from the implicit 6),
because it's significantly faster and doesn't use that much more disk space.
2001-09-12 03:14:08 +00:00
lukem fd08f59ac0 Add "-Z level" to control the compression level that -z uses (which
defaults to -Z 6).  Depending on the relative speed of the CPU
versus disk, "-zZ1" might be faster than no compression at all.
2001-09-12 02:58:29 +00:00
enami 36c88aab99 - Recognize new type `rng'.
- Use getprogname().
2001-09-11 05:52:37 +00:00
pooka db8658a3b8 * expand device name to raw device, not block device (eg. wd0a -> /dev/rwd0a)
* #ifdef non-relevant FreeBSD slice consistency check
2001-09-10 19:25:35 +00:00
christos de3ce7e7b1 - Remove old files.
- Port to NetBSD
XXX: *untested*
2001-09-10 18:27:41 +00:00
enami db33b671a9 Don't punt on really unknown type of device when fetching name of it.
Instead, warn and just print it as ???.
2001-09-08 23:29:05 +00:00
enami d5b9e6ab8a Cosmetic changes. 2001-09-08 23:20:37 +00:00
mason 44c196b374 The default version created by newfs_lfs without arguments is, in fact, 2. 2001-09-08 03:49:44 +00:00
simonb 3d18c18669 Use the command set/feature *enabled* words when displaying what
command sets and features are enabled.
2001-09-07 16:33:50 +00:00
itojun 3fdd7a9bab upgrade to the latest KAME setkey(8). allows FQDN hostname in commands.
"add localhost localhost esp 9999 -E des-cbc hogehoge" adds two keys,
for 127.0.0.1 and ::1
2001-09-07 04:12:10 +00:00
simonb cdcbbc115b ANSIfy. 2001-09-07 02:17:30 +00:00
lukem 5c2ee5861d Incorporate the enhanced ffs_dirpref() by Grigoriy Orlov, as found in
FreeBSD (three commits; the initial work, man page updates, and a fix
to ffs_reload()), with the following differences:
- Be consistent between newfs(8) and tunefs(8) as to the options which
  set and control the tuning parameters for this work (avgfilesize & avgfpdir)
- Use u_int16_t instead of u_int8_t to keep track of the number of
  contiguous directories (suggested by Chuck Silvers)
- Work within our FFS_EI framework
- Ensure that fs->fs_maxclusters and fs->fs_contigdirs don't point to
  the same area of memory

The new algorithm has a marked performance increase, especially when
performing tasks such as untarring pkgsrc.tar.gz, etc.

The original FreeBSD commit messages are attached:

=====
mckusick    2001/04/10 01:39:00 PDT
  Directory layout preference improvements from Grigoriy Orlov <gluk@ptci.ru>.
  His description of the problem and solution follow. My own tests show
  speedups on typical filesystem intensive workloads of 5% to 12% which
  is very impressive considering the small amount of code change involved.

  ------

    One day I noticed that some file operations run much faster on
  small file systems then on big ones. I've looked at the ffs
  algorithms, thought about them, and redesigned the dirpref algorithm.

    First I want to describe the results of my tests. These results are old
  and I have improved the algorithm after these tests were done. Nevertheless
  they show how big the perfomance speedup may be. I have done two file/directory
  intensive tests on a two OpenBSD systems with old and new dirpref algorithm.
  The first test is "tar -xzf ports.tar.gz", the second is "rm -rf ports".
  The ports.tar.gz file is the ports collection from the OpenBSD 2.8 release.
  It contains 6596 directories and 13868 files. The test systems are:

  1. Celeron-450, 128Mb, two IDE drives, the system at wd0, file system for
     test is at wd1. Size of test file system is 8 Gb, number of cg=991,
     size of cg is 8m, block size = 8k, fragment size = 1k OpenBSD-current
     from Dec 2000 with BUFCACHEPERCENT=35

  2. PIII-600, 128Mb, two IBM DTLA-307045 IDE drives at i815e, the system
     at wd0, file system for test is at wd1. Size of test file system is 40 Gb,
     number of cg=5324, size of cg is 8m, block size = 8k, fragment size = 1k
     OpenBSD-current from Dec 2000 with BUFCACHEPERCENT=50

  You can get more info about the test systems and methods at:
  http://www.ptci.ru/gluk/dirpref/old/dirpref.html

                                Test Results

               tar -xzf ports.tar.gz               rm -rf ports
    mode  old dirpref new dirpref speedup old dirprefnew dirpref speedup
                               First system
   normal     667         472      1.41       477        331       1.44
   async      285         144      1.98       130         14       9.29
   sync       768         616      1.25       477        334       1.43
   softdep    413         252      1.64       241         38       6.34
                               Second system
   normal     329         81       4.06       263.5       93.5     2.81
   async      302         25.7    11.75       112          2.26   49.56
   sync       281         57.0     4.93       263         90.5     2.9
   softdep    341         40.6     8.4        284          4.76   59.66

  "old dirpref" and "new dirpref" columns give a test time in seconds.
  speedup - speed increasement in times, ie. old dirpref / new dirpref.

  ------

  Algorithm description

  The old dirpref algorithm is described in comments:

  /*
   * Find a cylinder to place a directory.
   *
   * The policy implemented by this algorithm is to select from
   * among those cylinder groups with above the average number of
   * free inodes, the one with the smallest number of directories.
   */

  A new directory is allocated in a different cylinder groups than its
  parent directory resulting in a directory tree that is spreaded across
  all the cylinder groups. This spreading out results in a non-optimal
  access to the directories and files. When we have a small filesystem
  it is not a problem but when the filesystem is big then perfomance
  degradation becomes very apparent.

  What I mean by a big file system ?

    1. A big filesystem is a filesystem which occupy 20-30 or more percent
       of total drive space, i.e. first and last cylinder are physically
       located relatively far from each other.
    2. It has a relatively large number of cylinder groups, for example
       more cylinder groups than 50% of the buffers in the buffer cache.

  The first results in long access times, while the second results in
  many buffers being used by metadata operations. Such operations use
  cylinder group blocks and on-disk inode blocks. The cylinder group
  block (fs->fs_cblkno) contains struct cg, inode and block bit maps.
  It is 2k in size for the default filesystem parameters. If new and
  parent directories are located in different cylinder groups then the
  system performs more input/output operations and uses more buffers.
  On filesystems with many cylinder groups, lots of cache buffers are
  used for metadata operations.

  My solution for this problem is very simple. I allocate many directories
  in one cylinder group. I also do some things, so that the new allocation
  method does not cause excessive fragmentation and all directory inodes
  will not be located at a location far from its file's inodes and data.
  The algorithm is:
  /*
   * Find a cylinder group to place a directory.
   *
   * The policy implemented by this algorithm is to allocate a
   * directory inode in the same cylinder group as its parent
   * directory, but also to reserve space for its files inodes
   * and data. Restrict the number of directories which may be
   * allocated one after another in the same cylinder group
   * without intervening allocation of files.
   *
   * If we allocate a first level directory then force allocation
   * in another cylinder group.
   */

    My early versions of dirpref give me a good results for a wide range of
  file operations and different filesystem capacities except one case:
  those applications that create their entire directory structure first
  and only later fill this structure with files.

    My solution for such and similar cases is to limit a number of
  directories which may be created one after another in the same cylinder
  group without intervening file creations. For this purpose, I allocate
  an array of counters at mount time. This array is linked to the superblock
  fs->fs_contigdirs[cg]. Each time a directory is created the counter
  increases and each time a file is created the counter decreases. A 60Gb
  filesystem with 8mb/cg requires 10kb of memory for the counters array.

    The maxcontigdirs is a maximum number of directories which may be created
  without an intervening file creation. I found in my tests that the best
  performance occurs when I restrict the number of directories in one cylinder
  group such that all its files may be located in the same cylinder group.
  There may be some deterioration in performance if all the file inodes
  are in the same cylinder group as its containing directory, but their
  data partially resides in a different cylinder group. The maxcontigdirs
  value is calculated to try to prevent this condition. Since there is
  no way to know how many files and directories will be allocated later
  I added two optimization parameters in superblock/tunefs. They are:

          int32_t  fs_avgfilesize;   /* expected average file size */
          int32_t  fs_avgfpdir;      /* expected # of files per directory */

  These parameters have reasonable defaults but may be tweeked for special
  uses of a filesystem. They are only necessary in rare cases like better
  tuning a filesystem being used to store a squid cache.

  I have been using this algorithm for about 3 months. I have done
  a lot of testing on filesystems with different capacities, average
  filesize, average number of files per directory, and so on. I think
  this algorithm has no negative impact on filesystem perfomance. It
  works better than the default one in all cases. The new dirpref
  will greatly improve untarring/removing/coping of big directories,
  decrease load on cvs servers and much more. The new dirpref doesn't
  speedup a compilation process, but also doesn't slow it down.

  Obtained from:	Grigoriy Orlov <gluk@ptci.ru>
=====

=====
iedowse     2001/04/23 17:37:17 PDT
  Pre-dirpref versions of fsck may zero out the new superblock fields
  fs_contigdirs, fs_avgfilesize and fs_avgfpdir. This could cause
  panics if these fields were zeroed while a filesystem was mounted
  read-only, and then remounted read-write.

  Add code to ffs_reload() which copies the fs_contigdirs pointer
  from the previous superblock, and reinitialises fs_avgf* if necessary.

  Reviewed by:	mckusick
=====

=====
nik         2001/04/10 03:36:44 PDT
  Add information about the new options to newfs and tunefs which set the
  expected average file size and number of files per directory.  Could do
  with some fleshing out.
=====
2001-09-06 02:16:00 +00:00
thorpej b92e8081fa Fixup scsi_mode_select(). 2001-09-05 16:25:17 +00:00
lukem ddbf49bae2 comment the commenting-out, to reduce confusion 2001-09-03 16:30:02 +00:00
lukem 9ddcc07798 - rename option `-t trackskew' to `-k trackskew', for consistency with newfs(8)
- add CHANGEVAL() macro, which does the hard work of changing a parameter
- sort options in usage()
- use  .ig [ ... ] ..  to comment out sections of man pages (instead
  of .\" at the start of each line
2001-09-03 15:04:39 +00:00
lukem 697080de7e no need to assign asb->fs_state twice in cmpsblks() 2001-09-03 14:53:31 +00:00
lukem c50eb8cc85 deprecate fs_fscktime; we never used it.
in an effort to maintain compatibility with freebsd/openbsd/whatever,
i'm attempting to get the superblock format in sync, and freebsd uses
the int32_t at this position for `fs_pendinginodes'.

if we ever decide to implement fscktime functionality, we'll:
a) make sure to liaise with the other projects to reserve the same
   spare field
b) actually implement the code this time ...

(this is also preparing us for other changes, like the new dirpref code)
2001-09-03 14:52:17 +00:00
lukem e3ba61f9f3 Incorporate fix by iedowse @ FreeBSD to allow disks with large numbers of
cylinder groups to work correctly, with minor modifications by me to work
with our FFS_EI code.  From the FreeBSD commit message:

	The ffs superblock includes a 128-byte region for use by temporary
	in-core pointers to summary information. An array in this region
	(fs_csp) could overflow on filesystems with a very large number of
	cylinder groups (~16000 on i386 with 8k blocks). When this happens,
	other fields in the superblock get corrupted, and fsck refuses to
	check the filesystem.

	Solve this problem by replacing the fs_csp array in 'struct fs'
	with a single pointer, and add padding to keep the length of the
	128-byte region fixed. Update the kernel and userland utilities
	to use just this single pointer.

	With this change, the kernel no longer makes use of the superblock
	fields 'fs_csshift' and 'fs_csmask'. Add a comment to newfs/mkfs.c
	to indicate that these fields must be calculated for compatibility
	with older kernels.

	Reviewed by:    mckusick
2001-09-02 01:58:30 +00:00
lukem a565a4a989 fix a couple of typos in option descriptions 2001-08-31 08:03:27 +00:00
lukem c56418af73 some improvements from freebsd/openbsd
- replace the unused fs_headswitch and fs_trkseek with fs_id[2], bringing
  our struct fs closer to that in freebsd & openbsd (& solaris FWIW)
- dumpfs: improve warning message when cpc == 0
2001-08-30 14:37:25 +00:00
lukem 3e209fc87a replace mkfs reference with sentence describing what newfs does (from freebsd) 2001-08-30 08:40:10 +00:00
ad 3839890ed7 errx() prints the newline for you. 2001-08-28 15:36:54 +00:00
lukem 063df7cfb7 various calcipg() fixes:
- fix round-off errors when determining the number of inodes per group,
  which often resulted in the total number of inodes in the file system
  being less than what the density asked for.
  now you might get more inodes than requested for a given density,
  rather than less.
- if the new inodes/group is <= 0, ensure that it's at least 1, preventing
  a possible division by zero or other wacky problems
- use long long instead of quad_t
2001-08-25 01:42:46 +00:00
wiz 251b3464be heirarchy -> hierarchy 2001-08-24 10:24:45 +00:00
wiz eea41b6f12 Document more explicitly that the kernel must be `secure' according to
secure_path to be used automatically. (Of course, you can override with the
-N option.)
Addresses bin/13665.
2001-08-20 14:23:59 +00:00
wiz 1e378c4c12 precede, not preceed. 2001-08-20 12:00:46 +00:00
hubertf 5ad165ca8f Remove duplicate listing of "net.inet.tcp.init_win" system variable as
reported in PR 13760 by Don Yuniskis <auryn@gci-net.com>
2001-08-20 10:31:46 +00:00
ad d78020d1bf Use getrawpartition(). 2001-08-20 08:21:09 +00:00
lukem 664a532e86 - add -F - manipulate a file system image in a regular file (instead of
a special device).
- implement statistics printing on SIGINFO
2001-08-19 14:59:39 +00:00
lukem 5157971af5 - add -F; indicates "special" is a file system image in a regular file
- reorder "special" validation to after option parsing
- use getopt(3) instead of homegrown code
- add getnum() to parse and validate a number
- clean up man page
- ansi KNF, WARNS=2
2001-08-19 09:39:24 +00:00
itojun 4d4d43e300 snprintf return value audit. from deraadt 2001-08-19 01:27:43 +00:00
itojun 426db19de1 use bind(2) to support -S. snprintf return value audit from deraadt 2001-08-19 01:21:42 +00:00
ad e3af9d1d6b getopt() returns -1 on error, not EOF. 2001-08-18 17:10:04 +00:00
thorpej 3c9726c276 Descend into brconfig/ 2001-08-17 21:43:55 +00:00
thorpej 7ac7787048 Configuration utility for bridge(4) devices. 2001-08-17 21:42:10 +00:00
lukem 1b81d6353d remove third argument (`int ns') from ffs_sb_swap(), and let ffs_sb_swap()
determine the endianness of the `struct fs *o' superblock from o->fs_magic
and set needswap as necessary, rather than trusting the caller to get
it right.  invariably, almost every caller of ffs_sb_swap() was calling it
with ns set to the wrong value for ns anyway!
ansi KNF ffs_bswap.c declarations whilst here.

this fixes all sorts of problems when trying to use other-endian file systems,
notably the kernel trying to access memory *way* off, possibly corrupting or
panicing, and userland programs SEGVing and/or corrupting things (e.g,
"fsck_ffs -B"  to swap a file system endianness).

whilst the previous rev of ffs_bswap.c (1.10, 2000/12/23) made this problem
worse, i suspect that the problem was always there and previous versions
just happened not to trash things at the wrong time.

FFS_EI should now be a lot more stable.
2001-08-17 02:18:46 +00:00
itojun 733748c930 we have never supported lzs. sync with kame 2001-08-16 06:39:09 +00:00
lukem 84958ed05f - implement -F; treat provided filesystems as images in regular files
- replace "filesystem" with "file system" as appropriate
- grammar fixes
2001-08-15 03:54:53 +00:00
lukem d6e3055ff1 minor whitespace cleanup 2001-08-15 03:40:50 +00:00
lukem b1a3e1140e - implement -F, which indicates that files-to-dump is a regular file
containing a file system image (instead of being a single file as
  part of a subtree dump)
- use "file system" instead of "filesystem" or "file-system"
2001-08-14 06:51:36 +00:00
lukem d5eaa32503 s/filesystem/file system/ 2001-08-14 05:44:44 +00:00
lukem b00117c331 s/filesystem/file system/dump.h 2001-08-14 05:44:15 +00:00
itojun f0a37a3a91 sync with latest kame. clarifies hex key and other things. 2001-08-12 09:38:18 +00:00
david 11680bf9c9 Correct style of a comment, and bad else {} scoping from my previous
commit.

Thanks to enami tsugutomo for pointing both out.
2001-08-09 01:25:35 +00:00
david 92d578c744 Cause multiple uses of alias, -alias, and delete to produce an error,
and exit.

Previously, combinations would produce unintended results, such as
deleting the primary IP on an interface, instead of deleting an specified
alias.
2001-08-08 21:22:35 +00:00
david a84be23c10 Patch to drop setgid tty privs until forking for operator notification 2001-08-08 16:49:54 +00:00
lukem 15af0b9ec7 when zeroing the image, use fstatfs() to find the optimal block size
(falling back to 8KB) instead of 512. should speed things up.
2001-08-08 07:34:53 +00:00
lukem 3f273dbe61 WARNS=2 2001-08-03 02:30:23 +00:00
itojun fdd3ee1f18 embed scopeid on scoped ipv6 address. sync with kame 2001-07-31 23:27:35 +00:00
lukem 8a6a290e5a revert rev 1.48 for now, until i'm sure the malloc (et al) rename is
safe (since there's two separate mallocs using sbrk(2) in that case)

XXX: local malloc provided for mfs memory store allocation; need to
investigate if system (phk) malloc can be used instead.
2001-07-31 01:31:26 +00:00
lukem 2b2279d9a5 - constify mkfs()'s first arg
- slightly reorder steps in -F image creation
2001-07-30 07:45:08 +00:00
lukem 852833fff1 rename and hide: malloc->Malloc, calloc->Calloc, free->Free. (remove realloc) 2001-07-30 07:13:58 +00:00
lukem 84fb126399 ansi knf, WARNS=2 2001-07-29 11:15:29 +00:00
lukem 1c37a982fa enable WARNS=2 2001-07-29 09:59:12 +00:00
lukem 14929f77ab * add -F option: enable creation of file system in a regular file. a "fake"
disklabel is created as per mfs on "swap".
* add -Z option: pre-zero the -F image file before use. this is necessary if
  the image is to be used with vnd(4) because by default the files created
  with -F have "holes" and vnd doesn't cope with that.
* support 'k', 'm', 'g' suffixes for all options which take numeric arguments.
  provide strsuftoi() which performs the parsing mechanism.
* improve man page description of various options
* replace "filesystem" with "file system"
* when displaying usage for mfs, only list mfs options
* minor KNF and WARNS=2 cleanups
2001-07-29 09:55:22 +00:00
lukem c67d40dc35 improve message describing MAXCSBUFS overflow 2001-07-27 15:19:33 +00:00
lukem bc1974136c s/filesystem/file system/ 2001-07-27 06:41:02 +00:00
itojun 153665ad26 show net.inet6.tcp6.* as mirror image of net.inet.tcp. better for future
INET-less kernels.
2001-07-27 04:22:09 +00:00
lukem 8a54ab244e clean up for WARNS=2 by renaming some local variables that shadow globals 2001-07-26 22:59:57 +00:00
wiz f705e892e5 concatinate -> concatenate 2001-07-26 22:49:09 +00:00
wiz 41df6b74a9 partiton -> partition 2001-07-26 22:47:34 +00:00
lukem b6172cb606 - check return value of calloc() in mkfs()
- in replacement malloc(), if sbrk(2) returns (void *)-1, convert to NULL
  before returning
- in replacement calloc(), check return value of malloc() before zeroing result
2001-07-26 16:53:39 +00:00
wiz 30b2bf87ed Various typos in comments (neccessary, sceme, choise, ...). 2001-07-26 15:05:07 +00:00
lukem 91d95899b4 remove unnecessary duplicate initialisation of sblock.fs_clean 2001-07-26 03:46:57 +00:00
itojun a7005bd7d6 do not go over the end of memory region we are supposed to touch,
overrun on "prefixlen" operation.  there's no SEGV possibility.
2001-07-25 17:29:14 +00:00
itojun d615372573 off-by-one error in -prefixlen arg validation (do not permit 129 on IPv6) 2001-07-20 08:31:55 +00:00
itojun 507c97b62e make prefixlen work on IPv4 too 2001-07-20 08:28:25 +00:00
itojun 99ab700036 correct LMC1000 product name (is SSI/V.35, not T1/E1).
print L2 type (T1/E1) on LMC1200.
2001-07-19 00:28:50 +00:00
itojun 820272cae6 detelct LMC1200 T1/E1 card. from openbsd 2001-07-19 00:19:42 +00:00
wiz e6b5422235 Fix a typo, and capitalize SCSI in one place. 2001-07-18 23:16:20 +00:00
bouyer 03fd5e671e Add and document a 'detach' command. 2001-07-18 20:36:36 +00:00
mrg d699caad5a reset uid & gid around calling rmthost(). 2001-07-17 10:56:53 +00:00
bad 4cda42fdd0 The way pmsg_addrs() is used requires that it always prints a newline and
flushes stdout before returning.

Previously the decoded output for a message was stuck in stdio buffers until
the next arrived.
2001-07-16 17:22:07 +00:00
mrg 5c897ed92f display what signal, not "unknown" 2001-07-16 13:30:13 +00:00
thorpej 8f43f0ca06 Fix printf format on LP64. 2001-07-13 21:09:55 +00:00
perseant 4e3fced95b Merge the short-lived perseant-lfsv2 branch into the trunk.
Kernels and tools understand both v1 and v2 filesystems; newfs_lfs
generates v2 by default.  Changes for the v2 layout include:

- Segments of non-PO2 size and arbitrary block offset, so these can be
  matched to convenient physical characteristics of the partition (e.g.,
  stripe or track size and offset).

- Address by fragment instead of by disk sector, paving the way for
  non-512-byte-sector devices.  In theory fragments can be as large
  as you like, though in reality they must be smaller than MAXBSIZE in size.

- Use serial number and filesystem identifier to ensure that roll-forward
  doesn't get old data and think it's new.  Roll-forward is enabled for
  v2 filesystems, though not for v1 filesystems by default.

- The inode free list is now a tailq, paving the way for undelete (undelete
  is not yet implemented, but can be without further non-backwards-compatible
  changes to disk structures).

- Inode atime information is kept in the Ifile, instead of on the inode;
  that is, the inode is never written *just* because atime was changed.
  Because of this the inodes remain near the file data on the disk, rather
  than wandering all over as the disk is read repeatedly.  This speeds up
  repeated reads by a small but noticeable amount.

Other changes of note include:

- The ifile written by newfs_lfs can now be of arbitrary length, it is no
  longer restricted to a single indirect block.

- Fixed an old bug where ctime was changed every time a vnode was created.
  I need to look more closely to make sure that the times are only updated
  during write(2) and friends, not after-the-fact during a segment write,
  and certainly not by the cleaner.
2001-07-13 20:30:18 +00:00
lukem 364e3039be * add -G, which lists the configuration of the given raid set in the
same configuration format that -c and -C use.
  this is useful if you're using autoconfig and you've misplaced the
  /etc/raidXXX.conf files
* "filesystem" -> "file system", and other man page cleanups.
2001-07-10 01:30:52 +00:00
thorpej 0614e02cbd Need rtsock.c 2001-07-09 20:04:32 +00:00
itojun 32a3de2268 clarify -a. sync with kame 2001-07-05 06:35:08 +00:00
hubertf 1adda5370d EVEN IF YOU SCREAM, THE COMMANT IS STILL CALLED fsck_ffs ! 2001-07-04 22:43:35 +00:00
jdolecek 0fe5bf8257 pipe sysctl stuff is now in <sys/pipe.h> 2001-07-02 20:55:16 +00:00
jhawk 18883403cb Update Dd to rev 1.31 (ipsec changes)
Some hosts and gateways ignore record route, but not "many." Of course,
  more are firewalled. But that's not what was meant here.
Expand flood-pinging admonition to include multicast addresses.
Note flags that conflict with ping under Solaris and FreeBSD.
Reorder BUGS in rough order of significance.
2001-06-25 01:12:53 +00:00
itojun 1d7e1a7cda sync with latest kame.
- sync usage/manpage with reality.
- stop pinging on "-f -c N".
2001-06-22 13:25:03 +00:00
onoe c4eb8932f8 Add support of persistent key of IEEE 802.11 wireless LAN card.
Currently, only Aironet ("an") driver/card can be used.
     nwkey persist   (IEEE 802.11 devices only) Enable WEP encryption for IEEE
                     802.11-based wireless network interfaces with the persis-
                     tent key written in the network card.
     nwkey persist:key
                     (IEEE 802.11 devices only) Write the key to the persis-
                     tent memory of the network card, and enable WEP encryp-
                     tion for IEEE 802.11-based wireless network interfaces
                     with the key.
2001-06-21 13:36:24 +00:00
mrg 6aca287eb4 expand -n documentation; from sunos. 2001-06-20 02:07:02 +00:00
wiz 3f9984fc90 `existent', not `existant' 2001-06-19 13:42:07 +00:00
fvdl e2ff2f5762 Use ELFSIZE 64 for x86-64. 2001-06-19 00:40:57 +00:00
lukem 172a636b48 - Don't attempt to fsck a file system that is mounted read-write unless -f
(force) is given. fsck(8) will return with a zero exit status if "fsck -p"
  is used in this circumstance, but all other invocations (e.g, "fsck",
  "fsck /filesystem", "fsck -p /filesystem") will return with a non-zero exit
  status in this circumstance.
  Per discussions with various people including Bill Sommerfeld.
- Use "file system" instead of "filesystem"
2001-06-18 06:28:59 +00:00
lukem 9e2e804c1c use TAILQ_xxx instead of referencing tqe_xxx elements directly 2001-06-18 02:43:32 +00:00
lukem f97f509658 ansi knf 2001-06-18 02:31:09 +00:00
lukem dacdbbf6ac use TAILQ_xxx instead of referencing tqh_xxx elements directly 2001-06-18 02:22:33 +00:00
lukem 4905fe31e2 -d is always compiled in; there's no specific #define to remove it 2001-06-18 01:55:12 +00:00
lukem 684735b97b complete conversion to ANSI C 2001-06-18 01:38:05 +00:00
lukem df639a1b6b remove references to /etc/rbootd.conf, since it's the config file for
a little used server daemon which can be controlled with rc.conf in any case.
(xxx: list of files probably should be totally configurable, but that's
another story). from [bin/13061] by matthew green.
2001-06-18 00:01:51 +00:00
jdolecek ee882e3a09 Add port of high performance pipe implementation written by John S. Dyson
for FreeBSD project. Besides huge speed boost compared with socketpair-based
pipes, this implementation also uses pagable kernel memory instead of mbufs.

Significant differences to FreeBSD version:
* uses uvm_loan() facility for direct write
* async/SIGIO handling correct also for sync writer, async reader
* limits settable via sysctl, amountpipekva and nbigpipes available via sysctl
* pipes are unidirectional - this is enforced on file descriptor level
	for now only, the code would be updated to take advantage of it
	eventually
* uses lockmgr(9)-based locks instead of home brew variant
* scatter-gather write is handled correctly for direct write case, data
  is transferred by PIPE_DIRECT_CHUNK bytes maximum, to avoid running out of kva

All FreeBSD/NetBSD specific code is within appropriate #ifdef, in preparation
to feed changes back to FreeBSD tree.

This pipe implementation is optional for now, add 'options NEW_PIPE'
to your kernel config to use it.
2001-06-16 12:00:02 +00:00
nonaka 978de91e79 Fix big-endian vs. MBR parameters. 2001-06-15 18:49:37 +00:00
wiz 0f1cb57c85 Note usage of getbootfile(3); sort SEE ALSO section according to
mdoc.samples(7).
2001-06-13 23:24:32 +00:00
wiz f91f11f51f Use getbootfile(3) instead of _PATH_UNIX by default.
Sprinkle some const.
2001-06-13 23:16:27 +00:00
fredette 48b3bae7e9 Enable edlabel on sun2, too. 2001-06-13 18:09:15 +00:00
mrg 55e0fea74f s/primary swap area/first swap area/ 2001-06-07 14:52:50 +00:00
wiz ea23c08f2a Typos and grammar fixes (last part of misc/13133 by Michael K. Sanders) 2001-06-07 13:58:23 +00:00
wiz cbd2a2a6a6 Drop trailing dot in Nd. 2001-06-05 12:46:08 +00:00