summaryrefslogtreecommitdiff
path: root/sys/miscfs
AgeCommit message (Collapse)Author
2004-05-05make sure uio_offset is a safe value, with suggestions from millert@Ted Unangst
ok deraadt@ millert@ problem noticed by deprotect.com
2004-04-25useless castsTed Unangst
2004-04-25if you don't want the parent, don't use WANTPARENT. from pedro martellettoTed Unangst
2004-04-25only use um_cred for lookups, fixes pr 745.Ted Unangst
from pedro martelletto
2004-04-25fix typos/spelling in comments, from pedro martellettoJolan Luff
2004-04-23use CMSG macros. netbsd via pedro marteletto.Ted Unangst
2004-03-03allow force umount here tooTed Unangst
2004-03-03repair status by not repeating fields. fixes pr2101 from jim razmusTed Unangst
2004-03-03support forced unmounts. pr2394 from peter wernerTed Unangst
2004-03-03save room for nul, so we can unmount later. pr2327 from peter wernerTed Unangst
2004-03-02prevent memory leak on revoke by freeing resources in a real reclaimTed Unangst
function. also check fifoinfo is valid before deref. ok millert@
2004-02-24FIFO fixes adapted from FreeBSD:Todd C. Miller
o use different wchan string for reading and writing o make O_RDWR not block forever o remove some useless casts o reorganize the normal, blocking code path (ie: O_NONBLOCK not set) o fix select/poll semantics wrt EOF. With these changes we pass the FIFO regress. OK tedu@
2004-02-21fiddle with filedesc lock to prevent recursion. crash and fix confirmedTed Unangst
by marc balmer
2004-01-28Don't rely on vp->v_usecount to tell when we can dispose of our resourcesTodd C. Miller
in fifo_close(). If the FIFO is accessed via a layed fs (e.g. nullfs), v_usecount will always be 1. Instead, just check fip->if_readers and fip->fi_writers. If either one is non-zero we know the FIFO is in use and we should not free up its resources. Adapted from FreeBSD, NetBSD has an equivalent change (but they keep a counter instead).
2003-12-09missing ar; form Alf Schlichting <leopold-bloom@foni.net>Michael Shalayeff
2003-11-29typos from Michael Coulter;Jason McIntyre
2003-11-15set boottime's time to boottime, handy for find. requested by markus.Ted Unangst
don't bother with microtime. time should be more than enough precision. from netbsd.
2003-11-08typos from Jonathon Gray;Jason McIntyre
2003-10-24style(9)ed panics, from tom cosgrove.Ted Unangst
2003-09-23Replace select backends with poll backends. selscan() and pollscan()Todd C. Miller
now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
2003-08-15change arguments to suser. suser now takes the process, and a flagsTed Unangst
argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
2003-08-14constify vfsops; tedu@ okMichael Shalayeff
2003-08-11constify constant targetsMichael Shalayeff
2003-08-11constify constant namesMichael Shalayeff
2003-08-05make procfs support statfs args. lossage noticed and patch tested by jolanTed Unangst
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-12mapdata -> umapdata like it was beforeTed Unangst
2003-05-12fix up locking and some issues with union. derived from netbsdTed Unangst
2003-05-12replaced by layer_subr.cTed Unangst
2003-05-12umapfs uses the new layer stuff now too.Ted Unangst
2003-05-12most of the fixes for nullfs. use the new common layer stuff in genfs.Ted Unangst
2003-05-12new files to support layered file systems. to be used in a bit.Ted Unangst
mostly from work by Bill Studenmund - wrstuden at netbsd
2003-05-11use LK_EXCLUSIVE like all other file systems.Ted Unangst
use LK_RETRY in kernfs_root(). "just in case" stuff.
2003-05-06string cleaning; tedu okTheo de Raadt
2003-04-28call lockmgr a bit earlier to avoid a race.Ted Unangst
2003-04-14rename rootvp to rvp to avoid global. ok deraadt@ krw@Ted Unangst
2003-04-07sprintf elimination from rohee.Ted Unangst
2003-04-07some snprintf usage from rohee.Ted Unangst
2003-03-30Ensure that all files in /kern end with a newline (machine, model,Bruno Rohee
osrelease and ostype were not). ok tedu@
2003-03-09Disallow ptrace if P_SUGIDEXEC flag is set (we already disallow if P_SUGIDTodd C. Miller
is set). deraadt@ and tholo@ OK.
2003-02-24use M_MISCFSMNT instead of M_UFSMNT for mount dataTed Unangst
ok art@
2003-02-24correct typoTed Unangst
ok art@
2003-02-24Remove tcfs until this entire licensing mess is cleaned up. This isTheo de Raadt
ANOTHER case of a developer having ignored licenses when importing code.
2003-02-12Remove commons; inspired by netbsd.Jason Wright
2003-01-31Sigh. I comitted the wrong diff in the last vfs changes.Artur Grabowski
These are the files that were ok:ed and tested.
2003-01-31File system locking fixups, mostly from NetBSD:Artur Grabowski
- cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
2002-11-08Implement simple vnodeop inheritance for specfs and fifofs.Artur Grabowski
The inheritace is implemented by setting the default vnodeop to a bypass op that repeats the operation on the spec/fifo vnodeop vector. The overhead of one extra indirect function call is worth the cleanup and improved correctness. This actually solves a few bugs where some vnode ops were missing from some vectors (like kqfilter or revoke). (and even more on the ubc branch). Inspired by the same thing done in FreeBSD.
2002-10-27comment fixes.Brad Smith
-- From: Jean-Francois Brousseau <krapht@secureops.com>
2002-10-12Remove more '\n's from panic() statements. Both trailing and leading.Kenneth R Westerback
Last bits of diff generated by Chris Kuethe.
2002-08-23Just like getvnode, make getsock FREF the file so that we can't get awayArtur Grabowski
with not refing it. Eyeballed by lurene@daemonkitty.net, fries@, nordin@ and fries@ Some additional cleanups by nordin@