Commit Graph

117440 Commits

Author SHA1 Message Date
rwatson
80b8ca94f5 Merge sysctl.8:1.59, sysctl.c:1.68 from HEAD to RELENG_6:
Add "-q" argument to sysctl(8), which suppresses a limited set of
  warnings/ errors generated.  In particular, it suppresses "unknown oid"
  when attempting to get or set a sysctl not present in the kernel.

Approved by:	re (kensmith)
2005-09-22 15:30:21 +00:00
keramida
bad3bd7ff4 MFC 1.167: panic on attach failure...
% When bus_alloc_resource_any() fails, dc_detach() is called and it
% attempts to deallocate busdma tags and resources that haven't been
% allocated yet, causing a panic every time a dc interface fails to
% attach.  Fix by checking that we really have something to dealloc
% before calling bus_dma*() functions.
%
% Approved by:    jhb
% MFC after:      1 week

Approved by:	re (kensmith)
2005-09-22 12:46:01 +00:00
kensmith
6db27a0a53 Fix a whitespace screw-up I made when doing the MFC of COMPAT_FREEBSD5.
It's supposed to be "option", "space", "tab"; not "option", "tab", "tab".

Approved by:	re (scottl)
Pointed out by:	rwatson
Pointy hat:	kensmith
2005-09-22 12:36:39 +00:00
jhb
acc9af9f7a MFC: Various small cleanups. No functional change.
Approved by:	re (kensmith)
2005-09-21 21:11:28 +00:00
jhb
40676a22c1 MFC: Several improvements to the manual page including mentioning that
mtx_trylock() only works with MTX_DEF mutexes.

Approved by:	re (kensmith)
2005-09-21 21:09:36 +00:00
jhb
e0440d1c00 MFC: Use if_printf() and device_printf().
Approved by:	re (kensmith)
2005-09-21 21:06:39 +00:00
jhb
897fc13bf2 MFC: Destroy sx locks created with SX_SYSINIT() during module unload via a
SYSUNINIT.

Approved by:	re (kensmith)
2005-09-21 21:05:19 +00:00
jhb
77262478e8 MFC: Add witness checks to make sure exiting threads don't hold any locks.
Approved by:	re (kensmith)
2005-09-21 21:04:16 +00:00
rodrigc
63a5da33bb MFC: 1.16:
In mountd_precmd(), use rc_args, not mountd_args to
  override the value of mountd_args.  This fixes the problem
  where mountd_args was not properly being set if
  weak_mountd_authentifcation="YES" was set in rc.conf.

PR:             conf/86260
Submitted by:   Thierry Herbelot <thierry at herbelot dot com>
Approved by:	re (kensmith)
2005-09-21 20:27:50 +00:00
cvs2svn
2b4d75fb47 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. 2005-09-21 20:08:25 +00:00
rwatson
c3f16149d1 Merge uipc_socket.c:1.248 from HEAD to RELENG_6:
Fix spelling in a comment.

Approved by:	re (scottl)
2005-09-21 15:32:21 +00:00
rwatson
533efa352a Merge fifo_vnops.c:1.126 from HEAD to RELENG_6:
Assert that (vp) is locked in fifo_close(), since we rely on the
  exclusive vnode lock to synchronize the reference counts on struct
  fifoinfo.

Approved by:	re (scottl)
2005-09-21 15:31:26 +00:00
rwatson
37c3665582 Merge uipc_socket2.c:1.148 from HEAD to RELENG_6:
Re-comment sbcompress() to explain what it is it does; it took me
  quite a bit of reading to figure it out, and I want to avoid figuring
  it out again.

  Convert an if (foo) else printf("this is almost a panic") into a
  KASSERT.

Approved by:	re (scottl)
2005-09-21 15:30:54 +00:00
yongari
fa502534e3 MFC rev. 1.29 to RELENG_6:
fix LOR by dropping driver lock before calling resource_int_value(9).

Approved by:	re(scottl)
2005-09-21 03:18:30 +00:00
kientzle
77b68075b4 MFC archive_read_extract.c 1.42 and 1.43: Correctly restore file flags.
Approved by: re
2005-09-21 03:12:45 +00:00
yongari
131a491265 MFC rev. 1.21 to RELENG_6: fix module unloading panic
Approved by:	re(scottl)
2005-09-21 02:44:09 +00:00
rwatson
d14a3e32b7 Merge fifo_vnops.c:1.125 from HEAD to RELENG_6:
The socket pointers in fifoinfo are not permitted to be NULL, so
  don't check if they are, it just confuses the fifo code more.

Approved by:	re (kensmith)
2005-09-20 13:57:17 +00:00
glebius
be4f3d3a0f MFC typo fix from 1.75:
Dej'a vu of revision 1.35

  PR:		kern/86258
  Submitted by:	Hiroshi Oota <ghelp excite.co.jp>

Approved by:	re (kensmith)
2005-09-20 13:46:15 +00:00
glebius
ea4e44a4c6 MFC 1.84 by yar:
Test the new M_VLANTAG packet flag before calling
  m_tag_locate().  This adds little overhead of a simple
  bitwise operation in case hardware VLAN acceleration
  is on, yet saves the more expensive function call if
  the acceleration is off.

  Reviewed by:	ru, glebius

Approved by:	re (kensmith)
2005-09-20 13:44:36 +00:00
glebius
2031716961 MFC 1.69:
When message can't fit into socket receive buffer return ENOBUFS
  to userland program instead of letting it wait until end of days.

  PR:	kern/85907

Approved by:	re (kensmith)
2005-09-20 13:42:20 +00:00
glebius
93d4651ace Merge locking of ng_pptpgre node. See 1.38, 1.39 log for longer
description.

Approved by:	re (kensmith)
2005-09-20 13:40:55 +00:00
rwatson
390cc7eacc Merge savecore.c:1.76 from HEAD to RELENG_6:
Don't consider being unable to open the bounds file worthy of printing
  at LOG_WARNING by default; instead, consider it something to be printed
  to the tty when 'verbose' mode is set.  This avoids printing out extra
  lines at every boot on a system with crash dumps enabled, but that has
  not yet had to generate a crashdump.

Approved by:	re (kensmith)
2005-09-20 13:29:37 +00:00
rwatson
f142f17b2d Merge dumpon:1.10 from HEAD to RELENG_6:
Use kenv -q to extract dumpdev rather than kenv, in order to avoid
  spamming the console in the event that a loader tunable 'dumpdev'
  isn't defined, which is not a relevant failure to report.

Approved by:	re (kensmith)
2005-09-20 13:28:01 +00:00
rwatson
a407208894 Merge kenv.1:1.12, kenv.c:1.8 from HEAD to RELENG_6:
Add a "-q" quiet flag to kenv so that warnings can be suppressed.

Approved by:	re (kensmith)
2005-09-20 13:26:21 +00:00
glebius
c702d4e49b Suppress warning, to avoid fake bug reports from users of 6.0-RELEASE.
Push warning in net_add_domain() down under DIAGNOSTIC. At the moment, the
only loadable domain is netgraph and it has no problems to be loaded
at runtime, since it doesn't use if_afdata[AF_NETGRAPH], yet.

Approved by:	re (scottl)
2005-09-20 09:16:10 +00:00
delphij
b1029e7f15 MFC 1.64 by kientzle:
The bsdtar_warnc() reporting function requires the program name to be
set up before it is called, so move the progname initialization before
the first possible call to bsdtar_warnc().

Thanks to: Stanislav Sedov
PR: bin/83366

Approved by:	re (scottl)
2005-09-20 07:48:00 +00:00
brueffer
ee822d1f45 MFC: rev. 1.886 by joel
New release notes: snd_t4dwave(4) manual page added.

Approved by:	re (hrs)
2005-09-20 04:53:12 +00:00
brueffer
0293a5e00f MFC:
Auto generate device listings for snd_t4dwave(4).

Approved by:	re (hrs)
2005-09-20 04:51:32 +00:00
brueffer
ff11e2ea49 MFC: rev. 1.40 by joel
Xref snd_t4dwave(4).

Approved by:	re (hrs)
2005-09-20 04:49:59 +00:00
brueffer
b73f94156a MFC:
Add manual page for snd_t4dwave(4).

Approved by:	re (hrs)
2005-09-20 04:48:30 +00:00
csjp
79bee3e493 MFC v1.129 src/sys/net/rtsock.c
Make sysctl_rtsock MP safe.

Approved by:	re (scottl)
2005-09-20 01:59:54 +00:00
rodrigc
c5e33d3c5e MFC: 1.61
Clarify wording for -m flag.

PR:     docs/84704
Approved by:	re (hrs)
2005-09-20 00:34:54 +00:00
marcus
534fb07b6c MFC:
Correct a mis-merge from HEAD, and make sure the socket permissions are set
to 0666.

Reported by:	delphij via rwatson
Approved by:	re (scottl)
2005-09-19 21:50:31 +00:00
cperciva
e59c7653ea MFC revision 1.5:
When (re)allocating space for an array of pointers to char, use
  sizeof(*list), not sizeof(**list).  (i.e., sizeof(pointer) rather than
  sizeof(char)).

Approved by:	re (scottl)
2005-09-19 20:56:10 +00:00
brueffer
050872b51e MFC:
- ed(4) MPSAFE
- acpi_ibm.4 and acpi_sony.4 manpages added

While here, correct two entities.

Approved by:	re (hrs)
2005-09-19 16:53:59 +00:00
brueffer
22973b5d20 MFC:
Manpage for the acpi_sony(4) driver.

Approved by:	re (hrs)
2005-09-19 16:51:10 +00:00
phk
041638a220 MFC:
This bit missed out in the DEVFS MFC earlier today:
	SYSCTL debug.sizeof.cdev moved to relevant source file.

Approved by:	re@ (scottl)
2005-09-18 17:13:17 +00:00
scottl
3052dcc84e MFC rev 1.94:
Fix race condition that caused activation of an event to
  be ignored immediately after it was deactivated.

Submitted by: Stephan Uphoff, Yahoo
Approved by: re
2005-09-18 15:03:31 +00:00
phk
051ea6d1a8 MFC:
Various fixes for DEVFS, in particular "devfs ruleset already running".

Approved by:	re@ (scottl)
2005-09-18 07:10:57 +00:00
scottl
9e1e30a0a8 Switch over to 6.0-BETA5.
Approved by: re
2005-09-18 05:12:39 +00:00
scottl
2b0a07b354 Take a step closer to the release and turn off malloc debugging.
Approved by: re (implicit)
2005-09-18 03:45:24 +00:00
scottl
bbfdfd22d0 Now that our showstopper list has shrunk, take another step closer to the
release and turn off kernel debugging.  Also turn off SMP on i386 and amd64
and add an SMP kernel config.

Approved by: re (implicit)
2005-09-18 03:37:59 +00:00
csjp
c305515a25 MFC v1.163 src/sys/kern/imgact_elf.c
MFC v1.82  src/sys/kern/vfs_lookup.c
MFC v1.394 src/sys/kern/vfs_syscalls.c

Approved by:	re (scottl)
2005-09-18 03:31:35 +00:00
imp
9dab83f7b6 MFC: Merge resource fixes for pci devices on pci0 for ioport.
Approved by: re (scottl)
2005-09-18 02:55:10 +00:00
mjacob
d8758cacdd MFC 1.156 (mjacob). Original log:
>Make the exploring of all luns supported by an HBA more of a
>tunable (until we get REPORT LUNS in place).
>
>If we're probing luns, and each probe succeeds, we keep going past
>lun 7 if we're a SCSI3 or better device (until we fail to probe).
>
>If we're probing luns, and a probe fails, we only keep going if
>we're quirked *for* it (CAM_QUIRK_HILUNS), and if we're not quirked
>*against* it (CAM_QUIRK_NOHILUNS), or we're a SCSI3 or better device
>and the tunable (kern.cam.cam_srch_hi) is set non-zero.

Approved by: re (scottl)
2005-09-18 02:29:27 +00:00
garys
6456e1714b MFC 1.21
Approved by:	re
2005-09-17 17:12:18 +00:00
delphij
80a9b1b6e7 Oops, actually MFC 1.89 (by kan) which was missed in previous commit:
Handle a race condition where NULLFS vnode can be cleaned while threads
can still be asleep waiting for lowervp lock.

Tested by:	kkenn
Discussed with: ssouhlal, jeffr

(this is an early MFC for inclusion in the upcoming 6.0-BETA5)

Approved by:	re (scottl)
2005-09-17 15:51:41 +00:00
tegge
2adf020846 MFC: Break out of loop if next buffer pointer has become invalid while
flushing current buffer.

Approved by:	re (scottl)
2005-09-17 15:51:12 +00:00
delphij
691b9ef2ea MFC 1.88 (by ssouhlal):
Use vput() instead of vrele() in null_reclaim() since the lower vnode
is locked.

MFC 1.89 (by kan):

Handle a race condition where NULLFS vnode can be cleaned while threads
can still be asleep waiting for lowervp lock.

Tested by:	kkenn
Discussed with: ssouhlal, jeffr

(rev. 1.89 is an early MFC for inclusion in the upcoming 6.0-BETA5)

Approved by:	re (scottl)
2005-09-17 15:48:05 +00:00
cperciva
06a2ac2c20 MFC revision 1.3:
Log:
  Handle circular dependencies properly (via errx(3)) rather than dumping
  core.  This bug was made visible by a recent change to the audio/timidity++
  port, which now has itself as a run dependency.

Approved by:	re (scottl)
2005-09-17 15:43:40 +00:00