summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Please welcome ZFS - The last word in file systems.pjd2007-04-06616-0/+256448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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/)
* | | | Add local ptototype for memset function.kan2007-04-061-0/+3
| | | |
* | | | allprison mutex was converted to sx(9) lock.pjd2007-04-051-1/+1
| | | |
* | | | Implement functionality I called 'jail services'.pjd2007-04-052-28/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Add trivial MI memset function implementation. GCC mandates thekan2007-04-052-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | existence of this function as a linkable symbol in standalone configurations and existing inline memcpy from libkern.h fails this requirement.
* | | | Make prison_find() globally accessible.pjd2007-04-052-2/+2
| | | |
* | | | Bump date.pjd2007-04-055-5/+5
| | | |
* | | | Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found inpjd2007-04-056-1/+86
| | | | | | | | | | | | | | | | | | | | | | | | OpenSolaris. For more information please refer to: http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data
* | | | Add security.jail.mount_allowed sysctl, which allows to mount andpjd2007-04-057-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | When KVA is exhausted, try the vm_lowmem event for the last time beforepjd2007-04-051-4/+14
| | | | | | | | | | | | | | | | panicing. This helps a lot in ZFS stability.
* | | | Fix a problem for file systems that don't implement VOP_BMAP() operation.pjd2007-04-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Hide lbolt under _SOLARIS_C_SOURCE in preparation for ZFS import.pjd2007-04-051-0/+2
| | | | | | | | | | | | | | | | I really couldn't avoid this with preprocessor magic.
* | | | (bread): For a read that is contained entirely within a block, never copythomas2007-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | out more than size bytes to the caller's buffer. PR: bin/111191 Reviewed by: pb MFC after: 1 week
* | | | Add PCI IDs for the HP RMP3 serial port. This is often used asmarcel2007-04-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | the serial console. MFC after: 1 week
* | | | Remove extern struct pcb stoppcbs[] declaration from this file.kan2007-04-051-2/+0
| | | | | | | | | | | | | | | | It breaks GCC 4.1 compiles and does not appear to be required.
* | | | Add an important detail to paragraph 12: the range is reset only if itsyar2007-04-051-2/+3
| | | | | | | | | | | | | | | | second address is a line number.
* | | | Move archive_read_data_into_buffer into archive_read.c, simplify itscperciva2007-04-054-55/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Whitespace nits.des2007-04-052-4/+4
| | | |
* | | | Reflect the change in rev. 1.44 of process.c.yar2007-04-051-4/+9
| | | | | | | | | | | | | | | | Add $FreeBSD$ to please commit_prep.pl.
* | | | s/IPFW(4)/ipfw(4) to match the actual man page name.rwatson2007-04-051-1/+1
| | | | | | | | | | | | | | | | Submitted by: ru
* | | | Update postfix MTA selection code to point at postfix 2.4 which is thesimon2007-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | current version. MFC after: 3 days
* | | | If a thread who's name is being set is not the current thread, use macrosdavidxu2007-04-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | More corrections from Joerg Sonnenberger.kientzle2007-04-051-3/+3
| | | |
* | | | Style fixes from Joerg Sonnenberger: use correct types,kientzle2007-04-051-5/+7
| | | | | | | | | | | | | | | | spell lint(1) comments correctly.
* | | | From Joerg Sonnenberger: Fix a number of style gaffes,kientzle2007-04-054-26/+35
| | | | | | | | | | | | | | | | including type puns and avoidable casts.
* | | | Wordsmithing.kientzle2007-04-051-12/+9
| | | |
* | | | Avoid using intermediate variables by just comparing betweendelphij2007-04-051-27/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Fix mb_ctor_clust and mb_dtor_clust to reference the appropriate zone,kmacy2007-04-041-29/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | simplify setting refcnt Reviewed by: andre, rwatson, and glebius MFC after: 3 days
* | | | This commit was generated by cvs2svn to compensate for changes in r168371,thompsa2007-04-041-51/+314
|\ \ \ \ | | | | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches.
| * | | | Pull in latest print-stp.c from vendorthompsa2007-04-041-51/+314
| | | | |
* | | | | Add myself. Include wollman in addition to billf, because Garrett spent agad2007-04-041-0/+3
| | | | | | | | | | | | | | | | | | | | lot of time reviewing all my initial updates to lpr & friends.
* | | | | Add INP_INFO_UNLOCK_ASSERT() and use it in tcp_input(). Also add someandre2007-04-043-0/+9
| | | | | | | | | | | | | | | | | | | | further INP_INFO_WLOCK_ASSERT() while there.
* | | | | Move last tcpcb initialization for the inbound connection case fromandre2007-04-043-20/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | A dash as an argument to the -f option will now cause lastcomm todds2007-04-042-20/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Some local and style(9) cleanups.andre2007-04-042-36/+41
| | | | |
* | | | | Retire unused TCP_SACK_DEBUG.andre2007-04-048-8/+0
| | | | |
* | | | | In tcp_dooptions() skip over SACK options if it is a SYN segment.andre2007-04-042-0/+4
| | | | |
* | | | | cipher(3) is gone.ceri2007-04-041-1/+0
| | | | | | | | | | | | | | | | | | | | MFC after: 3 days
* | | | | Add rpc_statd_flags and rpc_lockd_flags options to allow options to bematteo2007-04-045-1/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | passed to rpc.statd and rpc.lockd MFC after: 1 week
* | | | | Add myself and my mentor -> mentee relationship.mm2007-04-041-0/+2
| | | | | | | | | | | | | | | | | | | | Approved by: garga (mentor)
* | | | | Fix typo FILESYSTEM -> FILESYSTEMSache2007-04-041-1/+1
| | | | | | | | | | | | | | | | | | | | This bug prevents local scripts to start up
* | | | | The names of the unknown soldiers still are kept in the dustyyar2007-04-041-2/+2
| | | | | | | | | | | | | | | | | | | | Handbook for 2.1.7-RELEASE.
* | | | | Admit my infertility in public: I had the honour of being mentored by jkh,yar2007-04-041-0/+2
| | | | | | | | | | | | | | | | | | | | but I've had no mentees of my own yet.
* | | | | Replace custom file descriptor array sleep lock constructed using a mutexrwatson2007-04-0424-345/+325
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Add myself.danfe2007-04-041-0/+2
| | | | |
* | | | | Use *_EMPTY macros when appropriate.delphij2007-04-044-47/+47
| | | | |
* | | | | Sort as requested.ru2007-04-041-10/+10
| | | | |
* | | | | Make DMA tags per-queue to facilate parallel mappingskmacy2007-04-042-61/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | m_extadd does not appear to do the right thing for the case of clusterskmacy2007-04-041-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | allocated from UMA - add m_cljset to correspond to m_cljget MFC after: 3 days
* | | | | Cast away const qualifier to squash GCC warning.kan2007-04-041-1/+1
| | | | |
OpenPOWER on IntegriCloud