Commit Graph

89666 Commits

Author SHA1 Message Date
bde
c0229dba40 When resetting to defaults, reset drainwait to the current default pf
`sysctl -n kern.drainwait` instead of to the boot-time default of 300.
2003-05-04 22:46:33 +00:00
deischen
b9459b9399 Replace use of a spinlock with a mutex. 2003-05-04 22:36:46 +00:00
deischen
3cb9ba9e43 Protect against a race between granting a lock and accessing
other parts of the lock.

Submitted by:	davidxu
2003-05-04 22:29:09 +00:00
kan
9328ad6bf8 Style fixes.
Remove DBL_DIG, DBL_MIN, DBL_MAX and their FLT_ counterparts, they
were marked for deprecation ever since SUSv1 at least.
Only define ULLONG_MIN/MAX and LLONG_MAX if long long type is
supported.
Restore a lost comment in MI _limits.h file and remove it from
sys/limits.h where it does not belong.
2003-05-04 22:13:04 +00:00
murray
6ff96f7a81 A few grammatical improvements.
PR:		docs/40911
MFC After:	3 days
2003-05-04 22:13:00 +00:00
gshapiro
e3834d7ef2 Cleanup hostname matching in syslogd:
1. Hostnames were not treated case insensitively in all cases.

2. The method for stripping hostnames when reading the syslog.conf
   differed from that when finding the hostname of an incoming request.
   This lead to a broken match check.  In my case, it meant I had to
   have '@scooter.smi.example.com.example.com' to have 'logger.example.com'
   properly save messages from 'scooter.smi.sendmail.com'.

3. Add paranoia to cfline() such that it doesn't try to access memory
   outside of the bounds of the f_host string.

4. While I am here, get rid of an outdated comment, argv[{0,1,2}] are now
   checked for NULL after the strdup() calls.

Reviewed by:	dwmalone
MFC after:	1 week
2003-05-04 22:05:40 +00:00
murray
292bedae8d Note that the idletime setting is not enforced.
PR:		docs/40952
MFC After:	3 days
2003-05-04 21:35:41 +00:00
wilko
85a367ab6f Add more detail on CPUs to AS4100 section based on some experimentation.
Minor misc. wordsmithing
2003-05-04 20:25:53 +00:00
phk
1067d41da3 Add transparent handling of mbroffset for backwards compatibility. 2003-05-04 19:27:22 +00:00
phk
aac4aea759 Only accept a rawoffset if it is identical to the mbroffset. 2003-05-04 19:26:31 +00:00
phk
aa1b7d74da Add a way to read the current mbroffset from a BSD label class. 2003-05-04 19:25:48 +00:00
phk
f1297dcac6 Add gctl_set_param() function. 2003-05-04 19:24:34 +00:00
alc
65684800f0 Extend the scope of the vm_object lock in vm_object_terminate(). 2003-05-04 19:23:40 +00:00
phk
eb7e0cd5d2 Remove debugging printfs which should not have been committed. 2003-05-04 18:48:25 +00:00
obrien
11fe408cd9 This is now Gcc 3.3 WARNS 6 clean. 2003-05-04 18:34:00 +00:00
obrien
3accc3f1ed Set abitag __unused. 2003-05-04 18:33:26 +00:00
sos
e39ff77330 Change the way loadbalancing works on RAID1's.
Based on code partially by me and by <Tor.Egge@cvsup.no.freebsd.org>.
2003-05-04 16:17:54 +00:00
deischen
ca059a5aea Fix suspend and resume.
Submitted (in part) by:	Kazuaki Oda <kaakun@highway.ne.jp>
2003-05-04 16:17:01 +00:00
imp
03349278af fix typo in TI1515 ID. 2003-05-04 12:49:37 +00:00
sos
0d0a999ff9 Implement dump function for ATA RAID's. Minor fixes by me...
Submitted by: Tor Egge <Tor.Egge@cvsup.no.freebsd.org>
2003-05-04 12:16:47 +00:00
sos
34cf7a7cc5 Add support for using the CDROM env var for device to use;
PR: 38178
2003-05-04 10:09:57 +00:00
sos
b0531d3fc7 Fix filename printing when using -l option.
PR: 43574
2003-05-04 10:03:15 +00:00
sos
5835d96152 Dont fixate when doing dvdrw or test writing.
PR:	47195
2003-05-04 09:55:46 +00:00
sos
e024629724 Default speed is 4 not 1.
PR: 50474
2003-05-04 09:53:05 +00:00
sos
33aa8ec186 Added more descriptive error outputs.
PR:	46096
2003-05-04 09:51:06 +00:00
sos
874ca20952 Grap the ATA lock on all channels before suspend, this makes certain
that we have no outstanding ops in transit, which would cause problems
on resume.
2003-05-04 09:34:14 +00:00
sos
0383b05a47 On getting status print the stripesize on RAID0's. 2003-05-04 09:28:43 +00:00
murray
2db1c04684 Fix a bunch of typos and grammatical errors.
PR:		docs/40234
Submitted by:	Chris Pepper <pepper@rockefeller.edu>  (mostly)
MFC After:	3 days
2003-05-04 08:23:24 +00:00
scottl
6308131b25 Eliminate the separate malloc type for the sparing table. 2003-05-04 07:41:07 +00:00
scottl
a8f90ab7cb Add a missing __inline. Strange that gcc never complained about it.
Implement udf_readlblks() in terms of RDSECTOR.
2003-05-04 07:40:29 +00:00
scottl
8ab5276136 Correctly calculate the size of the extent that should be read in
udf_readatoffset().  This should fixe problems with reading udf filesystems
created with mkisofs.
2003-05-04 07:39:11 +00:00
jake
3d16e172ae Forgot to update string and signal tables when some of the trap types
changed.
2003-05-04 07:21:04 +00:00
alc
0f78bf82ba Avoid a lock-order reversal and implement vm_object locking
in vm_pageout_page_free().
2003-05-04 06:56:27 +00:00
murray
24d926fd08 Document the login-backoff and login-retries capabilities.
PR:		docs/51397
MFC After:	3 days
2003-05-04 06:43:24 +00:00
imp
a0a7c268e0 Document a workaround for getting past the groff infinite loop problem
when your userland is older tahn your kernel and Makefile.inc1 therefore
thinks that you don't need to rebuild groff, when in fact you do.  This
workaround is to set OSRELDATE to 500110 before building, but only if you
have a new enough Makefile.inc1.

I've confirmed this on my laptop, which was suffering from this problem.
Since it only hits power users, we'll naively assume that such users are
smart enough to read UPDATING.
2003-05-04 06:26:30 +00:00
murray
dfd339c3ff Remove man page reference for gated, as it isn't in the base system
nor is it available from the ports tree.
2003-05-04 06:17:38 +00:00
murray
c57f9f9325 Note that gated is a commercial routing product now, and remove
references to it's man page, which is almost never installed on a
FreeBSD system.  The information about using this command with gated
has been retained.  I have just made it clear that gated is not a part
of FreeBSD.

PR:		docs/51407
2003-05-04 06:13:25 +00:00
imp
20ad3706a1 Grab some of the latest TI cardbus bridge IDs. Inspired by a similar
commit to NetBSD.  I'll add these to various tables soon.
2003-05-04 06:10:05 +00:00
mbr
3e94b91189 My previous commit broke builds for restricted namespaces. Add
a underscore to fix this.

Reviewed by:	peter
2003-05-04 05:57:50 +00:00
grog
7b80e6d734 Forced commit. Grr: I used the wrong text before. Here's the correct
information.

Rewrite of startup code:

vinum_scandisk:

  1.  Hand a string with device names, not a table and length.  This
      is the way we get it at system startup time.  This also means
      that we don't insist on a /dev in the names.
  2.  Allocate drive list dynamically.
  3.  If passed a null drive list, use kern.disks as a list to search.
2003-05-04 05:20:56 +00:00
grog
97dff1dbec Update declaration of vinum_scandisk (only one parameter). 2003-05-04 05:19:48 +00:00
grog
8d151fcbbf Rewrite of startup code:
Add ioctl VINUM_READCONFIG which implements both the "read" and
"start" commands in vinum(8).  Aim for marginally better error
messages when something goes wrong.
2003-05-04 05:16:02 +00:00
grog
cfcc0b70ac Rewrite of startup code:
Add ioctl VINUM_READCONFIG which implements both the "read" and
"start" commands in vinum(8).
2003-05-04 05:15:32 +00:00
grog
2e6dc6c5e4 Rewrite of startup code:
parse_config: Remove kw_read case.  It's not used any more.

parse_user_config: Remove check for failed read.
2003-05-04 05:15:07 +00:00
grog
5a2ba746ae Rewrite of startup code:
vinumattach: Move the startup code to vinum_scandisk.
2003-05-04 05:13:45 +00:00
grog
7d3e9c3779 Rewrite of startup code:
vinum_read:
  Accept 0 parameters, hand an empty string to the kernel if so.
  Use new ioctl VINUM_READCONFIG, not VINUM_CREATE, to read config.

vinum_start: When passed 0 parameters, drop the devstat kludge and
     call vinum_read instead.  It's no longer necessary to distinguish
     between "start" and "read" if no parameters are passed, and
     probably one of them should go away.
2003-05-04 05:13:17 +00:00
imp
713f395a43 Many developers run with userland != to kernel. While this isn't
supported, it usually works for months at a time.  Allow these people
to override the OSRELDATE of their installed world when things don't
match and the exact OSRELDATE matters and is different than the
kernel.  Now that Makefile.inc1 depends more and more about which date
you have to optimize the pieces it builds, it may be necessary to
pessimize things if its guesses are wrong.

If OSRELDATE is already set, we won't fork the sysctl to find out what
the kernel's date is.

Developers on IRC suggested that they run mismatches all the time as
well.

Reviewed by: obrien
2003-05-04 04:14:10 +00:00
scottl
35f9e645cf Implement the node cache as a hash table. 2003-05-04 03:40:11 +00:00
obrien
c3792f8bd9 Use __FBSDID vs. rcsid[]. Also protect sccs[] and copyright[] from GCC 3.3. 2003-05-04 02:54:49 +00:00
obrien
3d2af48d35 Use __FBSDID vs. rcsid[]. 2003-05-04 02:51:42 +00:00