]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
18 years agoCorrect a local information leakage bug affecting AMD FPUs.
cperciva [Wed, 19 Apr 2006 07:00:19 +0000 (07:00 +0000)]
Correct a local information leakage bug affecting AMD FPUs.

Security: FreeBSD-SA-06:14.fpu

18 years agoMake ldconfig as SERVER dependency. This makes it possible
delphij [Wed, 19 Apr 2006 05:10:34 +0000 (05:10 +0000)]
Make ldconfig as SERVER dependency.  This makes it possible
for some early starting services from the ports collection
to have their shared objects available before start.

Reviewed by: freebsd-rc (dougb, brooks)
MFC After: 3 days

18 years agoFxi tpyo.
mjacob [Tue, 18 Apr 2006 22:43:46 +0000 (22:43 +0000)]
Fxi tpyo.

Noticed by: maxim

18 years agoAdd ISP_DEFAULT_ROLES as a config option.
mjacob [Tue, 18 Apr 2006 22:24:55 +0000 (22:24 +0000)]
Add ISP_DEFAULT_ROLES as a config option.

18 years agoActually check to see if XPT_CALC_GEOMETRY had an error
mjacob [Tue, 18 Apr 2006 22:01:59 +0000 (22:01 +0000)]
Actually check to see if XPT_CALC_GEOMETRY had an error
and pick a bogus geometry if it had so we don't later
get a divide by zero trap.

18 years agoUpdate 2300 f/w. This will probably be the last
mjacob [Tue, 18 Apr 2006 21:55:30 +0000 (21:55 +0000)]
Update 2300 f/w. This will probably be the last
update here before we switch to the new f/w loading
framework.

18 years agoDo more guarding against zero divide traps for the geom subroutine.
mjacob [Tue, 18 Apr 2006 21:53:39 +0000 (21:53 +0000)]
Do more guarding against zero divide traps for the geom subroutine.

18 years agoIn receiving a new ATIO, don't record the associated CCB in the target
mjacob [Tue, 18 Apr 2006 21:52:00 +0000 (21:52 +0000)]
In receiving a new ATIO, don't record the associated CCB in the target
state structure. This field is only for CCBs that are associated with
actions that are occurring on the HBA (i.e., XPT_CONT_IO actions).

This way we also don't get confused when the upstream listener stalls
try and look at a CCB which has already been freed (by CAM).

18 years agoCorrect usage example.
ceri [Tue, 18 Apr 2006 21:37:24 +0000 (21:37 +0000)]
Correct usage example.

PR: docs/95059
Submitted by: Jos Backus
MFC after: 4 days

18 years ago'owner' is not used without SMP. Fix kernel build for such kernel
wkoszek [Tue, 18 Apr 2006 20:32:42 +0000 (20:32 +0000)]
'owner' is not used without SMP. Fix kernel build for such kernel
configurations.

Approved by: jhb

18 years agoIf we're doing a try-alloc of a pv entry and give up early, do not forget
peter [Tue, 18 Apr 2006 20:17:32 +0000 (20:17 +0000)]
If we're doing a try-alloc of a pv entry and give up early, do not forget
to reduce the pv_entry_count counter.  This was found by Tor Egge.  In the
same email, Tor also pointed out the pv_stats problem in the previous
commit, but I'd forgotten about it until I went looking for this email
about this allocation problem.

18 years agopv_entry_count is more than a statistic. It is used for resource limiting.
peter [Tue, 18 Apr 2006 20:11:00 +0000 (20:11 +0000)]
pv_entry_count is more than a statistic.  It is used for resource limiting.
Do not compile out its counter updates if pv entry stats are turned off.

18 years agoSome grammar/language improvements, more to come. Also note some
brueffer [Tue, 18 Apr 2006 19:35:48 +0000 (19:35 +0000)]
Some grammar/language improvements, more to come.  Also note some
merged items.

18 years agoo Describe what actually boot(8) -m mutes.
maxim [Tue, 18 Apr 2006 19:00:02 +0000 (19:00 +0000)]
o Describe what actually boot(8) -m mutes.

PR: docs/67893
Submitted by: Chris Pepper, Daniel Gerzo
MFC after: 2 weeks

18 years agoAdaptively spin before blocking on the turnstile if an rwlock is write
jhb [Tue, 18 Apr 2006 18:27:54 +0000 (18:27 +0000)]
Adaptively spin before blocking on the turnstile if an rwlock is write
locked.  In general the adaptive spinning is similar to the same code
for mutexes with some extra trickiness in rw_wunlock_hard().  Specifically,
even though both wait bits might be set and we might have a turnstile with
at least one waiting thread, there might not be any threads blocked on the
queue we are not waking up (they might all be spinning), and we should
only preserve the waiting flag for the queue we aren't waking up if there
are in fact threads blocked on that queue.  Secondly, there might not be
any threads blocked on the queue we have chosen to waken threads from
(there might only be threads blocked on the other queue and the threads
for this queue are all spinning) in which case we disown the turnstile
instead of doing a braodcast and unpend.

18 years agoUpdate comments to mention that each turnstile contains two queues and to
jhb [Tue, 18 Apr 2006 18:21:38 +0000 (18:21 +0000)]
Update comments to mention that each turnstile contains two queues and to
describe turnstile_disown() and turnstile_empty().

18 years ago- Bring back turnstile_empty() which can check to see if an individual
jhb [Tue, 18 Apr 2006 18:16:54 +0000 (18:16 +0000)]
- Bring back turnstile_empty() which can check to see if an individual
  queue on a turnstile is empty.
- Add a turnstile_disown() function that allows a thread to give up
  ownership of a turnstile w/o waking up any waiters.

18 years agoBring SYNOPSIS in line with usage().
ru [Tue, 18 Apr 2006 15:26:58 +0000 (15:26 +0000)]
Bring SYNOPSIS in line with usage().

18 years ago- Move _rc_subr_loaded=: at the end of the file, to be consistent with NetBSD.
flz [Tue, 18 Apr 2006 15:16:55 +0000 (15:16 +0000)]
- Move _rc_subr_loaded=: at the end of the file, to be consistent with NetBSD.
- Sync with latest version from NetBSD.

'In order to handle some perl scripts running as daemons, add a
pattern which also matches "`basename $interpreter`: $command" in the
ps listing.'

Approved by: cperciva (mentor)
Obtained from: NetBSD
MFC after: 1 week

18 years ago- Add new ntpd_config variable so that people can override it in rc.conf.
flz [Tue, 18 Apr 2006 15:02:24 +0000 (15:02 +0000)]
- Add new ntpd_config variable so that people can override it in rc.conf.
- Add default value in /etc/defaults/rc.conf.
- Add documentation bits to rc.conf(5).

Approved by: cperciva (mentor)
MFC after: 1 week

18 years agoFix storing offset of already synchronized data. Offset in entire array was
pjd [Tue, 18 Apr 2006 13:52:11 +0000 (13:52 +0000)]
Fix storing offset of already synchronized data. Offset in entire array was
stored in metadata instead of an offset in single disk.
After reboot/crash synchronization process started from a wrong offset
skipping (not synchronizing) part of the component which can lead to data
corrutpion (when synchronization process was interrupted on initial
synchronization) or other strange situations like 'graid3 status' showing
value more than 100%.

Reported, reviewed and tested by: ru
Reported by: Dmitry Morozovsky <marck@rinet.ru>
MFC after: 1 day

18 years agofix "ipf -Z" reporting rubbish and possibly panic'ing box
darrenr [Tue, 18 Apr 2006 13:24:14 +0000 (13:24 +0000)]
fix "ipf -Z" reporting rubbish and possibly panic'ing box

MFC after: 4 days

18 years agoFix an obvious bug.
ru [Tue, 18 Apr 2006 12:37:44 +0000 (12:37 +0000)]
Fix an obvious bug.

Submitted by: Alex Lyashkov <umka@sevcity.net>

18 years agoAdd ldconfig to the list of requirements for named, needed to use bind
flz [Tue, 18 Apr 2006 10:35:05 +0000 (10:35 +0000)]
Add ldconfig to the list of requirements for named, needed to use bind
from ports. The effect is that ldconfig is now started right after
mountcritremote. Everything else is left unchanged.

PR: conf/68916
Submitted by: JD Bronson <jd@aurora.org>
Approved by: cperciva (mentor)
MFC after: 1 week

18 years agoMerge rev. 1.240 of ip_output.c, so that IPFIREWALL_FORWARD_EXTENDED
glebius [Tue, 18 Apr 2006 09:20:16 +0000 (09:20 +0000)]
Merge rev. 1.240 of ip_output.c, so that IPFIREWALL_FORWARD_EXTENDED
kernel option will affect both forwarding methods - classic and fast.

18 years agoIn vfs_hash_get(): mount point should never be changed
delphij [Tue, 18 Apr 2006 08:05:08 +0000 (08:05 +0000)]
In vfs_hash_get(): mount point should never be changed
so explicitly constify the mp parameter.

Reviewed by: phk

18 years agoReorder the DRM_*_AGP enums to match linux and what our code expects, fixing
anholt [Tue, 18 Apr 2006 06:14:43 +0000 (06:14 +0000)]
Reorder the DRM_*_AGP enums to match linux and what our code expects, fixing
i915 attachment.

Submitted by: Jonathan Fosburgh <jonathan@fosburgh.org>

18 years agoCorrect a typo: In order to make fixmount(8) quite, one should
delphij [Tue, 18 Apr 2006 03:33:17 +0000 (03:33 +0000)]
Correct a typo: In order to make fixmount(8) quite, one should
use -q, not -v.

18 years agoremove DRIVER_MODULE lines that are useless... pcf doesn't exist (only
jmg [Mon, 17 Apr 2006 22:33:42 +0000 (22:33 +0000)]
remove DRIVER_MODULE lines that are useless...  pcf doesn't exist (only
as pcf_ebus and pcf_isa, they should probably be fixed back to pcf),
and bti2c doesn't exist, bktr has smbus or iicbb as children..

Brought to you by: http://people.FreeBSD.org/~jmg/driver.pdf

18 years ago- Add a rw_wowner() macro that just returns the owner of a write lock and
jhb [Mon, 17 Apr 2006 21:11:01 +0000 (21:11 +0000)]
- Add a rw_wowner() macro that just returns the owner of a write lock and
  use it in places that only care about the write owner instead of
  rw_owner() as a baby step towards limited read-lock owner.
- Tidy the code that sets the WAITER flag bits to not duplicate a test
  around the atomic operation and the KTR trace in both of the lock
  functions.

18 years ago- Since critical sections no longer raise the processor interrupt level to
marius [Mon, 17 Apr 2006 21:03:24 +0000 (21:03 +0000)]
- Since critical sections no longer raise the processor interrupt level to
  above what's used for fast interrupts, only interrupts with the level of
  the interrupt which led to calling intr_fast() (which is used with both
  fast and ithread interrupts) are blocked while in that function. Thus
  intr_fast() can be preempted by a fast interrupt (which are of a higher
  level than ithread interrupts) while servicing an ithread interrupt. This
  can lead to a stale pointer to the head of the active interrupt requests
  list when back in the ithread interrupt invocation of intr_fast(), in turn
  resulting in corruption of the interrupt request lists and consequently
  in a panic. Solve this be turning off interrupts in intr_fast() before
  reading the pointer to the head of the active list rather than after. [1]
- Add a KASSERT in intr_fast() which asserts that ir_func is non-zero before
  calling it. [1]
- Increment interrupt stats after calling the handlers rather than before.
  This reduces the delay until direct and fast handlers are serviced, in my
  testings by 30% on average for the direct tick interrupt handler, in turn
  resulting in less clock drift.

PR: 94778 [1]
Submitted by: Andrew Belashov [1]
MFC after: 2 weeks

18 years agoUpdate comments to indicate that locks are held by threads, not processes.
jhb [Mon, 17 Apr 2006 20:17:09 +0000 (20:17 +0000)]
Update comments to indicate that locks are held by threads, not processes.

18 years agoAdd a 'show sleepqueue' alias for 'show sleepq' in DDB.
jhb [Mon, 17 Apr 2006 20:16:32 +0000 (20:16 +0000)]
Add a 'show sleepqueue' alias for 'show sleepq' in DDB.

18 years agoTrim trailing whitespace.
jhb [Mon, 17 Apr 2006 20:14:51 +0000 (20:14 +0000)]
Trim trailing whitespace.

18 years agoAdd the ability to log to an arbitrary udp port as well as the
julian [Mon, 17 Apr 2006 20:12:35 +0000 (20:12 +0000)]
Add the ability to log to an arbitrary udp port as well as the
standard syslog port. This allows syslog to easily export lines of interest to
an external logging system.

18 years agoUpdate a couple of comments relating to RFCs.
dwmalone [Mon, 17 Apr 2006 19:55:25 +0000 (19:55 +0000)]
Update a couple of comments relating to RFCs.

18 years agoBack out a Makefile change that accidently snook in.
dwmalone [Mon, 17 Apr 2006 19:52:00 +0000 (19:52 +0000)]
Back out a Makefile change that accidently snook in.

18 years agoAdd a new module_file() function that returns the linker_file_t associated
jhb [Mon, 17 Apr 2006 19:44:44 +0000 (19:44 +0000)]
Add a new module_file() function that returns the linker_file_t associated
with a given module_t.  I use this in some the MOD_LOAD event handler for
some test kernel modules to ask the kernel linker to look up the linker
sets in my test modules. (I use linker sets to generate the list of
possible events that I then signal to execute via a sysctl.  On non-amd64,
ld(8) would resolve the entire linker set, but on amd64 I have to ask the
kernel linker to do it for me, and having the kernel linker do it works on
all archs.)

18 years ago- Sleep/wakeup operate on threads now, not processes.
jhb [Mon, 17 Apr 2006 19:11:12 +0000 (19:11 +0000)]
- Sleep/wakeup operate on threads now, not processes.
- Describe msleep() as the primary sleep function now rather than tsleep()
  and describe tsleep() and msleep_spin() as variations.
- Try to make the description of msleep() a bit closer to English
  (sentences with actual subjects, etc.)
- Document that a priority of 0 now prevents the thread's priority from
  being altered.
- Add a history note for wakeup_one().

18 years agoPort 37 (RFC 738) style times are supposed to be a 32 bit time since
dwmalone [Mon, 17 Apr 2006 18:35:58 +0000 (18:35 +0000)]
Port 37 (RFC 738) style times are supposed to be a 32 bit time since
1900 in network byte order. Use a uint32_t to calculate and send
the time, so that we don't need to know how big ints or longs are.

I used uint32_t instead of int in the patch, on the off chance
someone uses our inetd source on a system that doesnt 32 bit ints.

PR: 95290
Submitted by: Bruce Becker <hostmaster@whois.gts.net>
MFC after: 2 weeks

18 years agoChange msleep() and tsleep() to not alter the calling thread's priority
jhb [Mon, 17 Apr 2006 18:20:38 +0000 (18:20 +0000)]
Change msleep() and tsleep() to not alter the calling thread's priority
if the specified priority is zero.  This avoids a race where the calling
thread could read a snapshot of it's current priority, then a different
thread could change the first thread's priority, then the original thread
would call sched_prio() inside msleep() undoing the change made by the
second thread.  I used a priority of zero as no thread that calls msleep()
or tsleep() should be specifying a priority of zero anyway.

The various places that passed 'curthread->td_priority' or some variant
as the priority now pass 0.

18 years agoWhitespace nits.
schweikh [Mon, 17 Apr 2006 17:55:11 +0000 (17:55 +0000)]
Whitespace nits.

18 years agoRemove a corrupted fortune ending in line noise. Even googling did not
schweikh [Mon, 17 Apr 2006 12:14:46 +0000 (12:14 +0000)]
Remove a corrupted fortune ending in line noise. Even googling did not
turn up a non-corrupted version, else I would have restored it.
(No, it's not the one that uses line noise intentionally.)

18 years agoAdd INDEX-7 and remove trailing spaces.
krion [Mon, 17 Apr 2006 11:15:29 +0000 (11:15 +0000)]
Add INDEX-7 and remove trailing spaces.

MFC after: 5 days

18 years agoUse bzip2(1) by default to compress package tarball on
krion [Mon, 17 Apr 2006 10:58:45 +0000 (10:58 +0000)]
Use bzip2(1) by default to compress package tarball on
__FreeBSD_version >= 500039.

Submitted by: Alex Lyashkov <umka@sevcity.net>
MFC after: 5 days

18 years agoAdd missing ";"
sos [Mon, 17 Apr 2006 10:47:01 +0000 (10:47 +0000)]
Add missing ";"

found by: jmg

18 years agoo Do not double i/o stats for cd(4) already acounted in g_disk_done().
maxim [Mon, 17 Apr 2006 09:12:53 +0000 (09:12 +0000)]
o Do not double i/o stats for cd(4) already acounted in g_disk_done().

PR: kern/95707
Submitted by: Andre Albsmeier
Reviewed by: phk
MFC after: 2 weeks

18 years agoFix panic() message to give the right function name.
kensmith [Mon, 17 Apr 2006 07:43:56 +0000 (07:43 +0000)]
Fix panic() message to give the right function name.

18 years agoremove some unnecessary perror calls
sam [Mon, 17 Apr 2006 00:17:29 +0000 (00:17 +0000)]
remove some unnecessary perror calls

Noticed by: Jouni Malinen
MFC after: 2 weeks

18 years agoAdd missing ~. We want all the INVALID bits to be 0... Let's see if this
imp [Sun, 16 Apr 2006 23:16:45 +0000 (23:16 +0000)]
Add missing ~.  We want all the INVALID bits to be 0...  Let's see if this
helps people with their interrupt storm problem on card eject.

18 years agoo De-register local vars.
maxim [Sun, 16 Apr 2006 22:30:24 +0000 (22:30 +0000)]
o De-register local vars.

18 years agoo Trim EOL whitespaces and tabs, replace eight w/s by tabs.
maxim [Sun, 16 Apr 2006 22:28:04 +0000 (22:28 +0000)]
o Trim EOL whitespaces and tabs, replace eight w/s by tabs.
No functional changes.

18 years agoo Implement Solaris-like -x flag: show extended disk statistics.
maxim [Sun, 16 Apr 2006 22:23:39 +0000 (22:23 +0000)]
o Implement Solaris-like -x flag: show extended disk statistics.
o Implement Solaris-like -z flag: omit lines for devices with no activity.
o iostat.8: describe -x and -z flags, Xr devstat(3), touch .Dd.

PR: mostly bin/68840, with style changes; bin/73327
Submitted by: Dan Nelson, Peter Schuller
Obtained from: NetBSD (a part of man page)
MFC after: 1 month

18 years agoremove duplicate sizeof vnode entry (debug.sizeof.vnode already existed)...
jmg [Sun, 16 Apr 2006 18:38:30 +0000 (18:38 +0000)]
remove duplicate sizeof vnode entry (debug.sizeof.vnode already existed)...
move ncsize into debug.sizeof and rename to namecache...

18 years agoImprove ath_draintxq debug info: dump the packet as well
sam [Sun, 16 Apr 2006 18:24:27 +0000 (18:24 +0000)]
Improve ath_draintxq debug info: dump the packet as well
as the descriptor and handle the beacon q like other q's

MFC after: 1 month

18 years agoUnbreak cabq handling: check the s/w q, not the h/w q as the frames
sam [Sun, 16 Apr 2006 18:14:01 +0000 (18:14 +0000)]
Unbreak cabq handling: check the s/w q, not the h/w q as the frames
have not been passed to the h/w yet.  This remedies watchdog timeout
of buffered multicast frames in hostap mode.

While here eliminate an extraneous check; ieee80211_beacon_update sets
the tim bit based on ncabq != 0 so there's no reason to check it too.

Noticed by: Christophe Prevotaux

18 years agoo Close an output file -o flag opened before execvp(3) in a child.
maxim [Sun, 16 Apr 2006 17:44:49 +0000 (17:44 +0000)]
o Close an output file -o flag opened before execvp(3) in a child.

PR: bin/89666
Submitted by: Arne H Juul
MFC after: 1 month

18 years agoo dbm_close(3) returns void not zero or anything else. Touch .Dd.
maxim [Sun, 16 Apr 2006 16:33:26 +0000 (16:33 +0000)]
o dbm_close(3) returns void not zero or anything else.  Touch .Dd.

PR: docs/80070
Submitted by: Aleksej Saushev
MFC after: 2 weeks

18 years agoo Correct a path to include.
maxim [Sun, 16 Apr 2006 15:35:12 +0000 (15:35 +0000)]
o Correct a path to include.

18 years agoFor _Qp_{fge,fgt,fle,flt}() the SCD states that "Exceptions mimic fcmpeq",
marius [Sun, 16 Apr 2006 14:32:53 +0000 (14:32 +0000)]
For _Qp_{fge,fgt,fle,flt}() the SCD states that "Exceptions mimic fcmpeq",
this means they should set the cmpe flag when calling __fpu_compare().

Submitted by: stefanf
MFC after: 2 weeks

18 years agoo Do not mangle current session user login name with jail -u|-U.
maxim [Sun, 16 Apr 2006 12:32:04 +0000 (12:32 +0000)]
o Do not mangle current session user login name with jail -u|-U.

PR: bin/94730
Submitted by: Frank Behrens
MFC after: 1 month

18 years agoCorrect assorted grammos and typos.
schweikh [Sun, 16 Apr 2006 11:54:01 +0000 (11:54 +0000)]
Correct assorted grammos and typos.

18 years agoFix indentation for "Ostersonntag".
brueffer [Sun, 16 Apr 2006 10:34:56 +0000 (10:34 +0000)]
Fix indentation for "Ostersonntag".

Obtained from: OpenBSD

18 years agoTake a better stab at making this compile.
scottl [Sat, 15 Apr 2006 18:54:56 +0000 (18:54 +0000)]
Take a better stab at making this compile.

18 years agoCorrect debug: we are sending child bio here, not parent bio.
pjd [Sat, 15 Apr 2006 18:30:42 +0000 (18:30 +0000)]
Correct debug: we are sending child bio here, not parent bio.

MFC after: 1 week

18 years agoTake a stab at making this compile.
scottl [Sat, 15 Apr 2006 18:04:04 +0000 (18:04 +0000)]
Take a stab at making this compile.

18 years agoo Document /dev/fido.
maxim [Sat, 15 Apr 2006 17:52:02 +0000 (17:52 +0000)]
o Document /dev/fido.

PR: docs/85425
Approved by: phk
MFC after: 2 weeks

18 years agoo s/you health/your health/.
maxim [Sat, 15 Apr 2006 17:07:32 +0000 (17:07 +0000)]
o s/you health/your health/.

PR: conf/95810
Submitted by: Gavin Atkinson

18 years ago- make reentrant version of netdb functions glibc style API, and
ume [Sat, 15 Apr 2006 16:20:27 +0000 (16:20 +0000)]
- make reentrant version of netdb functions glibc style API, and
  expose them to outside of libc.
- make netdb functions NSS friendly.

Reviewed by: arch@ and current@ (no objection)

18 years agoOops, untested code was included accidentally.
iwasaki [Sat, 15 Apr 2006 16:10:53 +0000 (16:10 +0000)]
Oops, untested code was included accidentally.
Fixed.

18 years agoDon't export __gdtoa. The only known ports that rely on
deischen [Sat, 15 Apr 2006 15:35:20 +0000 (15:35 +0000)]
Don't export __gdtoa.  The only known ports that rely on
this or the deprecated POSIX functions {e,g,f}cvt() have
newer versions that do not (rely on them).

Requested by: marius

18 years agoo Document SO_NOSIGPIPE, touch .Dd.
maxim [Sat, 15 Apr 2006 13:37:35 +0000 (13:37 +0000)]
o Document SO_NOSIGPIPE, touch .Dd.

PR: docs/78479
Submitted by: Mikko Tyolajarvi
MFC after: 2 weeks

18 years agoImport ACPI Dock Station support. Note that this is still very young.
iwasaki [Sat, 15 Apr 2006 12:31:34 +0000 (12:31 +0000)]
Import ACPI Dock Station support.  Note that this is still very young.
Additional detach implementaions (or maybe improvement) for other
deivce drivers is required.

Reviewed by: njl, imp
MFC after: 1 week

18 years agoo Fix prototype for SYSCALL_MODULE(9): the third argument
maxim [Sat, 15 Apr 2006 12:04:18 +0000 (12:04 +0000)]
o Fix prototype for SYSCALL_MODULE(9): the third argument
is a pointer to struct sysent.  Correct its description.

PR: docs/84790
Submitted by: Dirk Gouders
MFC after: 2 weeks

18 years agoo Fix printf(9) formatting: do not use hardcode "0x" and "#" flags
maxim [Sat, 15 Apr 2006 11:41:40 +0000 (11:41 +0000)]
o Fix printf(9) formatting: do not use hardcode "0x" and "#" flags
simultaneously.  Remove "#' flag to match a style of the rest of
file.

PR: kern/85477
Submitted by: Oliver Fromme

18 years agoo s/PsuedoRAID/PseudoRAID/.
maxim [Sat, 15 Apr 2006 10:27:41 +0000 (10:27 +0000)]
o s/PsuedoRAID/PseudoRAID/.

PR: kern/94306
Submitted by: Esa Karkkainen

18 years agoo Be pedantic and do fts_close() when done.
maxim [Sat, 15 Apr 2006 09:26:23 +0000 (09:26 +0000)]
o Be pedantic and do fts_close() when done.

PR: bin/95292
Submitted by: Charles Hardin
Obtained from: NetBSD via OpenBSD, PR

18 years agoFix the interrupt handler to do the mandatory PCI flush before looking at
scottl [Sat, 15 Apr 2006 08:13:06 +0000 (08:13 +0000)]
Fix the interrupt handler to do the mandatory PCI flush before looking at
DMA memory.  The could contribute towards missed link state changes under
heavy bus load.

18 years agoMFen:
delphij [Sat, 15 Apr 2006 05:32:12 +0000 (05:32 +0000)]
MFen:
hardware/common/dev.sgml 1.296 -> 1.299
relnotes/common/new.sgml 1.910 -> 1.911

Obtained from: The FreeBSD Simplified Chinese Project

18 years agoMirror IPv4 pcb locking into in6_setsockaddr() and in6_setpeeraddr():
rwatson [Sat, 15 Apr 2006 05:24:23 +0000 (05:24 +0000)]
Mirror IPv4 pcb locking into in6_setsockaddr() and in6_setpeeraddr():
acquire inpcb lock when reading inpcb port+address in order to prevent
races with other threads that may be changing them.

MFC after: 3 months

18 years agoCopy the new CLOCK_ defines from sys/time.h for SUSv3 compatibility.
jb [Sat, 15 Apr 2006 03:08:55 +0000 (03:08 +0000)]
Copy the new CLOCK_ defines from sys/time.h for SUSv3 compatibility.

Approved by: rwatson

18 years agoFix style nit noticed by bde.
imp [Sat, 15 Apr 2006 02:51:53 +0000 (02:51 +0000)]
Fix style nit noticed by bde.

18 years agoMark the thread pointer used during an adaptive spin volatile so that the
jhb [Fri, 14 Apr 2006 19:51:50 +0000 (19:51 +0000)]
Mark the thread pointer used during an adaptive spin volatile so that the
compiler doesn't decide to cache td_state.  Cachine the state would cause
the spinning thread to not notice when the owning thread stopped executing
(if it was preempted for example) which could result in livelock.

18 years agoList pwritev in the NAME section.
ru [Fri, 14 Apr 2006 19:34:07 +0000 (19:34 +0000)]
List pwritev in the NAME section.

18 years agoFix copy-and-pasto in comment.
jkim [Fri, 14 Apr 2006 18:34:57 +0000 (18:34 +0000)]
Fix copy-and-pasto in comment.

18 years agoFix minimal installation check. 'X' was not displayed when it was selected.
jkim [Fri, 14 Apr 2006 18:18:43 +0000 (18:18 +0000)]
Fix minimal installation check.  'X' was not displayed when it was selected.

Reported by: Ian J. Hart <ianjhart at ntlworld dot com>
Pieter de Goeje <pieter at degoeje dot nl>

18 years ago1) Fix hang at the end of line buffer (PR 95715)
ache [Fri, 14 Apr 2006 17:32:27 +0000 (17:32 +0000)]
1) Fix hang at the end of line buffer (PR 95715)
2) Localize

PR:             95715
Submitted by:   Li-Lun Wang <llwang@infor.org> (slightly edited by me)

18 years agoWhitespace fix
matteo [Fri, 14 Apr 2006 17:26:04 +0000 (17:26 +0000)]
Whitespace fix

Pointed out by: Nate Lawson

18 years agoDont poll for ATA_IDLE on a detached channel in suspend.
sos [Fri, 14 Apr 2006 16:25:42 +0000 (16:25 +0000)]
Dont poll for ATA_IDLE on a detached channel in suspend.

18 years agoReduce the Linux ioctl range to what is needed. I didn't know what
ambrisko [Fri, 14 Apr 2006 16:13:28 +0000 (16:13 +0000)]
Reduce the Linux ioctl range to what is needed.  I didn't know what
I was doing when I first set the range up.

18 years agoDrop the kqueue global mutex as soon as we are finished with it rather
jhb [Fri, 14 Apr 2006 14:27:28 +0000 (14:27 +0000)]
Drop the kqueue global mutex as soon as we are finished with it rather
than keeping it locked until we exit the function to optimize the case
where the lock would be dropped and later reacquired.  The optimization
was broken when kevent's were moved from UFS to VFS and the knote list
lock for a vnode kevent became the lockmgr vnode lock.  If one tried
to use a kqueue that contained events for a kqueue fd followed by a vnode,
then the kq global lock would end up being held when the vnode lock was
acquired which could result in sleeping with a mutex held (and subsequent
panics) if the vnode lock was contested.

Reviewed by: jmg
Tested by: ps (on 6.x)
MFC after: 3 days

18 years agoOutput something reasonable for regular and expanded here-documents.
schweikh [Fri, 14 Apr 2006 13:59:03 +0000 (13:59 +0000)]
Output something reasonable for regular and expanded here-documents.
I would have chosen the EOF markers, but they are no longer available
AFAICS, so output "<<HERE" and "<<XHERE" instead.
(NOTE: These changes only affect DEBUG output.)

18 years agoFix markup and some typos.
ru [Fri, 14 Apr 2006 09:20:25 +0000 (09:20 +0000)]
Fix markup and some typos.

18 years agoAdd device ID for Intel Pro/100 VE Network Connection card
matteo [Fri, 14 Apr 2006 07:49:52 +0000 (07:49 +0000)]
Add device ID for Intel Pro/100 VE Network Connection card

PR: kern/95729
Submitted by: Nicky Bulthuis
MFC after: 1 day

18 years agoo Yacc's lineno variable holds a total number of parsed lines.
maxim [Fri, 14 Apr 2006 07:20:42 +0000 (07:20 +0000)]
o Yacc's lineno variable holds a total number of parsed lines.
Reset it to 1 for each devd config file so if the parser finds
a syntax error devd(8) will report a correct line number.

Submitted by: Niki Denev
MFC after: 2 weeks

18 years agoClear TDF_SINTR in sleepq_resume_thread, also sleepq_catch_signal does
davidxu [Thu, 13 Apr 2006 23:29:25 +0000 (23:29 +0000)]
Clear TDF_SINTR in sleepq_resume_thread, also sleepq_catch_signal does
not need to clear it now, this should fix panic when msleep is recursivly
called. Patch is slightly adjusted after review.

Reviewed by: jhb
Tested by: Csaba Henk, csaba-ml at creo.hu
MFC after: 3 days

18 years agoMake CCD be able to read and write Linux software raids.
cracauer [Thu, 13 Apr 2006 20:35:31 +0000 (20:35 +0000)]
Make CCD be able to read and write Linux software raids.

Supported for raid-0 with <n> disks, raid-1 with 2 disks.

Manpages have examples, warnings etc.

Test scripts on
http://www.cons.org/cracauer/ccdconfig-linux/
Reviewed by: alfred

18 years agoRepair ext2fs writes.
cracauer [Thu, 13 Apr 2006 19:37:32 +0000 (19:37 +0000)]
Repair ext2fs writes.

Strong candidate for backport to 6.x.

When allocating new blocks, the search for block group beginnings
would fail with a segfault.  There was a side-effect read access with
an off-by-one errors.  The results were not used in the error case so
the code worked in the past.  But now the FreeBSD kernel has tighter
mappings and the word accessed is not mapped (for me).

The Linux kernel has rewritten most of the allocation strategy by now.
Also, the Linux kernel cleaned up the integration of these files and
it look feasable to wrap the original Linux files in wrapper that
provides their favorite arguments instead of dragging around our own
code.

18 years agoSpell synchronous with required silent 'h'.
brooks [Thu, 13 Apr 2006 18:34:14 +0000 (18:34 +0000)]
Spell synchronous with required silent 'h'.

Reported by: ru, ceri
Pointy hat: brooks

18 years agoAdd missing _ to $_punct.
brooks [Thu, 13 Apr 2006 18:27:49 +0000 (18:27 +0000)]
Add missing _ to $_punct.

Submitted by: Dmitry Pryanishnikov <dmitry at atlantis.dp.ua>