summaryrefslogtreecommitdiffstats
path: root/sys/miscfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* replaced by layer_subr.ctedu2003-05-121-355/+0
|
* umapfs uses the new layer stuff now too.tedu2003-05-124-805/+434
|
* most of the fixes for nullfs. use the new common layer stuff in genfs.tedu2003-05-123-818/+267
|
* new files to support layered file systems. to be used in a bit.tedu2003-05-125-0/+1925
| | | | mostly from work by Bill Studenmund - wrstuden at netbsd
* use LK_EXCLUSIVE like all other file systems.tedu2003-05-112-4/+4
| | | | use LK_RETRY in kernfs_root(). "just in case" stuff.
* string cleaning; tedu okderaadt2003-05-061-2/+3
|
* call lockmgr a bit earlier to avoid a race.tedu2003-04-281-7/+8
|
* rename rootvp to rvp to avoid global. ok deraadt@ krw@tedu2003-04-141-6/+6
|
* sprintf elimination from rohee.tedu2003-04-071-6/+6
|
* some snprintf usage from rohee.tedu2003-04-071-10/+10
|
* Ensure that all files in /kern end with a newline (machine, model,rohee2003-03-301-2/+8
| | | | | | osrelease and ostype were not). ok tedu@
* Disallow ptrace if P_SUGIDEXEC flag is set (we already disallow if P_SUGIDmillert2003-03-091-1/+2
| | | | is set). deraadt@ and tholo@ OK.
* use M_MISCFSMNT instead of M_UFSMNT for mount datatedu2003-02-245-18/+18
| | | | ok art@
* correct typotedu2003-02-241-2/+2
| | | | ok art@
* Remove tcfs until this entire licensing mess is cleaned up. This isderaadt2003-02-2423-4064/+0
| | | | ANOTHER case of a developer having ignored licenses when importing code.
* Remove commons; inspired by netbsd.jason2003-02-122-3/+5
|
* Sigh. I comitted the wrong diff in the last vfs changes.art2003-01-313-45/+17
| | | | These are the files that were ok:ed and tested.
* File system locking fixups, mostly from NetBSD:art2003-01-317-61/+147
| | | | | | | | | | | | | | | - 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
* Implement simple vnodeop inheritance for specfs and fifofs.art2002-11-084-9/+29
| | | | | | | | | | | | | 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.
* comment fixes.brad2002-10-271-16/+16
| | | | | -- From: Jean-Francois Brousseau <krapht@secureops.com>
* Remove more '\n's from panic() statements. Both trailing and leading.krw2002-10-122-5/+5
| | | | Last bits of diff generated by Chris Kuethe.
* Just like getvnode, make getsock FREF the file so that we can't get awayart2002-08-231-4/+4
| | | | | | | with not refing it. Eyeballed by lurene@daemonkitty.net, fries@, nordin@ and fries@ Some additional cleanups by nordin@
* Cleanup change. Since almost all callers (except one) of getvnode did a FREFart2002-08-231-2/+1
| | | | | | | 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.
* uid_t and gid_t are unsignedderaadt2002-06-231-14/+14
|
* spelling; from Brian Poole <raj@cerias.purdue.edu>todd2002-06-143-6/+6
|
* Use tsleep instead of sleep.art2002-06-083-7/+7
|
* Remove unused #define. ok deraadt@nordin2002-06-041-8/+1
|
* splbio around biodone.art2002-05-241-1/+5
|
* Do not hide Pfpregs from a switch() if PT_[GS]ETFPREGS are not defined,miod2002-04-061-3/+3
| | | | | so that this compiles with option DIAGNOSTIC; fixes PR #2528 ok fgsch@
* remove ambiguity in version,ostype,osversion,osrelease and their constanity, they are and declarre 'em accordingly also removing private externies of thosemickey2002-03-141-7/+6
|
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-2/+2
|
* First round of __P removal in sysmillert2002-03-1436-539/+539
|
* Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inmiod2002-03-144-6/+39
| | | | | | | | | | | | | 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.
* Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.art2002-03-112-12/+2
| | | | | | | | 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.
* Cache vnodes, don't hold on to the root vnode, some cleanups, handleart2002-02-173-139/+204
| | | | | | physmem and usermem correctly. kernel/2404 from peterw@ifost.org.au with some small fixups from me.
* More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl functions in sys/compat are left.art2002-02-131-1/+3
|
* More FREF/FRELE protection. This time all users of getvnode.art2002-02-121-5/+12
|
* Fix all users of getsock to use FREF/FRELE properly.art2002-02-121-3/+9
|
* - Rename FILE_{,UN}USE to FREF and FRELE. USE is a bad verb and we don't haveart2002-02-081-2/+2
| | | | | | | | | | | | | | the same semantics as NetBSD anyway, so it's good to avoid name collissions. - Always fdremove before freeing the file, not the other way around. - falloc FREFs the file. - have FILE_SET_MATURE FRELE the file (It feels like a good ortogonality to falloc FREFing the file). - Use closef as much as possible instead of ffree in error paths of falloc:ing functions. closef is much more careful with the fd and can deal with the fd being forcibly closed by dup2. Also try to avoid manually calling *fo_close when closef can do that for us (this makes some error paths mroe complicated (sys_socketpair and sys_pipe), but others become simpler (sys_open)).
* Add counting of temporary references to a struct file (as opposed to referencesart2002-02-051-2/+3
| | | | | | | | | | | | | | | from fd tables and other long-lived objects). This is to avoid races between using a file descriptor and having another process (with shared fd table) close it. We use a separate refence count so that error values from close(2) will be correctly returned to the caller of close(2). The macros for those reference counts are FILE_USE(fp) and FILE_UNUSE(fp). Make sure that the cases where closef can be called "incorrectly" (most notably dup2(2)) are handled. Right now only callers of closef (and {,p}read) use FILE_{,UN}USE correctly, more fixes incoming soon.
* Be more consistent about using fd_getfile where it matters.art2002-02-022-6/+10
|
* Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ oknordin2002-01-302-9/+2
|
* Add proc0 to the PIDHASH table. art@ oknordin2002-01-303-12/+11
|
* When a process is exec:ing mark it with a flag. Check that flag in ptraceart2002-01-201-1/+6
| | | | | | and procfs (and possibly more places in the future) and simply refuse to fiddle with the execing process. This is an ugly hack, but this far we haven't been successful in creating a race-free exec.
* UBC was a disaster. It worked very good when it worked, but on someart2001-12-199-826/+12
| | | | | | | | | machines or some configurations or in some phase of the moon (we actually don't know when or why) files disappeared. Since we've not been able to track down the problem in two weeks intense debugging and we need -current to be stable, back out everything to a state it had before UBC. We apologise for the inconvenience.
* Fix typo, noticed by Richard Lowemillert2001-12-111-2/+2
|
* Big cleanup inspired by NetBSD with some parts of the code from NetBSD.art2001-12-102-0/+794
| | | | | | | | - get rid of VOP_BALLOCN and VOP_SIZE - move the generic getpages and putpages into miscfs/genfs - create a genfs_node which must be added to the top of the private portion of each vnode for filsystems that want to use genfs_{get,put}pages - rename genfs_mmap to vop_generic_mmap
* Readd VOP_MMAP, will be used soon. Right now it's just a question toart2001-12-0413-26/+44
| | | | the filesystem if we're allowed to mmap the file.
* Use vfs_mount_foreach_vnodecsapuntz2001-11-211-6/+14
|
* uvm_vnp_setsizeart2001-11-151-2/+2
|