summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Print a warning if running as !root for aio_md_test rather than failingrwatson2004-12-061-1/+5
| | | | the test. Privilege is required in order to allocate an md device.
* Add a few convenient functions in the mount_arg() family and collect thephk2004-12-062-72/+211
| | | | entire family at the end of the source file.
* Add a basic aio functionality regression test, which simply writes andrwatson2004-12-062-0/+702
| | | | | | | | | then reads from a fairly broad range of object types: regular file, fifo, UNIX socketpair, pty, UNIX pipe, and an md device. Not a deep test of functionality, just a basic test that aio_write followed by aio_read returns the correct data in a relatively timely manner. Requested by: phk
* Collapse two almost identical license copies, preserving the rights ofphk2004-12-061-24/+1
| | | | all listed authors, rightholders and contributors.
* Remove the kern.rootdev sysctl.phk2004-12-061-24/+0
| | | | | | Root filessytems (like NFS) don't have an associated disk device, and even if they had, the exact semantics would be filesystem dependent and should be implemented there.
* Make struct vfsopt{list} private to vfs_mount.cphk2004-12-062-7/+10
|
* Fix warningphk2004-12-061-1/+1
|
* Update prototypes for eventhandler_register() and eventhandler_find_list()jkoshy2004-12-061-3/+3
| | | | to match the code.
* Style: fix indentation.harti2004-12-062-643/+660
|
* We don't have RAIDFrame anymore and it seems gvinum doesn't use SI_SUB_RAID,pjd2004-12-061-1/+1
| | | | so correct stale comment. The only SI_SUB_RAID consumer is gmirror right now.
* Use 'const char *' for a few prototypes.jkoshy2004-12-062-6/+6
| | | | Reviewed by: ru
* Unbreak sockstat(1) on systems without the divert protocol.ru2004-12-061-0/+2
|
* Remove an unused macro.harti2004-12-061-5/+0
|
* Constify arguments to Hash_FindEntry and Hash_CreateEntry.harti2004-12-062-6/+6
|
* Remove extra empty lines.harti2004-12-061-2/+0
|
* Style: fix indentation, prototypes for functions even in comment.harti2004-12-061-25/+13
|
* Make this work under debugging, e.g., "make -dl".ru2004-12-062-2/+2
|
* Userland change corresponding to the change in kernel/userland communicationphk2004-12-061-31/+19
| | | | for NFS locking.
* For reasons unknown, the nfs locking code used a fifo to send requests tophk2004-12-065-88/+159
| | | | | | | | | | | | | userland and a dedicated system call to get replies. The vnode-bypass of fifos broke this into a panic. Ditch all the magic and create a device /dev/nfslock instead, and use that for both directions apart from the shorter path, this is also faster because the device driver runs Giant free using the vnode bypass. Noticed by: marcel
* Add support for the memory-mapped PCI Express configuration mechanism. Thisscottl2004-12-061-8/+211
| | | | | | | | | | | | | | actually is a property of the northbridge and applies to all PCI/PCI-X/PCIe devices in the system, though only PCIe devices will respond to registers higher than 256. This uses per-CPU pools of temporary mappings so that the whole 256MB of configuration space doesn't have to be mapped all at once. While the sf_buf API was considered for this, the fact that it requires sleep locks and can return failure made it unsuitable for this use. For now only the Intel Grantsdale and Lindenhurst (925 and 752x) chipsets are supported. Since there doesn't appear to be a compatible way to determine northbridge support, new chipsets will have to be explicitely added in the future.
* The 'start' command processes loader.conf variables, not loader.rc.imp2004-12-061-1/+1
| | | | Fix comment to match.
* This jumbo allocator has been removed from the kernel.alc2004-12-063-161/+2
|
* Enable amr(4) - scottl fixed when used with >4GB RAM.obrien2004-12-061-1/+0
|
* Update the Tigon 1 and 2 driver to use the sf_buf API for implementingalc2004-12-066-350/+50
| | | | | | | | | | | | zero-copy receive of jumbo frames. This eliminates the need for the jumbo frame allocator implemented in kern/uipc_jumbo.c and sys/jumbo.h. Remove it. Note: Zero-copy receive of jumbo frames did not work without these changes; I believe there was insufficient locking on the jumbo vm object. Tested by: ken@ Discussed with: gallatin@
* Fix a number of bugs and significantly alter the command execution path toscottl2004-12-054-59/+168
| | | | | | | | | | properly support bounce buffers and resource shortages. This allows the driver to work properly and reliably with more than 4GB of RAM. Of the three data paths that exist in the driver, (block, CAM, ioctl), the ioctl path has not been well tested with these changes due to difficulty with finding an application that uses it that actually works. Sponsored by: The FreeBSD Foundation and FreeBSD Systems, Inc.
* Code for automatic name completion in a tcsh(1) environment.hmp2004-12-051-0/+7
| | | | | PR: docs/44435 Submitted by: Slaven Rezic slaven dot rezic at berlin dot de
* Use ng_callout() instead of timeout(9).glebius2004-12-051-7/+7
| | | | Approved by: julian (mentor)
* Convert GIANT_REQUIRED; in nfs_mountroot() to NET_ASSERT_GIANT(),rwatson2004-12-051-1/+6
| | | | | | | | | and annotate that nfs_mountroot assumes it is OK to step on the values in the global NFSv3 diskless structure as the mountroot function is called during a serialized part of the boot, before any other NFS client activity occurs. MFC after: 2 weeks
* Convert a GIANT_REQUIRED; into a NET_ASSERT_GIANT();, as sockets arerwatson2004-12-051-1/+1
| | | | now only conditionally protected by Giant based on debug.mpsafenet.
* Make sure to map the whole kernel into 1MB pages. Try to use the remainingcognet2004-12-051-27/+67
| | | | memory for things such as the kernel stack.
* Assert the tcptw inpcb lock in tcp_timer_2msl_reset(), as fields inrwatson2004-12-051-0/+1
| | | | | | the tcptw undergo non-atomic read-modify-writes. MFC after: 2 weeks
* Reactivate the use of the minidata cache.cognet2004-12-051-1/+0
|
* Do not change the page directory and do not flush the TLB when switching tocognet2004-12-051-26/+6
| | | | a kernel thread.
* Remove an unused field from the struct pv_entry.cognet2004-12-051-4/+3
| | | | While I'm there, fix style.
* VFS_STATFS(mp, ...) is mostly called with &mp->mnt_stat, but a few casesphk2004-12-0521-127/+14
| | | | | | | | doesn't. Most of the implementations have grown weeds for this so they copy some fields from mnt_stat if the passed argument isn't that. Fix this the cleaner way: Always call the implementation on mnt_stat and copy that in toto to the VFS_STATFS argument if different.
* Fix null-pointer indirect function calls introduced in the previousmarcel2004-12-055-15/+54
| | | | | | | | | | | | commit. In the new world order, the transitive closure on the vector operations is not precomputed. As such, it's unsafe to actually use any of the function pointers in an indirect function call. They can be null, and we need to use the default vector in that case. This is mostly a quick fix for the four function pointers that are ed explicitly. A more generic or scalable solution is likely to see the light of day. No pathos on: current@
* Assert inpcb lock in:rwatson2004-12-052-2/+24
| | | | | | | | | | | | | | tcpip_fillheaders() tcp_discardcb() tcp_close() tcp_notify() tcp_new_isn() tcp_xmit_bandwidth_limit() Fix a locking comment in tcp_twstart(): the pcbinfo will be locked (and is asserted). MFC after: 2 weeks
* Minor grammer fix in comment.rwatson2004-12-051-1/+2
|
* Pass the inpcb reference into ip_getmoptions() rather than just therwatson2004-12-051-6/+14
| | | | | | | | | | inp->inp_moptions pointer, so that ip_getmoptions() can perform necessary locking when doing non-atomic reads. Lock the inpcb by default to copy any data to local variables, then unlock before performing sooptcopyout(). MFC after: 2 weeks
* Define INP_UNLOCK_ASSERT() to assert that an inpcb is unlocked.rwatson2004-12-051-0/+1
| | | | MFC after: 2 weeks
* Correct a sanity check in vnode_pager_generic_putpages(). The cast usedalc2004-12-051-1/+1
| | | | | | | | | | to implement the sanity check should have been changed when we converted the implementation of vm_pindex_t from 32 to 64 bits. (Thus, RELENG_4 is not affected.) The consequence of this error would be a legimate write to an extremely large file being treated as an errant attempt to write meta- data. Discussed with: tegge@
* 'all' argument for list_net_interfaces() is now unused, remove it.pjd2004-12-051-4/+0
|
* Push the inpcb argument into ip_setmoptions() when setting IP multicastrwatson2004-12-051-10/+8
| | | | socket options, so that it is available for locking.
* Make sure the first argument to the user function is 16-byte aligned.deischen2004-12-051-5/+7
| | | | Submitted by: tegge
* When panicing in device_unbusy(), actually tell what device has the issue.obrien2004-12-051-1/+2
|
* Forced commit to note that the previous revision, 1.233, should be:rwatson2004-12-050-0/+0
| | | | MFC after: 2 weeks
* Start working through inpcb locking for ip_ctloutput() by cleaning uprwatson2004-12-051-10/+13
| | | | | | | | | | | | modifications to the inpcb IP options mbuf: - Lock the inpcb before passing it into ip_pcbopts() in order to prevent simulatenous reads and read-modify-writes that could result in races. - Pass the inpcb reference into ip_pcbopts() instead of the option chain pointer in the inpcb. - Assert the inpcb lock in ip_pcbots. - Convert one or two uses of a pointer as a boolean or an integer comparison to a comparison with NULL for readability.
* - Use uint16_t to pass argument for NGM_NETFLOW_IFINFO, bump cookie.glebius2004-12-052-6/+12
| | | | | | | | | | - Always check that index number passed from userland is <= NG_NETFLOW_MAXIFACES. [1] - Increase NG_NETFLOW_MAXIFACES up to 512. [2] Noticed by: Roman Palagin [1] Requested by: Yuri Y. Bushmelev [2] MFC after: 1 week
* Show divert(4) sockets as well.ru2004-12-051-0/+6
|
* Correct a misspelling in a comment.rwatson2004-12-051-1/+1
|
OpenPOWER on IntegriCloud