]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
17 years agoThis commit was generated by cvs2svn to compensate for changes in r168463,
Dag-Erling Smørgrav [Sat, 7 Apr 2007 13:36:53 +0000 (13:36 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168463,
which included commits to RCS files with non-trunk default branches.

17 years agoMerge from upstream:
Dag-Erling Smørgrav [Sat, 7 Apr 2007 13:36:53 +0000 (13:36 +0000)]
Merge from upstream:

------------------------------------------------------------------------
r380 | des | 2006-03-14 15:42:09 +0100 (Tue, 14 Mar 2006) | 1 line

Fix signedness mismatch, and use an explicit cast when calling ctype functions.
------------------------------------------------------------------------

17 years agoNew release notes:
Christian Brueffer [Sat, 7 Apr 2007 11:53:22 +0000 (11:53 +0000)]
New release notes:
- PIM option now included in MROUTING
- MSI support + MFC
- TCP_DROP_SYNFIN compiled in by default
- FICL updated to 3.03
- icee driver added
- net.link.tap.up_on_open sysctl added
- ZFS support added

Updated release notes:
- ncurses 5.6-20061217 MFC noted
- mpsave_vfs=1 on powerpc

17 years agoAdd missing mutex_init() which was causing assertion panic when on clone
Pawel Jakub Dawidek [Sat, 7 Apr 2007 11:04:37 +0000 (11:04 +0000)]
Add missing mutex_init() which was causing assertion panic when on clone
destruction.

Reported by: kris

17 years agoPrevent the usage of an uninitialized variable: do not accept
Paolo Pisati [Sat, 7 Apr 2007 09:52:36 +0000 (09:52 +0000)]
Prevent the usage of an uninitialized variable: do not accept
StartMediaTx message before an OpnRcvChnAck message was received.

Reviewed by: glebius
Approved by: glebius (mentor)
MFC after:      3 days
Found with: Coverity Prevent(tm)
CID: 498

17 years agoSilence Coverity about an unused variable.
Paolo Pisati [Sat, 7 Apr 2007 09:47:39 +0000 (09:47 +0000)]
Silence Coverity about an unused variable.

Reviewed by:  glebius
Approved by:  glebius (mentor)
MFC after:  3 days
CID:  538

17 years agoAdded the IPLware 3.33 support.
KATO Takenori [Sat, 7 Apr 2007 08:37:04 +0000 (08:37 +0000)]
Added the IPLware 3.33 support.
  - Added magic numbers to pretend the NEC original program version
    2.70.
  - Added string display routine with Shift-JIS code support.
  - Added three nop instructions at start1 in start.s since the
    installaer of the IPLware put 'call $0x09ab' instruction.
  - Put the near return instruction at 0x9ab in selector.s.

Since the Shit-JIS display routine must be located at 0x1243, the
linker script file (ldscript) is applied.

17 years agoFix the output of percentage figures, which mistakenly were
Diomidis Spinellis [Sat, 7 Apr 2007 06:38:19 +0000 (06:38 +0000)]
Fix the output of percentage figures, which mistakenly were
the corresponding ratios.

PR: bin/111329
MFC after: 10 days

17 years agoSimplify the logic for handling header read
Tim Kientzle [Sat, 7 Apr 2007 05:56:40 +0000 (05:56 +0000)]
Simplify the logic for handling header read
errors.

17 years agoEnable 'ar' support; hook it up to the build and
Tim Kientzle [Sat, 7 Apr 2007 05:54:23 +0000 (05:54 +0000)]
Enable 'ar' support; hook it up to the build and
enable it with _read_support_format_all().

17 years agoClarification: Point people to archive_read_data(), which
Tim Kientzle [Sat, 7 Apr 2007 05:53:11 +0000 (05:53 +0000)]
Clarification: Point people to archive_read_data(), which
should be used instead of archive_read_data_into_buffer().

17 years agoback out last change
Kip Macy [Sat, 7 Apr 2007 05:09:40 +0000 (05:09 +0000)]
back out last change

Requested by: ru

17 years agoUpdate the man page a bit- also to reflect that testing
Matt Jacob [Sat, 7 Apr 2007 04:01:00 +0000 (04:01 +0000)]
Update the man page a bit- also to reflect that testing
that Jun Kuriyama did to verify the PCI-Express (Apple
Fibre Channel) HBA.

MFC after: 3 days

17 years agoWhen copying data from one archive to another, only set the error
Colin Percival [Sat, 7 Apr 2007 03:37:59 +0000 (03:37 +0000)]
When copying data from one archive to another, only set the error
message in the reader to the error message from the writer if the
error which occurred was in the writer.  This avoids error messages
of "Empty error message" when extracting truncated archives.

17 years agoDescribe PT_GETLWPLIST's arguments.
Ed Maste [Sat, 7 Apr 2007 03:16:23 +0000 (03:16 +0000)]
Describe PT_GETLWPLIST's arguments.

17 years agoFix a bug for over 4GB media.
Hidetoshi Shimokawa [Sat, 7 Apr 2007 02:52:13 +0000 (02:52 +0000)]
Fix a bug for over 4GB media.

MFC after: 3 days

17 years agoAdd a small test program for the additional socket options which
Bruce M Simpson [Fri, 6 Apr 2007 23:39:17 +0000 (23:39 +0000)]
Add a small test program for the additional socket options which
RFC 3678 (Source-specific Multicast API) brings to FreeBSD.

17 years agoRemove XXX comment that changes to file fields should be protected with
Robert Watson [Fri, 6 Apr 2007 23:31:30 +0000 (23:31 +0000)]
Remove XXX comment that changes to file fields should be protected with
the file lock rather than the filedesc lock: I fixed this in the last
revision.

Spotted by: kris

17 years agopc98 boot2 is compiled with _KERNEL defined, and that makes non-static
Alexander Kabaev [Fri, 6 Apr 2007 20:50:24 +0000 (20:50 +0000)]
pc98 boot2 is compiled with _KERNEL defined, and that makes non-static
bootinfo variable declaration visible. It conflicts with static
declaration in this file. Declare variable as globally visible in
order to resolve the conflict.

17 years ago__p_rcode_syms is declared as external in resolv.conf, so it cannot be
Alexander Kabaev [Fri, 6 Apr 2007 19:45:17 +0000 (19:45 +0000)]
__p_rcode_syms is declared as external in resolv.conf, so it cannot be
redeclared as static in res_debug.c.

Make __p_rcode_syms global and add it to Symbol map. The rest of
__p_??_syms are already global.

Choice of FBSD_1.0 version for these debug symbols seems strange and
should be revisited before symbol  versioning is enabled for libc.so.7.

17 years agoFix kernel module dependency. linprocfs depends on sysvmsg and sysvsem.
Jung-uk Kim [Fri, 6 Apr 2007 18:15:56 +0000 (18:15 +0000)]
Fix kernel module dependency.  linprocfs depends on sysvmsg and sysvsem.

Submitted by: nork

17 years agoAdd the PG_NX support for i386/PAE.
Ruslan Ermilov [Fri, 6 Apr 2007 18:15:03 +0000 (18:15 +0000)]
Add the PG_NX support for i386/PAE.

Reviewed by: alc

17 years agoThis commit was generated by cvs2svn to compensate for changes in r168433,
Alexander Kabaev [Fri, 6 Apr 2007 17:43:46 +0000 (17:43 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168433,
which included commits to RCS files with non-trunk default branches.

17 years agoImport two binutils header files from FSF 2.15 branch.
Alexander Kabaev [Fri, 6 Apr 2007 17:43:46 +0000 (17:43 +0000)]
Import two binutils header files from FSF 2.15 branch.
These fix binutils compilation on i386/amd64 with GCC 4.1 and
have no other effect.

No response by: obrien

17 years agoAdd 64bit addressing support to SiI 3132/3124
Søren Schmidt [Fri, 6 Apr 2007 17:36:35 +0000 (17:36 +0000)]
Add 64bit addressing support to SiI 3132/3124

17 years agoRemove debug gunk.
Søren Schmidt [Fri, 6 Apr 2007 16:21:34 +0000 (16:21 +0000)]
Remove debug gunk.

17 years agoAdd support for 64bit addressing to AHCI and Marvell controllers.
Søren Schmidt [Fri, 6 Apr 2007 16:18:59 +0000 (16:18 +0000)]
Add support for 64bit addressing to AHCI and Marvell controllers.
Munged into ATA shape and Marvell specifics my yours truely.

Submitted by: jhb

17 years agoRemove conflicting extern decralaration for mboxfile variable.
Alexander Kabaev [Fri, 6 Apr 2007 15:51:35 +0000 (15:51 +0000)]
Remove conflicting extern decralaration for mboxfile variable.
It is defined as static in implementation file.

17 years agogetblocksize expects pointer to long as a second argument, not
Alexander Kabaev [Fri, 6 Apr 2007 15:36:43 +0000 (15:36 +0000)]
getblocksize expects pointer to long as a second argument, not
a pointer to u_long.

17 years agonfe(4) supports polling.
Christian Brueffer [Fri, 6 Apr 2007 14:25:14 +0000 (14:25 +0000)]
nfe(4) supports polling.

17 years agoSysctl description is not a format string, so one % is enough.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 12:53:54 +0000 (12:53 +0000)]
Sysctl description is not a format string, so one % is enough.

17 years agoMFi386: add libkern/memset.c
Yoshihiro Takahashi [Fri, 6 Apr 2007 11:30:31 +0000 (11:30 +0000)]
MFi386: add libkern/memset.c

17 years agosort.
Yoshihiro Takahashi [Fri, 6 Apr 2007 11:29:52 +0000 (11:29 +0000)]
sort.

17 years agoUse strcasecmp() from libkern.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 11:21:01 +0000 (11:21 +0000)]
Use strcasecmp() from libkern.

17 years agoImplement a work-around for poor ggate write performance.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 11:19:48 +0000 (11:19 +0000)]
Implement a work-around for poor ggate write performance.

17 years agoWe have strcasecmp() in libkern now.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 11:18:57 +0000 (11:18 +0000)]
We have strcasecmp() in libkern now.

17 years agoRemove temporary files when there are no longer needed.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 11:16:11 +0000 (11:16 +0000)]
Remove temporary files when there are no longer needed.

17 years agoClaim maintainership of ZFS.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 10:57:15 +0000 (10:57 +0000)]
Claim maintainership of ZFS.

17 years agoOops, keep things sorted.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 10:33:06 +0000 (10:33 +0000)]
Oops, keep things sorted.

Found by: ru

17 years agostyle(9):
Yaroslav Tykhiy [Fri, 6 Apr 2007 08:43:30 +0000 (08:43 +0000)]
style(9):
Use a single space before $FreeBSD$ to avoid terminal line overflow.

Pointed out by: ru (The All-Seeing Eye)

17 years agomake modules compile without updating etc
Kip Macy [Fri, 6 Apr 2007 06:05:45 +0000 (06:05 +0000)]
make modules compile without updating etc

17 years agoBe more conservative and compile libkern/memset.c only on architectures
Alexander Kabaev [Fri, 6 Apr 2007 04:51:50 +0000 (04:51 +0000)]
Be more conservative and compile libkern/memset.c only on architectures
than need it. These are i386, amd64 and powerpc so far.

17 years agoBump __FreeBSD_version on ZFS import.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 02:33:43 +0000 (02:33 +0000)]
Bump __FreeBSD_version on ZFS import.

Requested by: nork

17 years agoAdd ZFS periodic scripts that monitors status of ZFS pools.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 02:33:06 +0000 (02:33 +0000)]
Add ZFS periodic scripts that monitors status of ZFS pools.

Submitted by: des

17 years agoRegen.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 02:27:20 +0000 (02:27 +0000)]
Regen.

17 years ago- Add ZFS startup script.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 02:27:02 +0000 (02:27 +0000)]
- Add ZFS startup script.

Submitted by: des

- When starting mountd(8) and ZFS is enabled, add /etc/zfs/exports file.
- Update rc.conf(5).

17 years agoConnect ZFS to the build.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 02:13:30 +0000 (02:13 +0000)]
Connect ZFS to the build.

17 years agoIf we've encountered unrecognized chipset don't access hardware
Pyun YongHyeon [Fri, 6 Apr 2007 02:02:07 +0000 (02:02 +0000)]
If we've encountered unrecognized chipset don't access hardware
anymore. Previously it tried to access interrupt register to disable
interrupts which could result in hang if the hardware was not
properly initialized by system BIOS/ACPI.

Tested by: Benjamin Hansmann (benjamin.hansmann AT rub dot de)
MFC after: 3 days

17 years agoAdd new libraries. We may want to rename libumem to not colide with
Pawel Jakub Dawidek [Fri, 6 Apr 2007 01:45:23 +0000 (01:45 +0000)]
Add new libraries. We may want to rename libumem to not colide with
ports/devel/umem.

17 years agoAdd Makefile for zfs.ko kernel module.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 01:35:16 +0000 (01:35 +0000)]
Add Makefile for zfs.ko kernel module.

17 years agoAdd ZFS-specific privileges.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 01:11:39 +0000 (01:11 +0000)]
Add ZFS-specific privileges.

17 years agoPlease welcome ZFS - The last word in file systems.
Pawel Jakub Dawidek [Fri, 6 Apr 2007 01:09:06 +0000 (01:09 +0000)]
Please welcome ZFS - The last word in file systems.

ZFS file system was ported from OpenSolaris operating system. The code in under
CDDL license.

I'd like to thank all SUN developers that created this great piece of software.

Supported by: Wheel LTD (http://www.wheel.pl/)
Supported by: The FreeBSD Foundation (http://www.freebsdfoundation.org/)
Supported by: Sentex (http://www.sentex.net/)

17 years agoAdd local ptototype for memset function.
Alexander Kabaev [Fri, 6 Apr 2007 00:06:26 +0000 (00:06 +0000)]
Add local ptototype for memset function.

17 years agoallprison mutex was converted to sx(9) lock.
Pawel Jakub Dawidek [Thu, 5 Apr 2007 23:32:32 +0000 (23:32 +0000)]
allprison mutex was converted to sx(9) lock.

17 years agoImplement functionality I called 'jail services'.
Pawel Jakub Dawidek [Thu, 5 Apr 2007 23:19:13 +0000 (23:19 +0000)]
Implement functionality I called 'jail services'.

It may be used for external modules to attach some data to jail's in-kernel
structure.

- Change allprison_mtx mutex to allprison_sx sx(9) lock.
  We will need to call external functions while holding this lock, which may
  want to allocate memory.
  Make use of the fact that this is shared-exclusive lock and use shared
  version when possible.
- Implement the following functions:
  prison_service_register() - registers a service that wants to be noticed
when a jail is created and destroyed
  prison_service_deregister() - deregisters service
  prison_service_data_add() - adds service-specific data to the jail structure
  prison_service_data_get() - takes service-specific data from the jail
structure
  prison_service_data_del() - removes service-specific data from the jail
structure

Reviewed by: rwatson

17 years agoAdd trivial MI memset function implementation. GCC mandates the
Alexander Kabaev [Thu, 5 Apr 2007 22:02:39 +0000 (22:02 +0000)]
Add trivial MI memset function implementation. GCC mandates the
existence of this function as a linkable symbol in standalone
configurations and existing inline memcpy from libkern.h fails
this requirement.

17 years agoMake prison_find() globally accessible.
Pawel Jakub Dawidek [Thu, 5 Apr 2007 21:34:54 +0000 (21:34 +0000)]
Make prison_find() globally accessible.

17 years agoBump date.
Pawel Jakub Dawidek [Thu, 5 Apr 2007 21:17:52 +0000 (21:17 +0000)]
Bump date.

17 years agoImplement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in
Pawel Jakub Dawidek [Thu, 5 Apr 2007 21:10:53 +0000 (21:10 +0000)]
Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in
OpenSolaris. For more information please refer to:

http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data

17 years agoAdd security.jail.mount_allowed sysctl, which allows to mount and
Pawel Jakub Dawidek [Thu, 5 Apr 2007 21:03:05 +0000 (21:03 +0000)]
Add security.jail.mount_allowed sysctl, which allows to mount and
unmount jail-friendly file systems from within a jail.
Precisely it grants PRIV_VFS_MOUNT, PRIV_VFS_UNMOUNT and
PRIV_VFS_MOUNT_NONUSER privileges for a jailed super-user.
It is turned off by default.

A jail-friendly file system is a file system which driver registers
itself with VFCF_JAIL flag via VFS_SET(9) API.
The lsvfs(1) command can be used to see which file systems are
jail-friendly ones.

There currently no jail-friendly file systems, ZFS will be the first one.
In the future we may consider marking file systems like nullfs as
jail-friendly.

Reviewed by: rwatson

17 years agoWhen KVA is exhausted, try the vm_lowmem event for the last time before
Pawel Jakub Dawidek [Thu, 5 Apr 2007 20:52:51 +0000 (20:52 +0000)]
When KVA is exhausted, try the vm_lowmem event for the last time before
panicing. This helps a lot in ZFS stability.

17 years agoFix a problem for file systems that don't implement VOP_BMAP() operation.
Pawel Jakub Dawidek [Thu, 5 Apr 2007 20:49:46 +0000 (20:49 +0000)]
Fix a problem for file systems that don't implement VOP_BMAP() operation.

The problem is this: vm_fault_additional_pages() calls vm_pager_has_page(),
which calls vnode_pager_haspage(). Now when VOP_BMAP() returns an error (eg.
EOPNOTSUPP), vnode_pager_haspage() returns TRUE without initializing 'before'
and 'after' arguments, so we have some accidental values there. This bascially
was causing this condition to be meet:

if ((rahead + rbehind) >
    ((cnt.v_free_count + cnt.v_cache_count) - cnt.v_free_reserved)) {
pagedaemon_wakeup();
[...]
}

(we have some random values in rahead and rbehind variables)

I'm not entirely sure this is the right fix, maybe we should just return FALSE
in vnode_pager_haspage() when VOP_BMAP() fails?

alc@ knows about this problem, maybe he will be able to come up with a better
fix if this is not the right one.

17 years agoHide lbolt under _SOLARIS_C_SOURCE in preparation for ZFS import.
Pawel Jakub Dawidek [Thu, 5 Apr 2007 20:40:47 +0000 (20:40 +0000)]
Hide lbolt under _SOLARIS_C_SOURCE in preparation for ZFS import.
I really couldn't avoid this with preprocessor magic.

17 years ago(bread): For a read that is contained entirely within a block, never copy
Thomas Quinot [Thu, 5 Apr 2007 20:31:23 +0000 (20:31 +0000)]
(bread): For a read that is contained entirely within a block, never copy
 out more than size bytes to the caller's buffer.

PR: bin/111191
Reviewed by: pb
MFC after: 1 week

17 years agoAdd PCI IDs for the HP RMP3 serial port. This is often used as
Marcel Moolenaar [Thu, 5 Apr 2007 19:15:46 +0000 (19:15 +0000)]
Add PCI IDs for the HP RMP3 serial port. This is often used as
the serial console.

MFC after: 1 week

17 years agoRemove extern struct pcb stoppcbs[] declaration from this file.
Alexander Kabaev [Thu, 5 Apr 2007 18:34:11 +0000 (18:34 +0000)]
Remove  extern struct pcb stoppcbs[] declaration from this file.
It breaks GCC 4.1 compiles and does not appear to be required.

17 years agoAdd an important detail to paragraph 12: the range is reset only if its
Yaroslav Tykhiy [Thu, 5 Apr 2007 17:12:01 +0000 (17:12 +0000)]
Add an important detail to paragraph 12: the range is reset only if its
second address is a line number.

17 years agoMove archive_read_data_into_buffer into archive_read.c, simplify its
Colin Percival [Thu, 5 Apr 2007 15:51:19 +0000 (15:51 +0000)]
Move archive_read_data_into_buffer into archive_read.c, simplify its
implementation, and mark it as deprecated.  It will be removed entirely
in libarchive 3.0 (in FreeBSD 8.0?) but there's no reason for anyone to
use it instead of archive_read_data.

Approved by: kientzle

17 years agoWhitespace nits.
Dag-Erling Smørgrav [Thu, 5 Apr 2007 13:43:00 +0000 (13:43 +0000)]
Whitespace nits.

17 years agoReflect the change in rev. 1.44 of process.c.
Yaroslav Tykhiy [Thu, 5 Apr 2007 13:31:17 +0000 (13:31 +0000)]
Reflect the change in rev. 1.44 of process.c.

Add $FreeBSD$ to please commit_prep.pl.

17 years agos/IPFW(4)/ipfw(4) to match the actual man page name.
Robert Watson [Thu, 5 Apr 2007 10:44:25 +0000 (10:44 +0000)]
s/IPFW(4)/ipfw(4) to match the actual man page name.

Submitted by: ru

17 years agoUpdate postfix MTA selection code to point at postfix 2.4 which is the
Simon L. B. Nielsen [Thu, 5 Apr 2007 10:23:30 +0000 (10:23 +0000)]
Update postfix MTA selection code to point at postfix 2.4 which is the
current version.

MFC after: 3 days

17 years agoIf a thread who's name is being set is not the current thread, use macros
David Xu [Thu, 5 Apr 2007 07:20:31 +0000 (07:20 +0000)]
If a thread who's name is being set is not the current thread, use macros
THR_THREAD_LOCK and THR_THREAD_UNLOCK instead, this should fix wrong
lock level problem.

Bug reported by: ed dot maste at gmail dot com

17 years agoMore corrections from Joerg Sonnenberger.
Tim Kientzle [Thu, 5 Apr 2007 05:22:13 +0000 (05:22 +0000)]
More corrections from Joerg Sonnenberger.

17 years agoStyle fixes from Joerg Sonnenberger: use correct types,
Tim Kientzle [Thu, 5 Apr 2007 05:20:13 +0000 (05:20 +0000)]
Style fixes from Joerg Sonnenberger:  use correct types,
spell lint(1) comments correctly.

17 years agoFrom Joerg Sonnenberger: Fix a number of style gaffes,
Tim Kientzle [Thu, 5 Apr 2007 05:18:16 +0000 (05:18 +0000)]
From Joerg Sonnenberger:  Fix a number of style gaffes,
including type puns and avoidable casts.

17 years agoWordsmithing.
Tim Kientzle [Thu, 5 Apr 2007 05:07:53 +0000 (05:07 +0000)]
Wordsmithing.

17 years agoAvoid using intermediate variables by just comparing between
Xin LI [Thu, 5 Apr 2007 02:07:33 +0000 (02:07 +0000)]
Avoid using intermediate variables by just comparing between
two values, the latter does not tend to have sign extension
and/or overflow bugs, and makes the code more obvious.

While I'm there, make use of a macro which is derived from
bin/ps/ps.c: ps_compat() to improve the readability of the
code.

Suggested by: bde
MFC after: 1 week

17 years agoFix mb_ctor_clust and mb_dtor_clust to reference the appropriate zone,
Kip Macy [Wed, 4 Apr 2007 21:27:01 +0000 (21:27 +0000)]
Fix mb_ctor_clust and mb_dtor_clust to reference the appropriate zone,
simplify setting refcnt

Reviewed by: andre, rwatson, and glebius
MFC after: 3 days

17 years agoThis commit was generated by cvs2svn to compensate for changes in r168371,
Andrew Thompson [Wed, 4 Apr 2007 21:17:33 +0000 (21:17 +0000)]
This commit was generated by cvs2svn to compensate for changes in r168371,
which included commits to RCS files with non-trunk default branches.

17 years agoPull in latest print-stp.c from vendor
Andrew Thompson [Wed, 4 Apr 2007 21:17:33 +0000 (21:17 +0000)]
Pull in latest print-stp.c from vendor

17 years agoAdd myself. Include wollman in addition to billf, because Garrett spent a
Garance A Drosehn [Wed, 4 Apr 2007 20:36:13 +0000 (20:36 +0000)]
Add myself.  Include wollman in addition to billf, because Garrett spent a
lot of time reviewing all my initial updates to lpr & friends.

17 years agoAdd INP_INFO_UNLOCK_ASSERT() and use it in tcp_input(). Also add some
Andre Oppermann [Wed, 4 Apr 2007 18:30:16 +0000 (18:30 +0000)]
Add INP_INFO_UNLOCK_ASSERT() and use it in tcp_input().  Also add some
further INP_INFO_WLOCK_ASSERT() while there.

17 years agoMove last tcpcb initialization for the inbound connection case from
Andre Oppermann [Wed, 4 Apr 2007 16:13:45 +0000 (16:13 +0000)]
Move last tcpcb initialization for the inbound connection case from
tcp_input() to syncache_socket() where it belongs and the majority
of it already happens.

The "tp->snd_up = tp->snd_una" is removed as it is done with the
tcp_sendseqinit() macro a few lines earlier.

17 years agoA dash as an argument to the -f option will now cause lastcomm to
Diomidis Spinellis [Wed, 4 Apr 2007 16:04:58 +0000 (16:04 +0000)]
A dash as an argument to the -f option will now cause lastcomm to
read data from the standard input.  This allows tail -f to pipe
data to lastcomm, and thereby real-time monitoring of executed
commands.  The manual page includes the exact incantation.

MFC after: 2 weeks

17 years agoSome local and style(9) cleanups.
Andre Oppermann [Wed, 4 Apr 2007 15:30:31 +0000 (15:30 +0000)]
Some local and style(9) cleanups.

17 years agoRetire unused TCP_SACK_DEBUG.
Andre Oppermann [Wed, 4 Apr 2007 14:44:15 +0000 (14:44 +0000)]
Retire unused TCP_SACK_DEBUG.

17 years agoIn tcp_dooptions() skip over SACK options if it is a SYN segment.
Andre Oppermann [Wed, 4 Apr 2007 14:39:49 +0000 (14:39 +0000)]
In tcp_dooptions() skip over SACK options if it is a SYN segment.

17 years agocipher(3) is gone.
Ceri Davies [Wed, 4 Apr 2007 14:04:55 +0000 (14:04 +0000)]
cipher(3) is gone.

MFC after: 3 days

17 years agoAdd rpc_statd_flags and rpc_lockd_flags options to allow options to be
Matteo Riondato [Wed, 4 Apr 2007 13:16:18 +0000 (13:16 +0000)]
Add rpc_statd_flags and rpc_lockd_flags options to allow options to be
passed to rpc.statd and rpc.lockd

MFC after: 1 week

17 years agoAdd myself and my mentor -> mentee relationship.
Martin Matuska [Wed, 4 Apr 2007 12:07:49 +0000 (12:07 +0000)]
Add myself and my mentor -> mentee relationship.

Approved by: garga (mentor)

17 years agoFix typo FILESYSTEM -> FILESYSTEMS
Andrey A. Chernov [Wed, 4 Apr 2007 11:11:33 +0000 (11:11 +0000)]
Fix typo FILESYSTEM -> FILESYSTEMS
This bug prevents local scripts to start up

17 years agoThe names of the unknown soldiers still are kept in the dusty
Yaroslav Tykhiy [Wed, 4 Apr 2007 10:26:29 +0000 (10:26 +0000)]
The names of the unknown soldiers still are kept in the dusty
Handbook for 2.1.7-RELEASE.

17 years agoAdmit my infertility in public: I had the honour of being mentored by jkh,
Yaroslav Tykhiy [Wed, 4 Apr 2007 10:17:34 +0000 (10:17 +0000)]
Admit my infertility in public: I had the honour of being mentored by jkh,
but I've had no mentees of my own yet.

17 years agoReplace custom file descriptor array sleep lock constructed using a mutex
Robert Watson [Wed, 4 Apr 2007 09:11:34 +0000 (09:11 +0000)]
Replace custom file descriptor array sleep lock constructed using a mutex
and flags with an sxlock.  This leads to a significant and measurable
performance improvement as a result of access to shared locking for
frequent lookup operations, reduced general overhead, and reduced overhead
in the event of contention.  All of these are imported for threaded
applications where simultaneous access to a shared file descriptor array
occurs frequently.  Kris has reported 2x-4x transaction rate improvements
on 8-core MySQL benchmarks; smaller improvements can be expected for many
workloads as a result of reduced overhead.

- Generally eliminate the distinction between "fast" and regular
  acquisisition of the filedesc lock; the plan is that they will now all
  be fast.  Change all locking instances to either shared or exclusive
  locks.

- Correct a bug (pointed out by kib) in fdfree() where previously msleep()
  was called without the mutex held; sx_sleep() is now always called with
  the sxlock held exclusively.

- Universally hold the struct file lock over changes to struct file,
  rather than the filedesc lock or no lock.  Always update the f_ops
  field last. A further memory barrier is required here in the future
  (discussed with jhb).

- Improve locking and reference management in linux_at(), which fails to
  properly acquire vnode references before using vnode pointers.  Annotate
  improper use of vn_fullpath(), which will be replaced at a future date.

In fcntl(), we conservatively acquire an exclusive lock, even though in
some cases a shared lock may be sufficient, which should be revisited.
The dropping of the filedesc lock in fdgrowtable() is no longer required
as the sxlock can be held over the sleep operation; we should consider
removing that (pointed out by attilio).

Tested by: kris
Discussed with: jhb, kris, attilio, jeff

17 years agoAdd myself.
Alexey Dokuchaev [Wed, 4 Apr 2007 07:30:34 +0000 (07:30 +0000)]
Add myself.

17 years agoUse *_EMPTY macros when appropriate.
Xin LI [Wed, 4 Apr 2007 07:29:53 +0000 (07:29 +0000)]
Use *_EMPTY macros when appropriate.

17 years agoSort as requested.
Ruslan Ermilov [Wed, 4 Apr 2007 06:33:37 +0000 (06:33 +0000)]
Sort as requested.

17 years agoMake DMA tags per-queue to facilate parallel mappings
Kip Macy [Wed, 4 Apr 2007 05:29:18 +0000 (05:29 +0000)]
Make DMA tags per-queue to facilate parallel mappings
Defer mbuf allocation and initialization until after data has already been
received in a cluster

This reduces cpu utilization somewhat, but it only improves the rx path.
Recent changes to TCP appear to make us rate limited by the TX path.

This is the first step in reducing mbuf management overhead for manipulating
clusters.

MFC after: 3 days

17 years agom_extadd does not appear to do the right thing for the case of clusters
Kip Macy [Wed, 4 Apr 2007 04:08:57 +0000 (04:08 +0000)]
m_extadd does not appear to do the right thing for the case of clusters
allocated from UMA - add m_cljset to correspond to m_cljget

MFC after: 3 days