Commit Graph

2146 Commits

Author SHA1 Message Date
jdolecek 6a6f9705de add couple of missing entries, update kern.maxptys entry - it is not raise only 2000-10-26 07:35:56 +00:00
fvdl 2753597fd4 Disable VERBOSE_BLOCKMAP by default; it allocates huge amounts of
memory, causing immediate fsck_lfs failure for big filesystems.
2000-10-19 14:58:40 +00:00
kleink e90b215b52 Don't make references to _10Mb/s_ Ethernet where not appropriate; from
Christian Weisgerber.
2000-10-18 07:27:11 +00:00
simonb 9b22175a26 Remove INSTALLFLAGS=-fschg, as per change to usr.bin/ssh/ssh/Makefile. 2000-10-18 00:24:18 +00:00
wiz af69e93eb8 change mentioning of `login' to a .Xr in one place 2000-10-17 01:07:43 +00:00
itojun 055f6cd999 have description on -v. sync with kame 2000-10-15 13:43:51 +00:00
bjh21 c6f45d411c Ah, so _that_'s how you get a backslash in a macro argument.
Thanks to itojun for pointing it out.
2000-10-15 13:40:53 +00:00
bjh21 ebd0b719b0 Various formatting cleanups (mostly to use .Ql).
Note that getting a single backslash inside Ql seems to need SIXTEEN
of them in the source!
2000-10-15 13:21:40 +00:00
itojun 593affa94c do not segv on too many args. sync with kame 2000-10-12 10:35:48 +00:00
he 5b7047ce18 The type of sizeof() can be u_long, so cast to that and print with %ld. 2000-10-11 21:08:54 +00:00
he e3ab5a24f9 Format fixup. size_t can be long, so cast to u_long and print with %ld. 2000-10-11 21:02:05 +00:00
he ecaef6e7a4 Better fix for format warnings.
The type of time_t varies between ports, so we need to cast
before printing.  It appears to be sufficient and safe to use (int).
2000-10-11 20:25:29 +00:00
abs 5d868db883 When determining the filesystem type automatically, only try the raw device
for the disklabel if the given device fails with EBUSY. Also make disklabel
errors non fatal (just fall back to ffs as per pre-autofilesystem behaviour)
Based on further discussion with Launey Thomas <ljt@alum.mit.edu>
2000-10-11 17:56:05 +00:00
itojun 874bb03cac make the directory suitable with with latest racoon
- add random.c.
- don't suppress warning.
2000-10-11 05:41:18 +00:00
briggs 1e8e167a26 Fix format warnings 2000-10-11 04:57:42 +00:00
is 9979da6cbb Format string cleanups by Bill Sommerfeld. 2000-10-10 20:24:49 +00:00
itojun d72739fb8a on "route monitor", print RTM_IFANNOUNCE, RTM_IFINFO (new #), and others. 2000-10-10 09:35:05 +00:00
christos c4c61b5a08 allow -I -i to install a new label interactively. 2000-10-08 23:32:50 +00:00
bjh21 162b0b6410 Miscellaneous -mdoc cleanups. 2000-10-08 09:53:00 +00:00
bjh21 30ee56ec59 Mention that ldconfig is a.out only.
Should fix PR bin/10299.
2000-10-08 09:33:13 +00:00
darrenr a2d10b89c2 initialize kernel to _PATH_UNIX and remove local variables in functions
which are essentially copies of kernel.
2000-10-08 07:04:28 +00:00
itojun b91818e7e8 fix truncated response handling; sync with kame 2000-10-08 00:26:38 +00:00
itojun 794318ceff avoid fd_set overflow. see openbsd select(2). 2000-10-07 06:50:43 +00:00
itojun c0de460728 repair fd_set size attack. from deraadt.
some of cleanups from kame (inet_ntop error check, unnecessary headers,
stddev computation like ping(8)).
$NetBSD$.
2000-10-07 06:36:50 +00:00
ad 5b09090e8e insure -> ensure 2000-10-05 12:35:33 +00:00
enami 9b6f3e1ce2 Don't explain -s twice. 2000-10-05 03:24:41 +00:00
jdolecek cf8b00f58b setup(): use calloc() for blockmap allocation, instead of malloc() followed
by bzero(); the net result is that the test for allocation failure
is actually sensible now
2000-10-04 11:37:54 +00:00
itojun 72beb4728a add config file directory 2000-10-04 00:27:48 +00:00
itojun f0dc76db35 a test build tree for racoon IKE daemon.
you need KAME tree to compile this (point the top by ${KAMEROOT}
in Makefile.inc).

XXX maybe too big for /sbin...869K with certificate support, and 574K without
certificate support (i386, stripped, static-link)
2000-10-04 00:21:17 +00:00
itojun 4bfd9169a9 support rijndael-cbc. 2000-10-03 21:48:33 +00:00
bjh21 9626c2fdbb Put the sections in the canonical order.
Fix formatting of '=' and '+='.
File names are .Pa, not .Ar.
2000-10-03 14:33:16 +00:00
thorpej 9e992b012b In tunnel_status(), if we have an IPv6 kernel, but a driver doesn't
support IPv6 tunnel endpoint addresses, fall back on the sockaddr
version of the ioctls.
2000-10-02 22:30:40 +00:00
hubertf c58e6bf54d We don't ship format(8), so don't x-ref it. 2000-10-02 21:17:04 +00:00
abs 5087b081db When opening a partition to automatically determine the filesystem type,
always use the raw partition in case it is already mounted and this is
an 'update' mount. Patch from Launey Thomas <ljt@alum.mit.edu>
2000-10-02 18:52:47 +00:00
perseant 7d6de39e20 Handle "-m 0" properly (PR #11112). 2000-10-02 16:06:48 +00:00
darrenr 3904e69e83 savecore was looking up dumpdev, etc, from the wrong kernel 2000-10-01 02:27:06 +00:00
fvdl 00a8c99503 Modification to previous: only build for ports that are a.out or used
to be a.out. No sense in building for ports that never were a.out.
2000-09-29 19:00:59 +00:00
fvdl 989e0d2613 Build this on ELF as well. When on an ELF system, only look in
_PATH_EMUL_AOUT/etc/ld.so.conf.
2000-09-29 17:47:52 +00:00
thorpej c77c2baf89 Add vlan(4) support. From Andy Doran <ad@netbsd.org>. 2000-09-27 23:00:24 +00:00
jdolecek 08d0274af3 fix typo (remplaced --> replaced) 2000-09-26 13:28:27 +00:00
gmcgarry 69a9911e49 Fix spelling. 2000-09-20 22:08:01 +00:00
abs 7dea4938ea If device and mountpoint are given without -t, and without a : in the
device, check the disklabel for filesystem type. Fall back to ffs as ever.
2000-09-18 10:48:23 +00:00
abs 3b81524ad0 if readboot() calls pfatal(), we need to print a \n before exiting 2000-09-15 22:11:41 +00:00
perseant 15c84d56e5 Do not report write errors if the user specified the -N flag.
Also, change the segment size report to include the total size of the disk,
similar to newfs, e.g.

  newfs_lfs -N -F -B 65536 /dev/rsd0b
  272.7MB in 4363 segments of size 65536
  super-block backups (for fsck -b #) at:
  16, 55824, 111632, 167440, 223248, 279056, 334864, 390672, 446480, 502288
2000-09-11 01:32:21 +00:00
jdolecek f973bb5351 document kern.maxptys/KERN_MAXPTYS
note that kern.maxvnodes is raise only
2000-09-09 17:06:34 +00:00
perseant 9c7f8050f4 Various bug-fixes to LFS, to wit:
Kernel:

* Add runtime quantity lfs_ravail, the number of disk-blocks reserved
  for writing.  Writes to the filesystem first reserve a maximum amount
  of blocks before their write is allowed to proceed; after the blocks
  are allocated the reserved total is reduced by a corresponding amount.

  If the lfs_reserve function cannot immediately reserve the requested
  number of blocks, the inode is unlocked, and the thread sleeps until
  the cleaner has made enough space available for the blocks to be
  reserved.  In this way large files can be written to the filesystem
  (or, smaller files can be written to a nearly-full but thoroughly
  clean filesystem) and the cleaner can still function properly.

* Remove explicit switching on dlfs_minfreeseg from the kernel code; it
  is now merely a fs-creation parameter used to compute dlfs_avail and
  dlfs_bfree (and used by fsck_lfs(8) to check their accuracy).  Its
  former role is better assumed by a properly computed dlfs_avail.

* Bounds-check inode numbers submitted through lfs_bmapv and lfs_markv.
  This prevents a panic, but, if the cleaner is feeding the filesystem
  the wrong data, you are still in a world of hurt.

* Cleanup: remove explicit references of DEV_BSIZE in favor of
  btodb()/dbtob().

lfs_cleanerd:

* Make -n mean "send N segments' blocks through a single call to
  lfs_markv".  Previously it had meant "clean N segments though N calls
  to lfs_markv, before looking again to see if more need to be cleaned".
  The new behavior gives better packing of direct data on disk with as
  little metadata as possible, largely alleviating the problem that the
  cleaner can consume more disk through inefficient use of metadata than
  it frees by moving dirty data away from clean "holes" to produce
  entirely clean segments.

* Make -b mean "read as many segments as necessary to write N segments
  of dirty data back to disk", rather than its former meaning of "read
  as many segments as necessary to free N segments worth of space".  The
  new meaning, combined with the new -n behavior described above,
  further aids in cleaning storage efficiency as entire segments can be
  written at once, using as few blocks as possible for segment summaries
  and inode blocks.

* Make the cleaner take note of segments which could not be cleaned due
  to error, and not attempt to clean them until they are entirely free
  of dirty blocks.  This prevents the case in which a cleanerd running
  with -n 1 and without -b (formerly the default) would spin trying
  repeatedly to clean a corrupt segment, while the remaining space
  filled and deadlocked the filesystem.

* Update the lfs_cleanerd manual page to describe all the options,
  including the changes mentioned here (in particular, the -b and -n
  flags were previously undocumented).

fsck_lfs:

* Check, and optionally fix, lfs_avail (to an exact figure) and
  lfs_bfree (within a margin of error) in pass 5.

newfs_lfs:

* Reduce the default dlfs_minfreeseg to 1/20 of the total segments.

* Add a warning if the sgs disklabel field is 16 (the default for FFS'
  cpg, but not usually desirable for LFS' sgs: 5--8 is a better range).

* Change the calculation of lfs_avail and lfs_bfree, corresponding to
  the kernel changes mentioned above.

mount_lfs:

* Add -N and -b options to pass corresponding -n and -b options to
  lfs_cleanerd.

* Default to calling lfs_cleanerd with "-b -n 4".


[All of these changes were largely tested in the 1.5 branch, with the
idea that they (along with previous un-pulled-up work) could be applied
to the branch while it was still in ALPHA2; however my test system has
experienced corruption on another filesystem (/dev/console has gone
missing :^), and, while I believe this unrelated to the LFS changes, I
cannot with good conscience request that the changes be pulled up.]
2000-09-09 04:49:54 +00:00
kleink 2caf6aacdd For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).
2000-09-04 07:30:07 +00:00
lukem 6c94f4bee8 in cmd_name(), put the default prompt into a temporary buffer rather
than overwrite the existing d_packname.  noted by enami@.
2000-09-04 02:09:26 +00:00
hubertf 26b6647470 Document the FAT types we support, and add a bugs section (suggested
by ws@netbsd.org).
2000-08-28 15:31:05 +00:00
joda 6532bb554c document -s 2000-08-28 13:27:37 +00:00
enami 3403ff66ff Pull down the changes I've just accidently commited into 1.5 branch.
Mainly, .Pa fixes.
2000-08-26 13:45:20 +00:00
itojun 152da24bd9 implement net.inet6.ip6.{anon,low}port{min,max} sysctl variable. 2000-08-26 11:03:45 +00:00
itojun 3c7320bedf document net.inet.ip.lowport{min,max} 2000-08-26 11:00:41 +00:00
joda 4f419afab1 initialize sflag to zero; discovered on Digital UNIX, where I got
random (no pun intended) functionality
2000-08-25 16:47:17 +00:00
lukem 003803c5d4 - add rc.conf.d to list of items to link
- update man page to reflect reality
- use mdoc macros correctly...
2000-08-22 12:06:46 +00:00
soren fac5e7d742 Add space in summary printf. 2000-08-19 21:31:58 +00:00
oster 8b77995122 It is impolite to poll in a tight loop. (Thanks to Christos for noting
the problem.)
2000-08-19 19:51:17 +00:00
lukem 4c8c86856e * use strcasecmp() instead of strcmp() so that filesystem type and disk type
searchs (amongst others) are case insensitive.
* in interactive mode (-i), when editing entries display supported disk types
  and filesystem types when given `?' (when ``[?]'' appears in the prompt
  this feature is supported for the question).
* support `m' as a suffix equivalent to `M'
* in interactive mode, be a bit more sensible about handling errors and EOF
* implement dumpnames(), which takes a char ** and size, and displays
  as per ls -F (sorted, listed vertically) but indented by one tab
* don't assume d_typename and d_packname are NUL terminated
* fix up some comments and some warning messages (bad cut & pastos :)
* deprecate deffstypename() and getfstypename()
* be consistent when using sizeof()
2000-08-14 22:37:08 +00:00
deberg 31064c0014 use CURDIR where appropriate 2000-08-14 16:38:40 +00:00
itojun 940be0cfdc - bugfix: truncated FQDN printing
- allow < 1 second interval on -i (root only).  from openbsd
2000-08-14 02:54:43 +00:00
wiz fb3d40deab add two letters in strategically important places, and replace one
ifconfig by .Nm
2000-08-13 17:17:26 +00:00
jhawk df711325aa "boostrap" => "bootstrap" 2000-08-12 18:52:42 +00:00
oster ff1bb25d60 Clarify a few things about parity. Add more documentation about RAID on RAID,
and root on RAID.
2000-08-10 15:14:14 +00:00
itojun 1b2be13d48 DNS compression support.
be more picky about DNS label validation.
(sync with kame)
2000-08-09 14:36:00 +00:00
mrg f3f04801b2 enable edlabel on sparc64, too. 2000-08-09 11:37:34 +00:00
leo d9f85c81c0 standarize -> standardize. From Thomas Klausner. 2000-08-05 19:09:37 +00:00
enami 4be9c3c33c Stop parsing once encountered non directive line as documented in man page. 2000-08-04 07:33:55 +00:00
leo 032c2e34d9 Fix number of parameters in a usage printf. Noticed by Thomas Klausner. 2000-08-03 20:05:48 +00:00
castor d02d10e226 Fix an evil ugly bug which causes files placed into lost+found to
be inconsistent, and unremovable. From Ethan Solomita <ethan@geocast.com>.
Reviewed by fvdl.
2000-08-03 14:52:39 +00:00
eeh baf03fd97c time is a `struct timeval' not a `time_t', so read it in properly. 2000-08-01 16:46:27 +00:00
jhawk f66c42de08 Xr for mount_overlay(8) 2000-07-30 15:17:14 +00:00
jdolecek cf8bbdf82f in SEE ALSO, add missing comma between moun(8) and mount_null(8) 2000-07-30 10:41:29 +00:00
itojun 1048b82bf1 nuke net.inet*.ip*.*ratelimit. 2000-07-28 04:08:44 +00:00
thorpej c849d97e50 Pull in <md5.h> rather than defining our own MD5 structures (!). 2000-07-27 16:34:31 +00:00
itojun 348dcd5529 add net.inet.tcp.rstppslimit 2000-07-27 11:37:46 +00:00
jdolecek 339275db14 backoff rev 1.18 & 1.19 - it's made obsolete by last rc.d changes and using
arbitrary hard time limit for /etc/rc.shutdown is not right anyway
2000-07-25 19:02:15 +00:00
jdolecek 9ada2e4d0c backoff rev 1.36 - it's made obsolete by last rc.d changes and using
arbitrary hard time limit for /etc/rc.shutdown is not right anyway
2000-07-25 18:59:44 +00:00
onoe afa6a922a6 also note that the WaveLAN/IEEE Gold cards accept the 104 bits key.
pointed out by jhawk.
XXX this doesn't match to wiconfig(8), which is probably wrong.
2000-07-21 18:31:03 +00:00
onoe 05079cfc6d Clarify the restrictions in length for argument of the nwid and nwkey. 2000-07-21 17:37:12 +00:00
onoe 9efdccbdb5 Add nwkey and -nwkey keywords, to enable/disable WEP,
and to set WEP encryption key for IEEE802.11 wireless network interfaces.
2000-07-21 04:53:03 +00:00
thorpej ef220cfa40 Make sure IS_PASSIVE gets set on a parm's int_state when the
passive option is used in an if=xxx clause.
2000-07-21 00:22:38 +00:00
thorpej 9b5aaf80be In walk_supply(), test for IS_PASSIVE in ifp->int_state, not
ifp->int_if_flags (IFF_* bits).
2000-07-20 22:50:16 +00:00
thorpej 5bf452f867 Add a -C flag, to list all available network interface cloners. 2000-07-20 18:42:02 +00:00
jdolecek 3a7c71f3b9 fix synopsis line so that the -T syntax is right 2000-07-20 17:46:57 +00:00
jdolecek 02ca64b4c6 when running /etc/rc.shutdown, don't want on it until it completes
indefinitely - by default, wait maximum of 300 seconds only
the timeout is settable via new -T flag
Adjust history to mention addition of shutdown hooks and -T option on manpage

This fixes bin/10637.
2000-07-20 17:33:57 +00:00
jdolecek 94021a19a5 when running /etc/rc.shutdown, don't wait on it until it completes
indefinitely - by default, wait maximum of 300 seconds only
the timeout is settable via new -T flag
Adjust history to mention addition of shutdown hooks and -T option on manpage,
also move description of -D further up and slighly adjust.

This fixes bin/10637.
2000-07-20 17:33:56 +00:00
enami 8db557a393 Free storage allocated by fparseln. 2000-07-19 10:05:43 +00:00
enami 3a6b928e7a Free storage allocated by fparseln. 2000-07-19 09:58:03 +00:00
enami 1c1b132cda - Fix off-by-one error in previous.
- Fix a typo of ioctl name in warning message.
2000-07-19 06:01:24 +00:00
onoe f989129a77 check the length of nwid argument before copy to avoid SEGV.
pointed out by enami-san
2000-07-19 04:43:34 +00:00
itojun 4941457b0a sync with the current usage. from kame.
note th at the file will not be installed into locations like
/usr/sibn or /sbin.
2000-07-18 23:32:19 +00:00
itojun 6a202d75eb sync with recent net/pfkeyv2.h change (sorry forgot to commit). from kame 2000-07-18 23:29:48 +00:00
mrg 1fdc1c0300 implement `# KEYWORD:' support, with two new arguments to rcorder, to kill
and skip keywords from the output list:

	-k keyword	only files with `# KEYWORD: keyword' will be printed.
	-s keyword	files with `# KEYWORD: keyword' will not be printed.

(multiple keywords can exist on a single line, and multiple lines may exist,
as with other special rcorder lines).

requested by lukem.
2000-07-17 14:16:22 +00:00
itojun 36abc851d1 correct hard-to-understand indentation. 2000-07-16 14:06:08 +00:00
jdolecek d015a6b7a6 note addition of rrcaseins in history 2000-07-16 08:20:04 +00:00
jdolecek 24c327fe78 Add an option to do case-insensitive lookups even on Rock-Ridge CD-ROMS.
Add 'rrcaseins' option to mount_cd9660(8).

This addresses kern/2419 by Jason Downs.
2000-07-15 21:40:42 +00:00
jdolecek a8b345d374 add extatt, gens, nojoliet, norrip options - names taken from FreeBSD
add nrr as an alias for norrip, for compatibility with Solaris
retire -e, -g, -j, -r: they are still recognized and handled, but are
	not listed in mount_cd9660's SYNOPSIS and are documented as
	obsolete in mount_cd9660(8)
update history for joliet support and nomaplcase option
2000-07-15 13:54:45 +00:00
simonb a6273c2690 Handle KERN_MSGBUF and KERN_CONSDEV gracefully. 2000-07-15 07:07:02 +00:00
itojun c6910190d6 sync with sys/sysctl.h change (is it the right way to workaround this?) 2000-07-15 01:44:35 +00:00
mycroft 9496d82675 Add a missing newline in one message.
(The fact that I got this message using softdep should probably disturb
someone...)
2000-07-14 02:43:44 +00:00