Commit Graph

3468 Commits

Author SHA1 Message Date
fjoe
fddc3ba05d fix link_status() in non-Ethernet case
MFC after:	1 week
2003-01-22 00:14:34 +00:00
jmallett
366c25e54e Convert badsect to use libufs. 2003-01-20 21:24:34 +00:00
jmallett
d5b170de4a Add libufs to dependencies. 2003-01-20 21:18:44 +00:00
jmallett
6364bcb592 Make tunefs use libufs, it seems to do well enough for printing / setting
things.
2003-01-20 21:15:02 +00:00
jmallett
e3f329cf95 Kill initialisation and shadow warnings. Half-hearted cleanup (e.g. only the
more important ones) of format warnings.  XXX Lots of this assumes int32 can
be printed with %d.  Yuck.

Reviewed by:	bde
2003-01-19 12:13:47 +00:00
jmallett
eaa6ad0521 Add support to marshal a filesystem to a newfs(8) command that could be used
to create it.  A small number of options are not marshalled as they are things
it would be dumb to spit out, as they are used by internal computations, and
newfs may change them, or they may not be directly apparent.
2003-01-19 10:25:11 +00:00
jmallett
44d487430d Let libufs handle all the work with regard to going through a list of cgs, now. 2003-01-19 05:51:36 +00:00
jmallett
e6ae134def Use libufs to read one cylinder group from the disk at a time. 2003-01-19 01:31:49 +00:00
jmallett
a4c36c78c2 Simplify the main function now that libufs will hunt for the disk for us. 2003-01-19 01:02:25 +00:00
phk
62f09454e6 Fix two errorchecks to check for negative error returns. 2003-01-18 10:29:24 +00:00
jmallett
1b25583da0 Consistentify output whitespace. 2003-01-18 06:29:15 +00:00
jmallett
9dfe4c44e6 Simplify conditional. 2003-01-18 04:20:20 +00:00
phk
867cdc9da1 Find places to store the previously implicityly passed unit number in
the three configuration ioctls which need a unit number.

Add a "ccd.ctl" device for config operations.

Implement ioctls on ccd.ctl which rely on the explicityly passed
unit numbers.

Update ccdconfig to use the new ccd.ctl interface.

Add code to the kernel to detect old ccdconfig binaries, and whine
about it.

Add code to ccdconfig to detect old kernels, and whine about it.

These two compatibility measures will be retained only for a limited
period since they are in the way of GEOM'ification of ccd.
2003-01-17 14:53:53 +00:00
phk
c656fc32fc Fix various details so we get to WARNS=3.
Center operation on unit number rather than path name.
2003-01-17 13:23:41 +00:00
joerg
10b8bb0df1 While being here, remove a couple of unused "default:" labels in switch
statements, now that gcc loudly complains about them.

MFC after:	1 week
2003-01-16 23:49:34 +00:00
joerg
86c6d8c3aa Make vinum disk-related devices readable by group "operator" to match
the configuration of any other disk-like devices.

This is the non-DEVFS part which is normally not used in 5.x, but due
for MFC into 4.x.

PR:		bin/28294, bin/32588
MFC after:	1 week
2003-01-16 23:48:34 +00:00
des
601b96f8f1 Clear part_set, part_size_type and part_offset_type before parsing the
ascii label; otherwise checklabel() might report spurious errors because
of leftovers from a previous pass.

Reviewed by:	bde
MFC after:	1 week
2003-01-16 12:57:53 +00:00
dillon
abbc1b9d6f really, this time for sure. Fix formatting in usage(). 2003-01-13 19:58:05 +00:00
dillon
314c8fbceb Grr. I keep forgetting things. Include -C in dump's usage() . 2003-01-13 19:56:03 +00:00
dillon
77f2992a84 Add support for obsolete option form for -C 2003-01-13 19:50:46 +00:00
dillon
057eb4ea44 Add a caching option to dump. Use -C. Note that NetBSD has a caching option
called -r but it takes 512 byte blocks instead of megabytes, and I felt a
megabytes specification would be far more useful so I did not use the same
option character.

This will *greatly* improve dump performance at the cost of possibly
missing filesystem changes that occur between passes, and does a fairly
good job making up for the loss of buffered block devices.  Caching is disabled
by default to retain historical behavior.

In tests, dump performance improved by about 40% when dumping / or /usr.

Beware that dump forks and the cache may wind up being larger then you
specify, but a more complex shared memory implementation would not produce
results that are all that much better so I kept it simple for now.

MFC after:	3 days
2003-01-13 19:42:41 +00:00
joerg
b7ea03ac17 Mention the oddities and requirements for mount operations executed by
non-root users.

PR:		docs/42651
Submitted by:	Thomas Seck <tmseck@netcologne.de>
MFC after:	3 days
2003-01-13 19:42:21 +00:00
trhodes
705036b159 Add the /boot prefix. I forgot this when updating the location.
Neglected by:	trhodes
2003-01-13 18:57:19 +00:00
trhodes
944d5f1863 Update the kernel location in FILES.
PR:	47015
2003-01-13 16:15:56 +00:00
dillon
4524ca962b It turns out that we do not need to add a new ioctl to unbreak a
default-to-deny firewall.  Simply turning off IPFW via a preexisting
sysctl does the job.  To make it more apparent (since nobody picked up
on this in a week's worth of flames), the boolean sysctl's have been
integrated into the /sbin/ipfw command set in an obvious and straightforward
manner.  For example, you can now do 'ipfw disable firewall' or
'ipfw enable firewall'.  This is far easier to remember then the
net.inet.ip.fw.enable sysctl.

Reviewed by:	imp
MFC after:	3 days
2003-01-12 03:31:10 +00:00
dillon
1db2e2dc0a Cleanup the formatting from the last commit, convert everything to
a more human-readable 'kilobytes' instead of pages.
2003-01-11 20:03:43 +00:00
dillon
11174e75cf Make 'sysctl vm.vmtotal' work properly using updated patch from Hiten.
(the patch in the PR was stale).

PR:             kern/5689
Submitted by:   Hiten Pandya <hiten@unixdaemons.com>
2003-01-11 07:29:47 +00:00
obrien
8b4235b736 I don't know where we got this ccd creation example from... or if it was
ever correct.  It certainly hasn't been correct for *years*, and it
conflicts with the FAQ.  So update this example to match the FAQ.
2003-01-10 17:46:22 +00:00
sheldonh
862efea571 Add TAPE to the ENVIRONMENT section and standardize the section, using a
list instead of prose.

MFC after:	1 month
2003-01-10 10:59:11 +00:00
sheldonh
c9b5cad087 Add TAPE to the ENVIRONMENT section.
MFC after:	1 month
2003-01-10 10:55:13 +00:00
sheldonh
8c74788385 Add an ENVIRONMENT section so that the reader knows that the TMPDIR envar
is honoured.

Reported by:	des
MFC after:	1 month
2003-01-10 10:45:48 +00:00
imp
5f18ebdc65 These are OBE. devd.conf now lives in /etc. 2003-01-09 04:11:19 +00:00
peter
fc28635eaf Change this:
#include <strings.h>
...
  foo = (char *)strdup(...);
To:
#include <string.h>
  foo = strdup(...);
because the former segfaults on an ia64 since there is no prototype
for strdup() in strings.h.  Converting an "int" to a pointer is fatal.
2003-01-08 06:43:27 +00:00
imp
dc065040a3 Terminate the usage message with \n.
Submitted by: joe
2003-01-06 16:46:25 +00:00
imp
7fb0d0bc17 MFp4: make it work
o Expand variables correctly.
o Set variables for each event.
o rewrite event loop to execute the commands in the config file, rather
  than the hard wired generic command
o better(?) debug when running -d
o sort vectors of actions so that we just have to search for the first
  one to match rather than the best one that matches.
o better attempts to clear all resources used on 'restart'
o Remove now bogus comments

MFC After: 1 centiyear
2003-01-06 08:09:41 +00:00
imp
5b992405ea devd not devdd
submitted by: joe
2003-01-06 08:03:00 +00:00
keramida
ae12b8b74e Fix a reference to the order of SYNOPSIS lines.
Submitted by:	Olivier Cherrier <Olivier.Cherrier@cediti.be>
		on freebsd-net
MFC after:	3 days
2003-01-05 00:09:23 +00:00
nyan
718ede3df8 Rename the dos_partition structure for pc98 to pc98_partition. 2003-01-04 08:50:48 +00:00
phk
be85f84144 Remove CCDF_SWAP and CCDF_PARITY. They have never been implemented. 2003-01-03 08:56:54 +00:00
schweikh
c353aec149 Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,
especially in troff files.
2003-01-01 18:49:04 +00:00
schweikh
28d78933e7 Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/
Add FreeBSD Id tag where missing.
2002-12-30 21:18:15 +00:00
mike
7374376557 Remove hack from rev 1.15; getbsize(3)'s original interface has been
restored.
2002-12-30 18:24:14 +00:00
obrien
9bb2a36af3 This really isn't WARNS clean. 2002-12-30 09:38:46 +00:00
mike
77c2df01c2 Make the first argument to getbsize(3) a `size_t *'. This is a hack
since getbsize(3) should have `int *' as its first parameter.
2002-12-30 05:35:06 +00:00
phk
e4dce59036 Make fdisk work on active GEOM devices. 2002-12-29 15:17:11 +00:00
dillon
6ae73c493b Add 'swapctl' - as a hardlink to swapon/swapoff, and augment swapon with
swapctl functionality.  The idea is to create a swapctl command that is
fairly close to the OpenBSD and NetBSD version.  FreeBSD does not implement
swap priority (and it would be a mistake if we did) so we didn't bother with
that part of it.

Submitted by:	Eirik Nygaard <eirikn@bluezone.no>
Augmented by:	dillon (extensively)
Reviewed by:	David Schultz <dschultz@uclink.Berkeley.EDU>
2002-12-28 23:39:47 +00:00
schweikh
2505bee728 english(4) police. 2002-12-27 12:15:40 +00:00
ru
374b3bf84d Spelling: s/then/than/ where appropriate. 2002-12-24 16:52:31 +00:00
ru
bbb36710e2 mdoc(7) police: Deal with self-xrefs. 2002-12-24 13:41:48 +00:00
kbyanc
8d5c6e8eb5 Make preprocessor support more generic by passing all command-line options
after -p except for the last (the ruleset file to process) to the
preprocessor for interpretation.  This allows command-line options besides
-U and -D to be passed to cpp(1) and m4(1) as well as making it easier to
use other preprocessors.

Sponsored By:	NTT Multimedia Communications Labs
MFC after:	1 week
2002-12-23 20:08:21 +00:00