Commit graph

2278 commits

Author SHA1 Message Date
Poul-Henning Kamp 83baa1a055 Add mdconfig into the build. 2000-12-28 20:59:35 +00:00
Poul-Henning Kamp 70d586c091 Preliminary scaffolding for the new integrated vn+md device driver.
I decided to work on the md(4) driver and integrate the vn(4)
functionality into it mainly based on the name being more suitable.
Ideally 'vd' as in "virtual disk" would probably be the most logical
but our sound-master pointed out that this would cause uncontrollable
fits of giggles in the brits.  Another complication would the needed
changes to the ramdisk boot/root functionality.

The vn driver will stay around for some time after I complete this
merge for transition reasons, and I'll make it whine to people that
they should migrate to the md(4) driver for some time before it
dies.

The kernel part of the new md(4) driver will be committed after more
testing.
2000-12-28 20:57:57 +00:00
Tim Vanderhoek 5a6d739796 typo: modifes -> modifies 2000-12-28 16:44:47 +00:00
Dag-Erling Smørgrav c4b267dc7e Retire kernfs (userland part). 2000-12-28 12:59:57 +00:00
Poul-Henning Kamp 28b66787e0 When trying to deduce the diskname from the name so we can run
parallel fsck's one per drive, use the shortest prefix ending in
a digit rather than the longest prefix ending in a digit.

This makes "/dev/ad0s1a" and "/dev/ad0s2a" appear to both reside
on the disk "/dev/ad0" and consequently they will be fsck'ed
sequentially rather than in parallel as now.

In general this heuristic is rather soft and errorprone.  For
instance ccd may often reside on two or more physical disks.  A
good solution would be to look for passes larger than 1 until no
disks are found in a particular pass, that way people could put
ccd stripes in pass 3... and have them fsck'ed sequentially.

Reviewed by:	mjacob
2000-12-27 22:28:40 +00:00
Poul-Henning Kamp dab777beb8 Use official API to <sys/queue.h> instead of groping around inside the
data structures.

Reviewed by:	imp
2000-12-27 21:38:06 +00:00
Ruslan Ermilov d90d7015f9 Prepare for mdoc(7)NG. 2000-12-27 14:40:52 +00:00
Sheldon Hearn 20fc4e5c7b Fix hard sentence break introduced in previous commit. 2000-12-20 13:23:50 +00:00
Greg Lehey c25da7d469 Cosmetics.
Correct location of history file.

Change references from /dev/wd to /dev/ad.

Use more appropriate defaults for stripe size in examples.
2000-12-20 05:08:41 +00:00
Greg Lehey 5e104ad0dd roughlength: Use correct format strings. 2000-12-20 05:07:36 +00:00
Greg Lehey 0b01781882 Correct some comments.
vinum_attach: Get correct names (were being overwritten).

Submitted by:	Terry Glanfield <Terry.Glanfield@program-products.co.uk>
2000-12-20 05:05:39 +00:00
Warner Losh 64dee60f8c o Add an example for a large file system.
o Remove bug about boot blocks hating non-8k file systems.  This hasn't been
  the case for a long time.

Not Objected to by: hackers, doc
2000-12-19 21:55:07 +00:00
Ruslan Ermilov d8aa002e9c Prepare for mdoc(7)NG. 2000-12-19 15:36:48 +00:00
Poul-Henning Kamp 70d8bdef9d Add a missing period and newline to a message.
PR:	23334
Submitted by:	Rich Morin <rdm@cfcl.com>
2000-12-18 21:14:25 +00:00
Ruslan Ermilov 1252c1bb05 Prepare for mdoc(7)NG. 2000-12-18 15:16:24 +00:00
Poul-Henning Kamp 9d1334552f Add a -a option to show the entire message buffer. 2000-12-17 19:05:17 +00:00
John Polstra 4c6616fc3e Extend the ldconfig security check so that it ignores group-writable
directories in addition to world-writable directories.  As before,
this check can be disabled with the "-i" option, which in turn can
be made the default for boot-up by setting "ldconfig_insecure=YES"
in "/etc/rc.conf".

Also fix an mdoc nit in the manual page.

Submitted by:	Maxime Henrion <mux@qualys.com>
2000-12-17 18:50:56 +00:00
Ian Dowse 6db798cae4 Add a simple SIGINFO handler to fsck_ffs. Shortly after receipt of
a SIGINFO (normally via Ctrl-T), a line will be output indicating
the current phase number and progress information relevant to the
current phase.

Approved by:	mckusick
2000-12-15 14:23:55 +00:00
Alexey Zelkin 97a00e767a Add missing coma in SEE ALSO section
Reported by: Rich Morin <rdm@cfcl.com>
2000-12-14 16:24:38 +00:00
Ruslan Ermilov 88544700ca mdoc(7) police: added missing .Os call. 2000-12-14 13:58:15 +00:00
Ruslan Ermilov ed40311694 mdoc(7) police: removed history info from the .Os FreeBSD call. 2000-12-14 11:52:05 +00:00
Thomas-Henning von Kamptz 686e661363 Fix a logical bug introduced by changing the formatting.
Submitted by:	ru
Reviewed by:	chm
2000-12-13 22:19:05 +00:00
Ruslan Ermilov f33c0fddd7 Mdoc(7)ify. 2000-12-13 11:33:19 +00:00
Thomas-Henning von Kamptz 4020c5bc54 corrected spelling mistakes in comments
check a couple of mallocs
usage of errx
linebreaks of DBG_ macros,
correcting the usage of nroff macros

Submitted by:	grog, charnier
Reviewed by:	chm
2000-12-12 20:03:17 +00:00
Ian Dowse 5a59cccc61 Stop restore from looping under certain error conditions. This
corrects cases where restore would spew an infinite stream of
"Changing volumes on pipe input?" messages, or would loop waiting
for a response to the "set owner/mode for '.'" question.

PR:		bin/14250
Reviewed by:	dwmalone
2000-12-12 12:04:02 +00:00
Kirk McKusick 522b7bcdf6 Don't give up on file write errors. Just log them and continue. 2000-12-12 06:30:42 +00:00
Ruslan Ermilov b24f640551 mdoc(7) police: use canonical form of .Dd macro. 2000-12-11 15:20:31 +00:00
Philippe Charnier 77edab906e The tunefs code assumed that the last argument was the device specification.
We need to parse the arguments first, then open the device (if
specified) and then apply the changes. This change will disallow the
(undocumented) use of multiple instances of the same argument on the
same command line for the sack of a better error message.

Other changes are:
1) the softupdates (-n) now issue a warning about remaining unchanged
2) the usage and man page is changed to specify "space | time" instead of
"optimization preference".

PR:		bin/23335
Submitted by:Mark Peek <mark@whistle.com>
2000-12-10 20:59:30 +00:00
Thomas-Henning von Kamptz 3d5000784d added growfs(8) including ffsinfo(8) to the freebsd base system
Reviewed by:	 grog
2000-12-09 15:27:35 +00:00
David E. O'Brien 1a37aa566b Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.
2000-12-09 09:35:55 +00:00
Ben Smithurst 8afbbd41f4 Explicitly document the fact that securelevel > 0 means that kernel modules
may not be (un)loaded.

PR:		23350
Submitted by:	Gordon Tetlow <gordont@bluemtn.net>
2000-12-07 21:09:22 +00:00
David E. O'Brien a8e642f574 Change the spelling of .' to .' from .OBJDIR since `.' really is where
generated files land.  Also give precedence to generated files.
2000-12-05 22:10:43 +00:00
Hajimu UMEMOTO effd2d8296 test strdup() failures.
from: Chris Faulhaber <jedgar@fxp.org>

Obtained from:	KAME
2000-12-04 13:38:59 +00:00
Andrzej Bialecki 846bd927fa Properly check the return values from malloc(3).
Remove some PNP-related dead code that is unlikely to survive the
changes in -current PNP anyway.

Submitted by:	fixes from Chris Faulhaber <jedgar@freebsd.org>
2000-12-03 00:09:08 +00:00
Chris D. Faulhaber b673f44d6d Properly check malloc(3) return values
Approved by:	ken
2000-12-01 12:02:16 +00:00
David E. O'Brien 2c5569d6ff The GCC 2.96 snapshots have slightly different rules for finding include
files.  Mostly -I${.CURDIR} was needed -- especially for YACC generated
files as the new cpp does not look in the ultimate source file
(ie, the .y file)'s directory as told by the "#line" directive.  Some were
misspellings of "-I${.CURDIR}" as "-I.".
2000-12-01 09:39:28 +00:00
Andrey A. Chernov 17927a641c Add missing && which absense stops 'make world' 2000-11-30 23:01:43 +00:00
Luigi Rizzo ee7b8babab remove an undefined reference when no VLAN support is compiled in. 2000-11-30 21:35:09 +00:00
David E. O'Brien 6580291ba4 I didn't maintain the "chs" ordering. Rather the bug was in print_part().
Requested by:	bde.
2000-11-29 20:22:47 +00:00
Ben Smithurst b60884cd68 Fix typos and layout problem.
PR:		23109
Submitted by:	Jimmy Olgeni <olgeni@uli.it>
2000-11-28 20:38:20 +00:00
Philippe Charnier 2af14b60ed Remove .Op when arg is required (special | filesystem). Document that at
least one flag is required and check this in the code. Make use of getopt(3).
Generalyze printing `... remains unchanged ...'.
2000-11-28 18:17:15 +00:00
Hajimu UMEMOTO 1ada402aa4 Add missing initialization for IPv6 address lifetime.
PR:		misc/22884
Obtained from:	KAME
2000-11-27 08:44:57 +00:00
Kris Kennaway 797376317f Fix format string warnings 2000-11-27 07:28:15 +00:00
Daniel Harris 32704e5747 Typo fix: forgot -> forget.
PR:		23113
Submitted by:	Jimmy Olgeni <olgeni@uli.it>
2000-11-26 23:26:51 +00:00
Ruslan Ermilov 7f8047281e mdoc(7) police: misc minor fixes. 2000-11-23 08:18:10 +00:00
Greg Lehey 162b57c009 Correct the pathname of the history file.
Reported by:	Crist J . Clark <cjclark@alum.mit.edu>
2000-11-23 01:41:11 +00:00
Alexey Zelkin e867267b31 o get rid lfs mentions
o remove non-mdoc groff's instructions
2000-11-22 17:56:21 +00:00
Alexey Zelkin 5a4420e314 We do not support lfs. Remove it from list of remountable fs'es. 2000-11-22 17:54:56 +00:00
Ruslan Ermilov c23155a43a mdoc(7) police: Er macro usage cleanup. 2000-11-22 16:02:00 +00:00
Ruslan Ermilov f4d874a1db mdoc(7) police: do not split author names in the AUTHORS section. 2000-11-22 09:35:58 +00:00