]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoThis commit was generated by cvs2svn to compensate for changes in r172665,
mp [Mon, 15 Oct 2007 15:23:07 +0000 (15:23 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172665,
which included commits to RCS files with non-trunk default branches.

16 years agoImport two vendor fixes from tcsh-6.15.01 for MFC to 7.0. The fixes are:
mp [Mon, 15 Oct 2007 15:23:07 +0000 (15:23 +0000)]
Import two vendor fixes from tcsh-6.15.01 for MFC to 7.0. The fixes are:
  - Fix pty detection for autologout setting
  - kill `foo` got stuck because sigchld was disabled too soon

Requested by: re

16 years agoOptimize for size on pc98. It enables to boot a kernel again.
nyan [Mon, 15 Oct 2007 14:20:24 +0000 (14:20 +0000)]
Optimize for size on pc98.  It enables to boot a kernel again.

I don't know what's wrong (loader, boot2 or others), but this change is
effective.

Tested by: NAKAJI Hiroyuki
MFC after: 3 days

16 years agoIf a required install tool is missing, provide a more friendly error
emaste [Mon, 15 Oct 2007 13:50:46 +0000 (13:50 +0000)]
If a required install tool is missing, provide a more friendly error
message (instead of cp's usage info).

16 years agoAdd comment explaining __mb_sb_limit trick here.
ache [Mon, 15 Oct 2007 09:51:30 +0000 (09:51 +0000)]
Add comment explaining __mb_sb_limit trick here.

16 years agoMarkup nit.
ru [Mon, 15 Oct 2007 08:29:53 +0000 (08:29 +0000)]
Markup nit.

16 years agoSort.
ru [Mon, 15 Oct 2007 08:26:12 +0000 (08:26 +0000)]
Sort.

16 years agoSort.
ru [Mon, 15 Oct 2007 08:17:12 +0000 (08:17 +0000)]
Sort.

16 years agoFix markup.
ru [Mon, 15 Oct 2007 08:07:15 +0000 (08:07 +0000)]
Fix markup.

16 years agoIntroduce FreeBSD 8.0 to mdoc(7).
ru [Mon, 15 Oct 2007 08:06:42 +0000 (08:06 +0000)]
Introduce FreeBSD 8.0 to mdoc(7).

16 years agoAdd myself to the FreeBSD calendar.
lme [Sun, 14 Oct 2007 19:55:32 +0000 (19:55 +0000)]
Add myself to the FreeBSD calendar.

Approved by:     miwi (mentor)

16 years agoAdd PCI IDs from Adaptec's driver version b11669:
emaste [Sun, 14 Oct 2007 19:40:15 +0000 (19:40 +0000)]
Add PCI IDs from Adaptec's driver version b11669:

Adaptec RAID 3085
Adaptec RAID 31205
Adaptec RAID 31605
Adaptec RAID 5085
Adaptec RAID 51205
Adaptec RAID 51605
Adaptec RAID 5445
Adaptec RAID 5805
IBM ServeRAID 8s
ICP RAID ICP5045BL
ICP RAID ICP5085BL
ICP RAID ICP5085SL
ICP RAID ICP5125BR
ICP RAID ICP5125SL
ICP RAID ICP5165BR
ICP RAID ICP5165SL
ICP RAID ICP5445SL
ICP RAID ICP5805BL
ICP RAID ICP5805SL
ICP9067MA SATA RAID

16 years agoFix makrup. There are still some OpenBSD-specific things
ru [Sun, 14 Oct 2007 19:38:11 +0000 (19:38 +0000)]
Fix makrup.  There are still some OpenBSD-specific things
in there that need tweaking.

16 years agostyle.Makefile(5) says: Do not use GCCisms (such as -g and -Wall)
ru [Sun, 14 Oct 2007 19:23:38 +0000 (19:23 +0000)]
style.Makefile(5) says: Do not use GCCisms (such as -g and -Wall)
in CFLAGS.

16 years agoSort.
ru [Sun, 14 Oct 2007 19:20:59 +0000 (19:20 +0000)]
Sort.

16 years agoBump document date for the last change.
ru [Sun, 14 Oct 2007 19:12:36 +0000 (19:12 +0000)]
Bump document date for the last change.

16 years agoFix mdoc.
ru [Sun, 14 Oct 2007 19:11:01 +0000 (19:11 +0000)]
Fix mdoc.

16 years agoRemove trailing whitespace.
ru [Sun, 14 Oct 2007 19:01:28 +0000 (19:01 +0000)]
Remove trailing whitespace.

16 years agoFix mdoc in last commit.
ru [Sun, 14 Oct 2007 18:57:32 +0000 (18:57 +0000)]
Fix mdoc in last commit.

16 years agoZFS_LOG adds a newline by itself.
thompsa [Sun, 14 Oct 2007 16:14:32 +0000 (16:14 +0000)]
ZFS_LOG adds a newline by itself.

Pointed out by: pjd

16 years agoThis changes give nullfs correctly work with latest unionfs.
daichi [Sun, 14 Oct 2007 13:57:11 +0000 (13:57 +0000)]
This changes give nullfs correctly work with latest unionfs.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoAdded whiteout behavior option. ``-o whiteout=always'' is default mode
daichi [Sun, 14 Oct 2007 13:55:38 +0000 (13:55 +0000)]
Added whiteout behavior option. ``-o whiteout=always'' is default mode
(it is established practice) and ``-o whiteout=whenneeded'' is less
disk-space using mode especially for resource restricted environments
like embedded environments. (Contributed by Ed Schouten. Thanks)

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoDefault copy mode has been changed from traditional-mode to transparent-mode.
daichi [Sun, 14 Oct 2007 13:53:38 +0000 (13:53 +0000)]
Default copy mode has been changed from traditional-mode to transparent-mode.
Some folks who have reported some issues have solved with transparent mode.
We guess it is time to change the default copy mode. The transparent-mode is
the best in most situations.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoFixed un-vrele issue of upper layer root vnode of unionfs.
daichi [Sun, 14 Oct 2007 13:52:01 +0000 (13:52 +0000)]
Fixed un-vrele issue of upper layer root vnode of  unionfs.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoAdded NULL check code pointed out by Coverity. (via Stanislav
daichi [Sun, 14 Oct 2007 13:50:58 +0000 (13:50 +0000)]
Added NULL check code pointed out by Coverity. (via Stanislav
Sedov. Thanks)

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years ago- It has been become MPSAFE.
daichi [Sun, 14 Oct 2007 13:49:30 +0000 (13:49 +0000)]
- It has been become MPSAFE.
- Fixed lock panic issue under MPSAFE.
- Fixed panic issue whenever it locks vnode with reclaim.
- Fixed lock implementations not conforming to vnode_if.src style.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoFixed vnode unlock/vrele untreated issues whenever errors have
daichi [Sun, 14 Oct 2007 13:47:44 +0000 (13:47 +0000)]
Fixed vnode unlock/vrele untreated issues whenever errors have
occurred during some treatments.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years ago- Added support for vfs_cache on unionfs. As a result, you can use
daichi [Sun, 14 Oct 2007 13:46:11 +0000 (13:46 +0000)]
- Added support for vfs_cache on unionfs. As a result, you can use
  applications that use procfs on unionfs.
- Removed unionfs internal cache mechanism because it has
  vfs_cache support instead. As a result, it just simplified code of
  unionfs.
- Fixed kern/111262 issue.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoAdded treatments to prevent readdir infinity loop using with Linux binary
daichi [Sun, 14 Oct 2007 13:44:06 +0000 (13:44 +0000)]
Added treatments to prevent readdir infinity loop using with Linux binary
compatibility feature.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoChanged it frees unneeded memory ASAP.
daichi [Sun, 14 Oct 2007 13:42:05 +0000 (13:42 +0000)]
Changed it frees unneeded memory ASAP.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoLog:
daichi [Sun, 14 Oct 2007 13:37:52 +0000 (13:37 +0000)]
Log:
    Improved access permission check treatments.

Submitted by:   Masanori Ozawa <ozawa@ongs.co.jp> (unionfs developer)
Reviewed by:    jeff, kensmith
Approved by:    re (kensmith)
MFC after:      1 week

16 years agoConvert coretemp(4) to the hardware sensors framework and
netchild [Sun, 14 Oct 2007 10:59:44 +0000 (10:59 +0000)]
Convert coretemp(4) to the hardware sensors framework and
make sure to never call sched_bind() for uninitialised CPUs.

Submitted by: Constantine A. Murenin <cnst@FreeBSD.org>
Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors)
Mentored by: syrinx
Tested by: many
OKed by: kensmith

16 years agoImport it(4) and lm(4), supporting most popular Super I/O Hardware Monitors.
netchild [Sun, 14 Oct 2007 10:55:50 +0000 (10:55 +0000)]
Import it(4) and lm(4), supporting most popular Super I/O Hardware Monitors.

Submitted by: Constantine A. Murenin <cnst@FreeBSD.org>
Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors)
Mentored by: syrinx
Tested by: many
OKed by: kensmith
Obtained from: OpenBSD (parts)

16 years agoImport OpenBSD's sysctl hardware sensors framework.
netchild [Sun, 14 Oct 2007 10:45:31 +0000 (10:45 +0000)]
Import OpenBSD's sysctl hardware sensors framework.

This commit includes the following core components:

 * sample configuration file for sensorsd
 * rc(8) script and glue code for sensorsd(8)
 * sysctl(3) doc fixes for CTL_HW tree
 * sysctl(3) documentation for hardware sensors
 * sysctl(8) documentation for hardware sensors
 * support for the sensor structure for sysctl(8)
 * rc.conf(5) documentation for starting sensorsd(8)
 * sensor_attach(9) et al documentation
 * /sys/kern/kern_sensors.c
   o sensor_attach(9) API for drivers to register ksensors
   o sensor_task_register(9) API for the update task
   o sysctl(3) glue code
   o hw.sensors shadow tree for sysctl(8) internal magic
 * <sys/sensors.h>
 * HW_SENSORS definition for <sys/sysctl.h>
 * sensors display for systat(1), including documentation
 * sensorsd(8) and all applicable documentation

The userland part of the framework is entirely source-code
compatible with OpenBSD 4.1, 4.2 and  -current as of today.

All sensor readings can be viewed with `sysctl hw.sensors`,
monitored in semi-realtime with `systat -sensors` and also
logged with `sensorsd`.

Submitted by: Constantine A. Murenin <cnst@FreeBSD.org>
Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors)
Mentored by: syrinx
Tested by: many
OKed by: kensmith
Obtained from: OpenBSD (parts)

16 years agoBack out iswascii change from prev. commit, iswascii was right,
ache [Sun, 14 Oct 2007 10:23:54 +0000 (10:23 +0000)]
Back out iswascii change from prev. commit, iswascii was right,
some overlook from me.

16 years agoSplit ng_pppoe_rcvdata() function into three hook-specific ones
mav [Sun, 14 Oct 2007 09:58:22 +0000 (09:58 +0000)]
Split ng_pppoe_rcvdata() function into three hook-specific ones
to simplify code and reduce stack usage.

16 years agoRemove ng_pppoe_sendpacket() function to simplify code as it is called
mav [Sun, 14 Oct 2007 09:51:19 +0000 (09:51 +0000)]
Remove ng_pppoe_sendpacket() function to simplify code as it is called
as much times as it has cases inside of it.

16 years agoo Fix a typo in ipfw table usage example.
maxim [Sun, 14 Oct 2007 09:12:46 +0000 (09:12 +0000)]
o Fix a typo in ipfw table usage example.

PR: docs/117172
Submitted by: novel
MFC after: 1 week

16 years agoo Pablo Picasso's birthday is October 25 not October 5.
maxim [Sun, 14 Oct 2007 08:52:29 +0000 (08:52 +0000)]
o Pablo Picasso's birthday is October 25 not October 5.

PR: conf/116952
Submitted by: Pablo Picasso <comet@transbay.net>

16 years agoPrint the ZFS ereport to the console if vfs.zfs.debug is set to help diagnose
thompsa [Sun, 14 Oct 2007 07:58:50 +0000 (07:58 +0000)]
Print the ZFS ereport to the console if vfs.zfs.debug is set to help diagnose
problems with zfs-on-root since devd isnt running yet.

Reviewed by: pjd

16 years agoDocument quotachecks use of the passno field.
mpp [Sun, 14 Oct 2007 07:46:49 +0000 (07:46 +0000)]
Document quotachecks use of the passno field.

16 years agoAdd comment stating that UCS-4 really used here, not UTF-8
ache [Sun, 14 Oct 2007 02:18:52 +0000 (02:18 +0000)]
Add comment stating that UCS-4 really used here, not UTF-8

16 years agoFix id -A when the subject has an extended subject token associated with
csjp [Sun, 14 Oct 2007 00:52:30 +0000 (00:52 +0000)]
Fix id -A when the subject has an extended subject token associated with
them (for example when they have logged in from an ip6 source).

- Stick with the initial call to getaudit(2), if it returns E2BIG, use
  getaudit_addr(2) instead and set the "extended" flag to indicate that
  we the calling credential has an extended subject state.
- Additionally, add the printing of the machine/at_addr (the ip/ip6
  addresses)

MFC after: 1 week
Obtained from: TrustedBSD Project

16 years agorevert 1.18: the negotiated rate set may not match the hal
sam [Sat, 13 Oct 2007 22:30:41 +0000 (22:30 +0000)]
revert 1.18: the negotiated rate set may not match the hal
rate tables, so using the hal's rateCodeToIndex array
will produce wrong indices for the negotiated rate set

MFC after: 3 days

16 years agoThe problem is: currently our single byte ctype(3) functions are broken
ache [Sat, 13 Oct 2007 16:28:22 +0000 (16:28 +0000)]
The problem is: currently our single byte ctype(3) functions are broken
for wide characters locales in the argument range >= 0x80 - they may
return false positives.

Example 1: for UTF-8 locale we currently have:
iswspace(0xA0)==1 and isspace(0xA0)==1
(because iswspace() and isspace() are the same code)
but must have
iswspace(0xA0)==1 and isspace(0xA0)==0
(because there is no such character and all others in the range
0x80..0xff for the UTF-8 locale, it keeps ASCII only in the single byte
range because our internal wchar_t representation for UTF-8 is UCS-4).

Example 2: for all wide character locales isalpha(arg) when arg > 0xFF may
return false positives (must be 0).
(because iswalpha() and isalpha() are the same code)

This change address this issue separating single byte and wide ctype
and also fix iswascii() (currently iswascii() is broken for
arguments > 0xFF).
This change is 100% binary compatible with old binaries.

Reviewied by: i18n@

16 years agoRemove symbols that should not be exported.
deischen [Sat, 13 Oct 2007 14:40:16 +0000 (14:40 +0000)]
Remove symbols that should not be exported.

Submitted by: das
MFC after re@ approval

16 years agoRewrite puc_pci_match() to handle non-trivial cases correctly.
des [Sat, 13 Oct 2007 12:14:20 +0000 (12:14 +0000)]
Rewrite puc_pci_match() to handle non-trivial cases correctly.

MFC after: 1 week

16 years agoMFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd are
cognet [Sat, 13 Oct 2007 12:06:31 +0000 (12:06 +0000)]
MFKernel: do not use __XSCALE__ to detect if clz/pld/ldrd/strd are
available, use _ARM_ARCH_5/_ARM_ARCH_5E instead.

MFC After: 3 days

16 years agoDo not use __XSCALE__ to detect if clz is available, use _ARM_ARCH_5 instead.
cognet [Sat, 13 Oct 2007 12:05:36 +0000 (12:05 +0000)]
Do not use __XSCALE__ to detect if clz is available, use _ARM_ARCH_5 instead.

MFC After: 3 days

16 years agoDo not use __XSCALE__ to detect if pld/strd/ldrd is available, use
cognet [Sat, 13 Oct 2007 12:05:03 +0000 (12:05 +0000)]
Do not use __XSCALE__ to detect if pld/strd/ldrd is available, use
_ARM_ARCH_5E instead.

MFC After: 3 days

16 years agoDefine _ARM_ARCH_5E too, so that we know if pld/strd/ldrd are available.
cognet [Sat, 13 Oct 2007 12:04:10 +0000 (12:04 +0000)]
Define _ARM_ARCH_5E too, so that we know if pld/strd/ldrd are available.

MFC After: 3 days

16 years agoI don't know what I was smoking when I wrote these three years ago; the
des [Sat, 13 Oct 2007 11:30:19 +0000 (11:30 +0000)]
I don't know what I was smoking when I wrote these three years ago; the
return value is an error code, hence always an int.

While I'm here, add getenv_uint() for completeness.

16 years agoMinor mdoc cleanup: Every sentence should start on its own line.
simon [Sat, 13 Oct 2007 11:09:45 +0000 (11:09 +0000)]
Minor mdoc cleanup: Every sentence should start on its own line.

16 years agoDescribe an error return that was missed out earlier.
jkoshy [Sat, 13 Oct 2007 06:03:47 +0000 (06:03 +0000)]
Describe an error return that was missed out earlier.

16 years agoBack out last commit -- it breaks sparc64 build which has
ru [Sat, 13 Oct 2007 05:50:43 +0000 (05:50 +0000)]
Back out last commit -- it breaks sparc64 build which has
more than one .c file in SRCS.

16 years agoAdd NOP-message polling to ciss_periodic().
iwasaki [Sat, 13 Oct 2007 05:45:45 +0000 (05:45 +0000)]
Add NOP-message polling to ciss_periodic().
Disable adapter by detecting adapter is dead.

Tested by: Masaki YATSU(on RELENG_6)
Reviewed by: scottl
MFC after: 1 week

16 years agoFix a NULL pointer dereference in Tx checksum calculation.
yongari [Sat, 13 Oct 2007 00:24:09 +0000 (00:24 +0000)]
Fix a NULL pointer dereference in Tx checksum calculation.

Pointed out by: marius

16 years agoAdd definitions for the 3rd ATA support word.
scottl [Fri, 12 Oct 2007 22:18:56 +0000 (22:18 +0000)]
Add definitions for the 3rd ATA support word.

16 years agoAdd a bunch of definitions and structures to support newer drivers.
scottl [Fri, 12 Oct 2007 22:11:22 +0000 (22:11 +0000)]
Add a bunch of definitions and structures to support newer drivers.

16 years agoThe ukbd driver has some questionable "magic" to for a default keyboard
jhb [Fri, 12 Oct 2007 19:47:42 +0000 (19:47 +0000)]
The ukbd driver has some questionable "magic" to for a default keyboard
which is ukbd0.  Specifically, the keyboard driver structures for ukbd0
are not allocated/freed but are statically allocated via a persistent
global variable.  There is some additional magic for the ukbd0 such that
if the keyboard is marked as probed in this global variable, then we
don't check to see if the device_t we are probing has an interface.

This causes a problem if an attach of ukbd0 fails without fulling clearing
the state in the global variable.  Specifically, if the keyboard fails to
initialize in init_keyboard() or kbd_register(), then the keyboard will
still be marked as probed.  The USB layer will then try to offer the
"generic" version of the USB keyboard device (as opposed to the
per-interface sub-devices) and the ukbd(4) driver will see that the
keyboard is marked probe and will skip the "is this a per-interface device"
check.  Later in ukbd_attach() it panics because it tries to dereference
the interface pointer which is NULL.

The fix is to clear the flags in the persistent keyboard data for ukbd0
when init_keyboard() or kbd_register() fail.

MFC after: 1 week
Reviewed by: imp

16 years agoNFS MP scaling changes.
mohans [Fri, 12 Oct 2007 19:12:21 +0000 (19:12 +0000)]
NFS MP scaling changes.
- Eliminate the hideous nfs_sndlock that serialized NFS/TCP request senders
  thru the sndlock.
- Institute a new nfs_connectlock that serializes NFS/TCP reconnects. Add
  logic to wait for pending request senders to finish sending before
  reconnecting. Dial down the sb_timeo for NFS/TCP sockets to 1 sec.
- Break out the nfs xid manipulation under a new nfs xid lock, rather than
  over loading the nfs request lock for this purpose.
- Fix some of the locking in nfs_request.
Many thanks to Kris Kennaway for his help with this and for initiating the
MP scaling analysis and work. Kris also tested this patch thorougly.
Approved by: re@ (Ken Smith)

16 years agoThis commit was generated by cvs2svn to compensate for changes in r172597,
delphij [Fri, 12 Oct 2007 19:03:03 +0000 (19:03 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172597,
which included commits to RCS files with non-trunk default branches.

16 years agoImport less v409, fixes a rather serious bug which causes
delphij [Fri, 12 Oct 2007 19:03:03 +0000 (19:03 +0000)]
Import less v409, fixes a rather serious bug which causes
crashes when searching for invalid UTF-8 sequence.

16 years agoAdjust HISTORY.
obrien [Fri, 12 Oct 2007 18:16:35 +0000 (18:16 +0000)]
Adjust HISTORY.

16 years agostyle.Makefile(5)
obrien [Fri, 12 Oct 2007 18:15:40 +0000 (18:15 +0000)]
style.Makefile(5)

16 years agoMinor tweak to finding BEG/END source.
obrien [Fri, 12 Oct 2007 18:14:41 +0000 (18:14 +0000)]
Minor tweak to finding BEG/END source.

16 years agostyle.Makefile(5)
obrien [Fri, 12 Oct 2007 18:03:00 +0000 (18:03 +0000)]
style.Makefile(5)

16 years agoWelcome FreeBSD 8.
obrien [Fri, 12 Oct 2007 17:49:12 +0000 (17:49 +0000)]
Welcome FreeBSD 8.

16 years agoDo not attempt to make an NFS rpc call if using tftp
ps [Fri, 12 Oct 2007 17:09:43 +0000 (17:09 +0000)]
Do not attempt to make an NFS rpc call if using tftp

PR: kern/91720
Submitted by: Ruben Kerkhof

16 years agoFix a mistake made in the MPSAFE commit that caused CAM to serialize requests
scottl [Fri, 12 Oct 2007 17:03:41 +0000 (17:03 +0000)]
Fix a mistake made in the MPSAFE commit that caused CAM to serialize requests
to the controller.

16 years agoFor some blasted reason the SATA WC change frees a structure right in the
scottl [Fri, 12 Oct 2007 16:54:51 +0000 (16:54 +0000)]
For some blasted reason the SATA WC change frees a structure right in the
middle of using it.

16 years agoPlay better with CAM so that there aren't so many spurious warnings at boot.
scottl [Fri, 12 Oct 2007 16:52:55 +0000 (16:52 +0000)]
Play better with CAM so that there aren't so many spurious warnings at boot.

16 years agoDeferred interrupts don't work yet, disable them.
scottl [Fri, 12 Oct 2007 16:51:22 +0000 (16:51 +0000)]
Deferred interrupts don't work yet, disable them.

Submitted by: Manjunath Ranganathaiah

16 years agoTeach /etc/rc.d/ppp to start multiple instances of ppp.
emax [Fri, 12 Oct 2007 16:35:36 +0000 (16:35 +0000)]
Teach /etc/rc.d/ppp to start multiple instances of ppp.

ppp_profile variable can now contain multiple profiles.
Overrides for ppp mode and nat can go into ppp_$profile_mode
and ppp_$profile_nat variables respectively. If those are
not specified, defaults from ppp_mode and ppp_nat are used.

Submitted by: Yuri Kurenkov < y dot kurenkov at init dot ru >
Reviewed by: mtm
MFC after: 1 week

16 years agoBump version numbers to reflect that HEAD represents 8.0-CURRENT.
bmah [Fri, 12 Oct 2007 15:35:56 +0000 (15:35 +0000)]
Bump version numbers to reflect that HEAD represents 8.0-CURRENT.

16 years ago- Change the wakeup logic associated with having multiple sleepers
csjp [Fri, 12 Oct 2007 15:09:02 +0000 (15:09 +0000)]
- Change the wakeup logic associated with having multiple sleepers
  on multiple different audit pipes.  The old method used cv_signal()
  which would result in only one thread being woken up after we
  appended a record to it's queue.  This resulted in un-timely wake-ups
  when processing audit records real-time.

- Assign PSOCK priority to threads that have been sleeping on a read(2).
  This is the same priority threads are woken up with when they select(2)
  or poll(2).  This yields fairness between various forms of sleep on
  the audit pipes.

Obtained from: TrustedBSD Project
Discussed with: rwatson
MFC after: 1 week

16 years agoMake sure that we refresh the PID on read(2) and write(2) operations.
csjp [Fri, 12 Oct 2007 14:58:34 +0000 (14:58 +0000)]
Make sure that we refresh the PID on read(2) and write(2) operations.
This fixes the process portion of the bpf(4) stats if the peer forks
into the background after it's opened the descriptor.  This bug
results in the following behavior for netstat -B:

# netstat -B
  Pid  Netif  Flags      Recv      Drop     Match Sblen Hblen Command
netstat: kern.proc.pid failed: No such process
78023    em0 p--s--   2237404     43119   2237404 13986     0 ??????

MFC after: 1 week

16 years agoAdd a signal handler for SIGINT to make sure that the PID file
csjp [Fri, 12 Oct 2007 14:57:39 +0000 (14:57 +0000)]
Add a signal handler for SIGINT to make sure that the PID file
gets cleaned up upon receiving SIGINT.  This un-breaks subsequent
executions of ipfwpcap and helps when debugging network/divert
issues like this:

ipfwpcap -r 6000 - | tcpdump -r -

MFC after: 1 week

16 years agoRevision 1.12 of lockf.c fixed a "thundering herd" scenario when the
csjp [Fri, 12 Oct 2007 14:56:52 +0000 (14:56 +0000)]
Revision 1.12 of lockf.c fixed a "thundering herd" scenario when the
lock experienced contention a number of processes would race to acquire
lock when it was released.  This problem resulted in a lot of CPU
load as well as locks being picked up out of order.

Unfortunately, a regression snuck in which allowed multiple threads
to pickup the same lock when -k was not used.  This could occur when
multiple processes open a file descriptor to inode X (one process
will be blocked) and the file is unlinked on unlock (thereby removing
the directory entry allow another process to create a new directory
entry for the same file name and lock it).

This changes restores the old algorithm of: wait for the lock, then
acquire lock when we want to unlink the file on exit (specifically
when -k is not used) and keeps the new algorithm for when -k is used,
which yields fairness and improved performance.

Also, update the man page to inform users that if lockf(1) is being
used to facilitate concurrency between a number of processes, it
is recommended that -k be used to reduce CPU load and yeld
fairness with regard to lock ordering.

Collaborated with: jdp
PR: bin/114341
PR: bin/116543
PR: bin/111101
MFC after: 1 week

16 years agoAdd pts/pty to the un-hidden devices for logins. This un-breaks
csjp [Fri, 12 Oct 2007 14:55:41 +0000 (14:55 +0000)]
Add pts/pty to the un-hidden devices for logins.  This un-breaks
logins to jailed environments when the system is using PTS style
ptys (kern.pts.enable=1).

Discussed with: rwatson
MFc after: 1 week

16 years agoWhen pidfile is already locked and has zero length, do not return
kib [Fri, 12 Oct 2007 10:38:05 +0000 (10:38 +0000)]
When pidfile is already locked and has zero length, do not return
success and zero pid from pidfile_read(). Return EAGAIN instead. Sleep
up to three times for 5 ms while waiting for pidfile to be written.

mount(8) does the kill(mountpid, SIGHUP). If mountd pidfile is truncated,
that would result in the SIGHUP delivered to the mount' process group
instead of the mountd.

Found and analyzed by: Peter Holm
Tested by: Peter Holm, kris
Reviewed by: pjd
MFC after: 1 week

16 years agoStyle (whitespace-only) change.
ru [Fri, 12 Oct 2007 10:35:24 +0000 (10:35 +0000)]
Style (whitespace-only) change.

16 years agoRemove unneeded debug printf that is broken on 64bit arches.
thompsa [Fri, 12 Oct 2007 10:00:26 +0000 (10:00 +0000)]
Remove unneeded debug printf that is broken on 64bit arches.

16 years agoAdd another zydas device: Planex GW-US54GD (a.k.a Dempaotoko)
takawata [Fri, 12 Oct 2007 08:45:55 +0000 (08:45 +0000)]
Add another zydas device: Planex GW-US54GD (a.k.a Dempaotoko)

16 years agoBring in some new Sierra Wireless drivers running under pccard.
remko [Fri, 12 Oct 2007 08:26:15 +0000 (08:26 +0000)]
Bring in some new Sierra Wireless drivers running under pccard.

(AC710/AC750/AC850/A550/A555/A710/A750)

PR: kern/110190
Submitted by: Pascal Vizeli<pvizeli at yahoo dot de>
Approved by: imp (mentor)

MFC After: 1 week

16 years agoThough it was possible to configure our BIND to build even when
ru [Fri, 12 Oct 2007 08:03:51 +0000 (08:03 +0000)]
Though it was possible to configure our BIND to build even when
libpthread support isn't present, our maintainer felt it's an
overkill, so instead enforce the BIND dependency on libpthread.

16 years agoRemove default (compressed) manpages.
ru [Fri, 12 Oct 2007 07:58:08 +0000 (07:58 +0000)]
Remove default (compressed) manpages.

16 years agoSpelling fix for interupt -> interrupt
kevlo [Fri, 12 Oct 2007 06:03:46 +0000 (06:03 +0000)]
Spelling fix for interupt -> interrupt

16 years agoUpdate ipw to work with the new net80211 stack, plus other driver improvements.
thompsa [Fri, 12 Oct 2007 05:23:00 +0000 (05:23 +0000)]
Update ipw to work with the new net80211 stack, plus other driver improvements.

 - Add proper scanning support rather than letting the firmware grab the first
   access point
 - Overhaul state changes
 - Use macros for locking and provide _locked() versions of some functions
 - Increase debugging output
 - Use a callout rather than the old watchdog interface
 - Improve style, function names and defines
 - Add WPA (TKIP) support

Based heavily on a patchset provided by Sam Leffler.

16 years agoProtect struct seq with mutex.
mav [Fri, 12 Oct 2007 04:56:26 +0000 (04:56 +0000)]
Protect struct seq with mutex.

Approved by: glebius (mentor)

16 years agoRemove one unneded assertion. It is also checked in
mav [Fri, 12 Oct 2007 04:54:43 +0000 (04:54 +0000)]
Remove one unneded assertion. It is also checked in
ng_l2tp_seq_check().

Approved by: glebius (mentor)

16 years agoReplace single rcvdata with 3 distinct to simplify code and
mav [Fri, 12 Oct 2007 04:53:23 +0000 (04:53 +0000)]
Replace single rcvdata with 3 distinct to simplify code and
reduce stack usage.

Approved by: mentor (glebius)

16 years agoRemove duplicate variables.
mav [Fri, 12 Oct 2007 04:51:30 +0000 (04:51 +0000)]
Remove duplicate variables.

16 years agoNote getfacl(1) changes
kevlo [Fri, 12 Oct 2007 04:48:58 +0000 (04:48 +0000)]
Note getfacl(1) changes

Submitted by: Henrik Brix Andersen <henrik at brixandersen.dk>

16 years agoCorrect the cpio writers to not accept data for non-regular files.
kientzle [Fri, 12 Oct 2007 04:11:31 +0000 (04:11 +0000)]
Correct the cpio writers to not accept data for non-regular files.
In particular, the previous code led to archives that had
non-empty bodies following directory entries.  Not a fatal
problem, as bsdtar and GNU cpio are both happy to just skip
this bogus data, but it still shouldn't be there.

MFC after: 3 days

16 years agoCorrect the return values of the final zero-length block at EOF.
kientzle [Fri, 12 Oct 2007 04:08:28 +0000 (04:08 +0000)]
Correct the return values of the final zero-length block at EOF.
Return EOF immediately if an entry in a ZIP archive has no body.
In particular, the latter issue was causing bsdtar to emit spurious
warnings when extracting directory entries from ZIP archives.

MFC after: 3 days

16 years agoSet the NFS server sockbuf high watermarks to the system defaults
mohans [Fri, 12 Oct 2007 03:56:27 +0000 (03:56 +0000)]
Set the NFS server sockbuf high watermarks to the system defaults
(up form 32KB). The low highwatermark setting caused UDP fullsock
request drops, throttling thruput greatly.
Reported by: Kris Kennaway
Approved by: re@ (Ken Smith)

16 years agoNot all VIA Rhine chips support 256 register space. So touching
yongari [Fri, 12 Oct 2007 03:32:55 +0000 (03:32 +0000)]
Not all VIA Rhine chips support 256 register space. So touching
VR_STICKHW register would result in unexpected results on these
hardwares. wpaul said the following for the issue.

  The vr_attach() routine unconditionally does this for all supported
  chips:

/*
 * Windows may put the chip in suspend mode when it
 * shuts down. Be sure to kick it in the head to wake it
 * up again.
 */
VR_CLRBIT(sc, VR_STICKHW, (VR_STICKHW_DS0|VR_STICKHW_DS1));

  The problem is, the VR_STICKHW register is not valid on all Rhine
  devices. The VT86C100A chip, which is present on the D-Link DFE-530TX
  boards, doesn't support power management, and its register space is
  only 128 bytes wide. The VR_STICKHW register offset falls outside this
  range. This may go unnoticed in most scenarios, but if you happen to have
  another PCI device in your system which is assigned the register
  space immediately after that of the Rhine, the vr(4) driver will
  incorrectly stomp it. In my case, the BIOS on my test board decided
  to put the register space for my PRO/100 ethernet board right next
  to the Rhine, and the Rhine driver ended up clobbering the IMR register
  of the PRO/100 device. (Long story short: the board kept locking up on
  boot. Took me the better part of the morning suss out why.)

  The strictly correct thing to do would be to check the PCI config space
  to make sure the device supports the power management capability and only
  write to the VR_STICKHW register if it does.

Instead of inspecting chip revision numbers for the availability of
VR_STICKHW register, check the existence of power management capability
of the hardware as wpaul suggested.

Reported by: wpaul
Suggested by: wpaul
OK'ed by: jhb

16 years agoFix two panics in lagg.
thompsa [Fri, 12 Oct 2007 03:03:16 +0000 (03:03 +0000)]
Fix two panics in lagg.

1. The locking was changed to shared but roundrobin mode still updated a
   pointer in the softc with the next tx interface to use. This will panic
   under high load. Change this to an atomically incremented sequence number in
   order to choose the tx port in round robin.

2. IFQ_HANDOFF will free the mbuf if the queue is full, this will then be freed
   again by lagg_start() and panic.  Reorganised the error handling and freeing
   to fix this.

MFC after: 3 days

16 years ago- After gcc 4.2 import, include/objc/objc-api.h requires objc-decls.h which
rafan [Fri, 12 Oct 2007 02:52:46 +0000 (02:52 +0000)]
- After gcc 4.2 import, include/objc/objc-api.h requires objc-decls.h which
  we did not install. Install objc-decls.h to fix.

PR: 116943
Reported by: beech
Submitted by: vanilla on -current, kan
MFC after: 1 week