]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years agoThis commit was generated by cvs2svn to compensate for changes in r172683,
Max Laier [Tue, 16 Oct 2007 02:20:42 +0000 (02:20 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172683,
which included commits to RCS files with non-trunk default branches.

16 years agoImport of tcpdump v3.9.8
Max Laier [Tue, 16 Oct 2007 02:20:42 +0000 (02:20 +0000)]
Import of tcpdump v3.9.8

16 years agoUpdate for libpcap 0.9.8
Max Laier [Tue, 16 Oct 2007 02:12:06 +0000 (02:12 +0000)]
Update for libpcap 0.9.8

16 years agoUpdate for libpcap 0.9.8 import
Max Laier [Tue, 16 Oct 2007 02:10:44 +0000 (02:10 +0000)]
Update for libpcap 0.9.8 import

16 years agoResolve merge conflicts
Max Laier [Tue, 16 Oct 2007 02:07:55 +0000 (02:07 +0000)]
Resolve merge conflicts

Approved by: re (kensmith)
Obtained from: tcpdump.org

16 years agoThis commit was generated by cvs2svn to compensate for changes in r172677,
Max Laier [Tue, 16 Oct 2007 02:02:02 +0000 (02:02 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172677,
which included commits to RCS files with non-trunk default branches.

16 years agoImport of libpcap v0.9.8
Max Laier [Tue, 16 Oct 2007 02:02:02 +0000 (02:02 +0000)]
Import of libpcap v0.9.8

16 years agoMake the updatedb script installed as /usr/libexec/locate.updatedb
Stefan Eßer [Mon, 15 Oct 2007 22:09:19 +0000 (22:09 +0000)]
Make the updatedb script installed as /usr/libexec/locate.updatedb
inspect all local file systems, not only ufs and ext2fs. A number
of local file systems has been added over time, and at least zfs
has the potential to become a popular choice. Without this change
a ZFS root file system causes the script to ignore all file-systems
and leads to an empty locate db. (An alternative is to add all the
relevant file systems individually, which means that at least zfs,
xfs, ntfs, ntfs-3g, msdosfs should be added, probably more).

16 years agoMake ukbd_getc respect non-blocking behavior if one is requested. Change
Alexander Kabaev [Mon, 15 Oct 2007 20:37:34 +0000 (20:37 +0000)]
Make ukbd_getc respect non-blocking behavior if one is requested. Change
ukbd_poll to mark this keyboard instance as polling before calling
usbd_set_polling at USB level. usbd_set_polling runs softintr before
returning, stealing our input and making consequent polling getchar
kind of pointless.

This allows USB keyboards to coexist peacefully with serial console in DDB
and other contexts where polling is used.

MFC after: 1 week

16 years agoBackout sensors framework.
Alexander Leidinger [Mon, 15 Oct 2007 20:00:24 +0000 (20:00 +0000)]
Backout sensors framework.

Requested by: phk
Discussed on: cvs-all

16 years agofix a bug of RX routines that can't process multi-frame transactions
Sam Leffler [Mon, 15 Oct 2007 17:39:47 +0000 (17:39 +0000)]
fix a bug of RX routines that can't process multi-frame transactions
properly due to the shortage of the RX buffer size.  In a case of zyd
devices, up to 3 frames can be combined in an USB transaction.  So, RX
buffer should be at least ((MCLBYTES + extra structs) * 3)

Submitted by: Weongyo Jeong <weongyo.jeong@gmail.com>
MFC after: 3 days

16 years agoCorrect calculation of aac_sg_tablesize.
Ed Maste [Mon, 15 Oct 2007 17:34:58 +0000 (17:34 +0000)]
Correct calculation of aac_sg_tablesize.

Obtained from: Adaptec, via driver b11669

16 years agoThis commit was generated by cvs2svn to compensate for changes in r172668,
Mark Peek [Mon, 15 Oct 2007 16:54:07 +0000 (16:54 +0000)]
This commit was generated by cvs2svn to compensate for changes in r172668,
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:
Mark Peek [Mon, 15 Oct 2007 16:54:07 +0000 (16:54 +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 agoOops, convert a tsleep() to a msleep() that was missed when adding locking
John Baldwin [Mon, 15 Oct 2007 16:18:20 +0000 (16:18 +0000)]
Oops, convert a tsleep() to a msleep() that was missed when adding locking
to this driver.

Reported by: Michael Butler : imb of protected-networks net

16 years agoImport two vendor fixes from tcsh-6.15.01 for MFC to 7.0. The fixes are:
Mark Peek [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 agoThis commit was generated by cvs2svn to compensate for changes in r172665,
Mark Peek [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 agoOptimize for size on pc98. It enables to boot a kernel again.
Yoshihiro Takahashi [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
Ed Maste [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.
Andrey A. Chernov [Mon, 15 Oct 2007 09:51:30 +0000 (09:51 +0000)]
Add comment explaining __mb_sb_limit trick here.

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

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

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

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

16 years agoIntroduce FreeBSD 8.0 to mdoc(7).
Ruslan Ermilov [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.
Lars Engels [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:
Ed Maste [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
Ruslan Ermilov [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)
Ruslan Ermilov [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.
Ruslan Ermilov [Sun, 14 Oct 2007 19:20:59 +0000 (19:20 +0000)]
Sort.

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

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

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

16 years agoFix mdoc in last commit.
Ruslan Ermilov [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.
Andrew Thompson [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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 GOTO [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
Alexander Leidinger [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.
Alexander Leidinger [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.
Alexander Leidinger [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,
Andrey A. Chernov [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
Alexander Motin [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
Alexander Motin [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 Konovalov [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 Konovalov [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
Andrew Thompson [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.
Mike Pritchard [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
Andrey A. Chernov [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
Christian S.J. Peron [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 Leffler [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
Andrey A. Chernov [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.
Daniel Eischen [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.
Dag-Erling Smørgrav [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
Olivier Houchard [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.
Olivier Houchard [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
Olivier Houchard [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.
Olivier Houchard [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
Dag-Erling Smørgrav [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 L. B. Nielsen [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.
Joseph Koshy [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
Ruslan Ermilov [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().
Mitsuru 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.
Pyun YongHyeon [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.
Scott Long [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.
Scott Long [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
John Baldwin [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.
Mohan Srinivasan [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,
Xin LI [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
Xin LI [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.
David E. O'Brien [Fri, 12 Oct 2007 18:16:35 +0000 (18:16 +0000)]
Adjust HISTORY.

16 years agostyle.Makefile(5)
David E. O'Brien [Fri, 12 Oct 2007 18:15:40 +0000 (18:15 +0000)]
style.Makefile(5)

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

16 years agostyle.Makefile(5)
David E. O'Brien [Fri, 12 Oct 2007 18:03:00 +0000 (18:03 +0000)]
style.Makefile(5)

16 years agoWelcome FreeBSD 8.
David E. O'Brien [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
Paul Saab [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
Scott Long [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
Scott Long [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.
Scott Long [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.
Scott Long [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.
Maksim Yevmenkin [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.
Bruce A. Mah [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
Christian S.J. Peron [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.
Christian S.J. Peron [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
Christian S.J. Peron [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
Christian S.J. Peron [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
Christian S.J. Peron [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
Konstantin Belousov [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.
Ruslan Ermilov [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.
Andrew Thompson [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)
Takanori Watanabe [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 Lodder [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