summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Fix for a SACK bug where the very last segment retransmittedjayanth2004-07-261-1/+1
| | | | | from the SACK scoreboard could result in the next (untransmitted) segment to be skipped.
* compare pointer against NULL, not 0jmg2004-07-261-2/+2
| | | | | | | | when inpcb is NULL, this is no longer invalid since jlemon added the tcp_twstart function... this prevents close "failing" w/ EINVAL when it really was successful... Reviewed by: jeremy (NetBSD)
* Implement the protection check required by the pmap_extract_and_hold()alc2004-07-263-9/+18
| | | | | | specification. Reviewed and tested by: grehan@
* Improve geom(8)'s 'list' command to show geoms and their providers andpjd2004-07-263-59/+69
| | | | consumers. Teach STRIPE, CONCAT and NOP classes about this improvement.
* Change naming scheme from /dev/<name>.stripe to /dev/stripe/<name>.pjd2004-07-262-24/+19
|
* Change naming scheme from /dev/<name>.concat to /dev/concat/<name>.pjd2004-07-262-16/+14
|
* M_WAITOK is ok here, while I'm using M_WAITOK later in this function.pjd2004-07-261-8/+1
|
* M_WAITOK is ok here, while I'm using M_WAITOK later in this function.pjd2004-07-261-8/+1
|
* Stop tinkering with the parent's VLAN_MTU capability.yar2004-07-261-27/+7
| | | | | | | | | | | | | | | | | | Now it is user-controlled through ifconfig(8). The former ``automagic'' way of operation created more trouble than good. First, VLAN_MTU consumers other than vlan(4) had appeared, e.g., ng_vlan(4). Second, there was no way to disable VLAN_MTU manually if it were causing trouble, e.g., data corruption. Dropping the ``automagic'' should be completely invisible to the user since a) all the drivers supporting VLAN_MTU have it enabled by default, and in the first place b) there is only one driver that can really toggle VLAN_MTU in the hardware under its control (it's fxp(4), to which I added VLAN_MTU controls to illustrate the principle.)
* In revision 1.228, I accidentally broke the "total number of processes incperciva2004-07-261-1/+2
| | | | | | | | | | | | the system" resource limit code: When checking if the caller has superuser privileges, we should be checking the *real* user, not the *effective* user. (In general, resource limiting is done based on the real user, in order to avoid resource-exhaustion-by-setuid-program attacks.) Now that a SUSER_RUID flag to suser_cred exists, use it here to return this code to its correct behaviour. Pointed out by: rwatson
* Save the vinum config back to disk after syncing two plexes.le2004-07-261-0/+1
|
* Rename suser_cred()'s PRISON_ROOT flag to SUSER_ALLOWJAIL. This iscperciva2004-07-2632-109/+110
| | | | | | | | | | | somewhat clearer, but more importantly allows for a consistent naming scheme for suser_cred flags. The old name is still defined, but will be removed in a few days (unless I hear any complaints...) Discussed with: rwatson, scottl Requested by: jhb
* Don't force an immediate probe/attach for all devices when compiled withnjl2004-07-261-3/+0
| | | | | | | | ACPI_DEBUG. This upset the ordering that acpi_probe_order() was meant to provide, causing devices to attach before the sysresource object. This debugging feature has been unnecessary for a while so just remove it. Testing by: marcel
* When sizing the FIFO, don't count all the way up to 1030 if any FIFOmarcel2004-07-261-1/+1
| | | | | size larger than 128 is considered an incompatible size. Stop counting when we reach 130 in the loop.
* Revert modification of subr_turnstile.c accidentally included in therwatson2004-07-251-1/+0
| | | | | last commit; this assertion was provided by jhb for local debugging and not intended for broader consumption.
* In uipc_connect(), assert that the passed thread is curthread, and passrwatson2004-07-252-1/+4
| | | | td into unp_connect() instead of reading curthread.
* Do some initial locking on accept filter registration and attach. Whilerwatson2004-07-251-29/+76
| | | | | | here, close some races that existed in the pre-locking world during low memory conditions. This locking isn't perfect, but it's closer than before.
* There's a chance that the VINUMDRIVE class tastes before thele2004-07-251-2/+13
| | | | | VINUM class, so let the VINUMDRIVE class parse the on-disk configuration, too.
* Eliminate unused second argument to reassignbuf() and simplify itphk2004-07-256-37/+18
| | | | accordingly.
* Add netatalk mutexes to hard-coded WITNESS lock order.rwatson2004-07-251-0/+6
|
* For years, kmem_alloc_pageable() has been misused. Now that the last ofalc2004-07-252-25/+0
| | | | | these misuses has been corrected, remove it before new ones appear, such as arm/arm/pmap.c revision 1.8.
* Expand the generic, but bogusly formed, copyright notice to includeimp2004-07-251-1/+21
| | | | | | | | | | | the license from /usr/src/COPYRIGHT. Since cvs annotate shows that this was written by jasone, julian, jhb, peter, bmilekic and obrien. cvs log shows that many others may have contributed to this file. As such, go ahead and use the author of 'FreeBSD Project' for this file. If this is a problem, please notify me. # this eliminates the last file in the kernel with an indirect reference # to /usr/src/COPYRIGHT in the kernel. A few more in userland remain.
* Remove spl calls.alc2004-07-251-11/+0
|
* Check for a NULL pointer before dereferencing it.le2004-07-251-0/+2
|
* Neuter this warning for now, I think I know the remaining issues.phk2004-07-251-1/+2
|
* Make the code and comments for vm_object_coalesce() consistent.alc2004-07-253-9/+6
|
* Work-around a gcc code generation bug for function descriptorsmarcel2004-07-251-4/+4
| | | | | | references (target/16559). This fixes SMP configurations. Obtained from: arun@
* More comment frobbing: insert a missing comma, and spell permissionsrwatson2004-07-251-1/+1
| | | | as credential.
* Spelling fix in comment: s/though/thought/.rwatson2004-07-251-1/+1
|
* Get the acpi softc via the devclass, not by caching the device. Replacenjl2004-07-241-12/+8
| | | | apm_softc with a single integer since the whole softc is not used.
* Use a temporary geom when tasting vinumdrives and lock the 'real'le2004-07-242-5/+33
| | | | | | | | | vinumdrive geom with an exclusive bit. This should fix the problem when underlying partitions overlap (i.e. the 'a' partition is at the same offset as the 'c' partition). Ideas borrowed from pjd@, quite a bit of testing by Matthias Schuendehuette <msch@snafu.de>.
* Whitespace cleanup and move static variables together.njl2004-07-242-46/+46
|
* Remove unneeded parens and fix whitespace.njl2004-07-242-72/+58
|
* Disable kldunloading of geom_vinum temporarily until I figured outle2004-07-241-1/+1
| | | | how to do it correctly.
* Refine the wait for ATAPI_RESET.sos2004-07-241-2/+10
| | | | | | | | Properly wait for not busy and introduce a timeout for devices not setting busy (as they should). Leave a printf in there that states how long the wait was, as I'd like to get an idea of the variations here. The time needed seems also to be affected by whether a medium is present or not.
* Fix a bug where an item was being removed from a list without usingnjl2004-07-241-34/+29
| | | | | | FOREACH_SAFE. Remove bad cast of retp and instead use an additional arg to pass back the number of valid outputs. Use the package convenience functions for parsing packages.
* Prefer NULL to '0' when checking a pointer value.rwatson2004-07-241-37/+37
|
* Remove rev 1.50.obrien2004-07-241-9/+0
|
* Merged from sys/dev/sio/sio.c revision 1.450.nyan2004-07-242-2/+4
|
* Ports related rc.d cleanups:mtm2004-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | o Separate out local (ports) scripts that use rc.d, and the old style startup/shutdown scripts and execute them separately. On startup the rc.d style scripts are executed first and then the old-style scripts. On shutdown, exactly the reverse happens. o The rc.d ports scripts should now behave more like base system scripts. Scripts ending in .sh will be sourced into the current shell, while the rest will be executed in a subshell. Previously, all ports scripts, regardless of the .sh suffix, were executed in a subshell. o The parent script, /etc/rc.d/localpkg, passes its command line arguments straight to the rc.d ports scripts. This means they should now honor faststop and faststart commands as well. Old style scripts, should not see any differences. They will still get either a start or stop command. o The initial phrase shown during shutdown has been changed to use "local packages" instead of "daemon processes" to be more inline with the phrase used during local package startup. The phrases are also used only for old-style ports script startup/shutdown, whereas previously they were being used for both rc.d and old-style scripts. This should make startup/shutdown output a bit less ugly. Discussed with: portmgr Has Reservations: eik
* Bring the advertised interface capabilities into line with the realityyar2004-07-241-6/+14
| | | | | | | | | | | (in particular, bge(4) hasn't supported rxcsum since if_bge.c#1.5) Clean up some aspects of capabilities usage, i.e. stop using if_hwassist to see whether we are doing offload now because if_hwassist is for TCP/IP layer and it is subordinate to if_capenable. Thanks to: Aled Morris for donating a nice bge(4) NIC to me Reviewed by: -net, -hackers (silence)
* Simplify vmspace initialization. The bcopy() of fields from the oldalc2004-07-242-14/+8
| | | | | | | vmspace to the new vmspace in vmspace_exec() is mostly wasted effort. With one exception, vm_swrss, the copied fields are immediately overwritten. Instead, initialize these fields to zero in vmspace_alloc(), eliminating a bcopy() from vmspace_exec() and a bzero() from vmspace_fork().
* White space fix..julian2004-07-241-3/+3
| | | | diff reduction for upcoming commit.
* If debug.mpsafenet is non-zero, run the NFS server callout withoutrwatson2004-07-241-1/+4
| | | | Giant.
* Remove spl() use from nfsrv_timer.rwatson2004-07-241-3/+0
|
* Clean up whitespace, increase consistency and correctness.scottl2004-07-232-13/+9
| | | | Submitted by: bde
* Don't include a "\n" in KTR output, it confuses automatic parsing.rwatson2004-07-231-1/+1
|
* Remove the previous hack since it doesn't make a difference and is gettingscottl2004-07-231-2/+0
| | | | in the way of debugging.
* Use kmem_alloc_nofault() rather than kmem_alloc_pageable() for allocatingalc2004-07-231-1/+1
| | | | | KVA for explicitly managed mappings, i.e., mappings created with pmap_qenter().
* Reinforce discouragement of the use of FULL_PREEMPTION.rwatson2004-07-231-0/+1
|
OpenPOWER on IntegriCloud