Poul-Henning Kamp
89fb8ee796
Add the undocumented -R option to disable randomness for regression-testing.
...
Add a couple of simple regression tests accessible with "make test", they
depend on the md(4) driver.
FYI I have also tried running the test against a week old newfs and it
passed.
2002-03-19 21:05:29 +00:00
Poul-Henning Kamp
8409849dd0
Further cleanups.
2002-03-19 20:01:38 +00:00
Warner Losh
c1fdb43f59
Remove stray register
2002-03-19 18:47:50 +00:00
Warner Losh
34ef9eb5e6
De-__P the man page, but I suspect that we need to freshly import
...
sys/disklabel.h since the one in here looks a little crunchy.
2002-03-19 18:44:56 +00:00
Ian Dowse
475df34ac2
Replace a number of similar for' loops with a new
ilog2()' function
...
that computes the base-2 log of a power of 2.
2002-03-19 17:39:01 +00:00
Ian Dowse
bf57cced53
Complete the ANSIfication of newfs by converting function declarations
...
to C89 style.
2002-03-19 17:20:02 +00:00
Ian Dowse
f7b48c89c8
The FSIRAND code is always compiled in, and it is unlikely that
...
anyone needs a newfs without it. Remove the #ifdef's from around
the code and the -DFSIRAND from the Makefile. Also remove redundant
declarations of random() and srandomdev().
2002-03-19 17:03:14 +00:00
Ian Dowse
9710700cb1
Remove the ancient STANDALONE code.
...
Approved by: phk
2002-03-19 16:47:20 +00:00
Darren Reed
a2a5557d65
both ipnat and ipfstat now use libkvm rather than their own home-rolled
...
kmem accessors, allowing them to be used with crash dumps as well as live
systems, now.
2002-03-19 15:07:30 +00:00
Warner Losh
1fa5ae8f93
o Remove __P
...
o Use ANSI function definitions
o mark usage() as __dead2
2002-03-19 13:29:39 +00:00
Peter Wemm
dbfec43cd3
Move savecore build enable to MD section of Makefile, currently enabled
...
for i386 and alpha. Although it builds on sparc64, it does not yet work.
A similar hack as what is used on the sparc64 MD macros can be used to
make ia64 build too, but there doesn't seem to be much point.
2002-03-19 12:07:27 +00:00
Ian Dowse
af53d6d86e
Remove yet more vestiges of mount_mfs.
2002-03-18 15:31:44 +00:00
Warner Losh
d1a939c146
o __P
...
o Strict ANSI declarations.
o return (foo);
o main (int, char *[])
2002-03-18 06:59:15 +00:00
Warner Losh
326c7cdab5
o remove __P
...
o Use ANSI function definitions
o const poison
o remove register
2002-03-18 06:17:50 +00:00
Warner Losh
e5fa3ee654
o __P removal.
...
o Use ANSI function definitions.
o main(int, char *[])
2002-03-18 05:00:52 +00:00
Warner Losh
323e7ff82e
o Use real prototypes and ANSI function definitions.
...
o Remove __P.
2002-03-18 04:57:08 +00:00
Warner Losh
bbbc97356c
o Use real prototypes
...
o Remove __P.
o main(int, char *[])
2002-03-18 04:55:09 +00:00
Bruce Evans
0c08079e26
Fixed some style bugs (mainly ones not fixed or made worse by rev.1.44).
...
Don't use ISO string concatentation to obfuscate long single-line
messages...
2002-03-18 03:04:58 +00:00
Bruce Evans
63dab85cea
Fixed some style bugs (mainly ones not fixed or made worse by rev.1.41).
...
Old code obfuscates long (but single-line) messages by printing them in
pieces using %s. Rev.1.41 obfuscated some new long messages using ISO
string concatenation. This commit only fixes the new obfuscations.
2002-03-18 02:43:14 +00:00
Bruce Evans
3ac7f11229
Removed vestiges of mount_mfs. Sorted the Makefile a bit.
2002-03-18 02:23:43 +00:00
Bruce Evans
3f305db0a2
Fixed 2 layers of breakage of WARNS. Setting WARNS unconditionally to
...
0 was bad and setting it unconditionally to 2 was worse.
2002-03-18 02:13:38 +00:00
Poul-Henning Kamp
345b78a301
Remove __P() and register.
...
Set WARNS=2
This is the beginning of a pre-UFS2 cleanup of newfs.
Sponsored by: DARPA, NAI Labs
2002-03-17 09:01:41 +00:00
Ruslan Ermilov
f303d23186
This sounds better.
2002-03-15 18:12:13 +00:00
Ruslan Ermilov
d1f8bca053
mdoc(7) police: tiny fixes.
2002-03-15 15:07:39 +00:00
Ruslan Ermilov
e629e744a2
mdoc(7) police: GC duplicate VCS ID.
2002-03-15 15:02:13 +00:00
Ruslan Ermilov
424616bb1c
mdoc(7) police: misc fixes.
2002-03-15 14:56:53 +00:00
Ruslan Ermilov
86fbcc3207
mdoc(7) police: kill whitespace at eol.
2002-03-15 14:45:45 +00:00
Ruslan Ermilov
992b9b7a2a
mdoc(7) police: tiny fixes.
2002-03-15 14:34:10 +00:00
Ruslan Ermilov
e3390c2a99
mdoc(7) police: tiny fixes.
2002-03-15 14:28:05 +00:00
Bill Fumerola
78d9ac5774
minor grammar fixes
2002-03-14 10:09:19 +00:00
Robert Nordier
8a1917d017
Clarify the cylinder > 1023 issue, now that EDD support is automatic.
...
Also drop a note about undocumented features that was intended to
cover the since-documented slice-selection syntax.
2002-03-13 19:00:19 +00:00
Ruslan Ermilov
cd6ab711b3
Document the "slice" syntax.
...
Prodded by: ambrisko
2002-03-13 12:30:46 +00:00
Ruslan Ermilov
9662d32c73
Implement -m and -p loader(8) "boot" command options in boot2.
...
(This is more useful for 4.x where boot blocks can still load
kernels, modulo the PR kern/17422.)
2002-03-13 11:03:36 +00:00
Murray Stokely
64f24fd5b8
Add information about multi-session CDs from the log message of r1.4.
...
Also, add an examples section and show how to mount a Kodak Photo-CD.
PR: docs/35206
2002-03-13 08:27:27 +00:00
Luigi Rizzo
617cc038bc
Document the existence of machdep.guessed_bootdev, as suggested
...
by Sheldon.
For a detailed description look at the commit log for sysctl.c
rev.1.42 -- i do not think it is appropriate to put the full
description in this manpage, and the "boot" and "loader" manpages
where this description might go are also missing a description of
a number of similar variables, so i think this it is ok to limit
documentation to this now, and update it later when I (or someone
else) have a chance to revise "boot" and "loader".
2002-03-12 13:55:19 +00:00
Dag-Erling Smørgrav
66a79b3d49
Sparc64 support.
2002-03-11 11:23:48 +00:00
Luigi Rizzo
bca9bbeae7
Make the handling of machdep.guessed_bootdev compiled on i386 only.
2002-03-11 06:50:28 +00:00
David E. O'Brien
fd43aa1c2c
Add complete Sparc64 support.
...
Submitted by: tmm
Dike out vax support.
2002-03-11 04:41:42 +00:00
David E. O'Brien
90b8f6bab5
* Support the Sparc64.
...
* Do not default to any particular platform. Require that we explicitly
support a particular platform.
2002-03-11 04:20:37 +00:00
Dima Dorfman
c871474800
Chase sysctl name.
...
Submitted by: Christopher Sharp <christopher_sharp@web.de>
2002-03-11 00:07:55 +00:00
Luigi Rizzo
60cf2c1254
Export a (machine dependent) kernel variable bootdev as
...
machdep.guessed_bootdev, and add code to sysctl to parse its value
and give a (not necessarily correct) name to the device we booted
from (the main motivation for this code is to use the info in the
PicoBSD boot scripts, and the impact on the kernel is minimal).
NOTE: the information available in bootdev is not always reliable,
so you should not trust it too much. The parsing code is the same
as in boot2.c, and cannot cover all cases -- as it is, it seems to
work fine with floppies and IDE disks recognised by the BIOS. It
_should_ work as well with SCSI disks recognised by the BIOS.
Booting from a CDROM in floppy emulation will return /dev/fd0 (because
this is what the BIOS tells us).
Booting off the network (e.g. with etherboot) leaves bootdev unset so
the value will be printed as "invalid (0xffffffff)".
Finally, this feature might go away at some point, hopefully when we
have a more reliable way to get the same information.
MFC-after: 5 days
2002-03-10 20:08:44 +00:00
Søren Schmidt
c75ece6633
Check the <channel> arg a bit more.
...
Submitted by: David Malone <dwmalone@maths.tcd.ie>
2002-03-10 13:59:00 +00:00
Dima Dorfman
42277d473c
Document `sysctl variable=/dev/foo' syntax.
...
PR: 34184
Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
2002-03-10 09:53:39 +00:00
Dima Dorfman
1c1a8b560e
Remove inappropriate .Op calls in examples.
...
PR: 35689
Submitted by: Gary W. Swearingen <swear@blarg.net>
2002-03-10 09:10:06 +00:00
Dima Dorfman
a697e022f0
Minor English fixes.
...
PR: 35730
Submitted by: Gary W. Swearingen <swear@blarg.net>
2002-03-10 08:50:53 +00:00
Søren Schmidt
de7997511b
Update headers
2002-03-04 21:11:30 +00:00
Poul-Henning Kamp
5b4455186e
A bit of premptive GEOM POLA magic: If we don't get a virgin disklabel
...
from /dev/food0, then try from /dev/f00d0c, in strange cases this work.
2002-03-03 21:21:45 +00:00
Søren Schmidt
0df4b5542c
Add the RAID rebuild command.
2002-03-03 15:41:57 +00:00
Ian Dowse
9ac0768d74
Add a new "-S" flag to dump to allow it just print out dump estimate
...
size and then exit.
PR: bin/35450
Submitted by: Mark Hannon <markhannon@optushome.com.au>
Obtained from: NetBSD
MFC after: 1 week
2002-03-01 20:54:23 +00:00
Hajimu UMEMOTO
4adb3cea54
Show standard deviation.
...
PR: bin/35433
Submitted by: Morten Rodal <morten@rodal.no>,
Maxim Konovalov <maxim@macomnet.ru>
MFC after: 1 week
2002-03-01 09:49:48 +00:00