Age | Commit message (Collapse) | Author | |
---|---|---|---|
2004-01-28 | Don't rely on vp->v_usecount to tell when we can dispose of our resources | Todd 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-09 | missing ar; form Alf Schlichting <leopold-bloom@foni.net> | Michael Shalayeff | |
2003-11-29 | typos from Michael Coulter; | Jason McIntyre | |
2003-11-15 | set 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-08 | typos from Jonathon Gray; | Jason McIntyre | |
2003-10-24 | style(9)ed panics, from tom cosgrove. | Ted Unangst | |
2003-09-23 | Replace 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-15 | change arguments to suser. suser now takes the process, and a flags | Ted 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-14 | constify vfsops; tedu@ ok | Michael Shalayeff | |
2003-08-11 | constify constant targets | Michael Shalayeff | |
2003-08-11 | constify constant names | Michael Shalayeff | |
2003-08-05 | make procfs support statfs args. lossage noticed and patch tested by jolan | Ted Unangst | |
2003-06-02 | Remove the advertising clause in the UCB license which Berkeley | Todd C. Miller | |
rescinded 22 July 1999. Proofed by myself and Theo. | |||
2003-05-12 | mapdata -> umapdata like it was before | Ted Unangst | |
2003-05-12 | fix up locking and some issues with union. derived from netbsd | Ted Unangst | |
2003-05-12 | replaced by layer_subr.c | Ted Unangst | |
2003-05-12 | umapfs uses the new layer stuff now too. | Ted Unangst | |
2003-05-12 | most of the fixes for nullfs. use the new common layer stuff in genfs. | Ted Unangst | |
2003-05-12 | new 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-11 | use LK_EXCLUSIVE like all other file systems. | Ted Unangst | |
use LK_RETRY in kernfs_root(). "just in case" stuff. | |||
2003-05-06 | string cleaning; tedu ok | Theo de Raadt | |
2003-04-28 | call lockmgr a bit earlier to avoid a race. | Ted Unangst | |
2003-04-14 | rename rootvp to rvp to avoid global. ok deraadt@ krw@ | Ted Unangst | |
2003-04-07 | sprintf elimination from rohee. | Ted Unangst | |
2003-04-07 | some snprintf usage from rohee. | Ted Unangst | |
2003-03-30 | Ensure that all files in /kern end with a newline (machine, model, | Bruno Rohee | |
osrelease and ostype were not). ok tedu@ | |||
2003-03-09 | Disallow ptrace if P_SUGIDEXEC flag is set (we already disallow if P_SUGID | Todd C. Miller | |
is set). deraadt@ and tholo@ OK. | |||
2003-02-24 | use M_MISCFSMNT instead of M_UFSMNT for mount data | Ted Unangst | |
ok art@ | |||
2003-02-24 | correct typo | Ted Unangst | |
ok art@ | |||
2003-02-24 | Remove tcfs until this entire licensing mess is cleaned up. This is | Theo de Raadt | |
ANOTHER case of a developer having ignored licenses when importing code. | |||
2003-02-12 | Remove commons; inspired by netbsd. | Jason Wright | |
2003-01-31 | Sigh. I comitted the wrong diff in the last vfs changes. | Artur Grabowski | |
These are the files that were ok:ed and tested. | |||
2003-01-31 | File 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-08 | Implement 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-27 | comment fixes. | Brad Smith | |
-- From: Jean-Francois Brousseau <krapht@secureops.com> | |||
2002-10-12 | Remove more '\n's from panic() statements. Both trailing and leading. | Kenneth R Westerback | |
Last bits of diff generated by Chris Kuethe. | |||
2002-08-23 | Just like getvnode, make getsock FREF the file so that we can't get away | Artur Grabowski | |
with not refing it. Eyeballed by lurene@daemonkitty.net, fries@, nordin@ and fries@ Some additional cleanups by nordin@ | |||
2002-08-23 | Cleanup change. Since almost all callers (except one) of getvnode did a FREF | Artur Grabowski | |
on the returned file, do the FREF inside getvnode so that people can't get away with avoiding FREF and FRELE. Eyeballed by various people. | |||
2002-06-23 | uid_t and gid_t are unsigned | Theo de Raadt | |
2002-06-14 | spelling; from Brian Poole <raj@cerias.purdue.edu> | Todd T. Fries | |
2002-06-08 | Use tsleep instead of sleep. | Artur Grabowski | |
2002-06-04 | Remove unused #define. ok deraadt@ | Thomas Nordin | |
2002-05-24 | splbio around biodone. | Artur Grabowski | |
2002-04-06 | Do not hide Pfpregs from a switch() if PT_[GS]ETFPREGS are not defined, | Miod Vallat | |
so that this compiles with option DIAGNOSTIC; fixes PR #2528 ok fgsch@ | |||
2002-03-14 | remove ambiguity in version,ostype,osversion,osrelease and their constanity, ↵ | Michael Shalayeff | |
they are and declarre 'em accordingly also removing private externies of those | |||
2002-03-14 | Final __P removal plus some cosmetic fixups | Todd C. Miller | |
2002-03-14 | First round of __P removal in sys | Todd C. Miller | |
2002-03-14 | Turn the ptrace(2) syscall into a kernel compile option, option PTRACE in | Miod Vallat | |
your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks. | |||
2002-03-11 | Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional. | Artur Grabowski | |
They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha. | |||
2002-02-17 | Cache vnodes, don't hold on to the root vnode, some cleanups, handle | Artur Grabowski | |
physmem and usermem correctly. kernel/2404 from peterw@ifost.org.au with some small fixups from me. |