summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_default.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove the unused olddp parameter from function dounmount().bluhm2017-01-101-2/+2
| | | | OK mpi@ millert@
* When vfs_busy() is sleeping, it uses RW_SLEEPFAIL and will fail.bluhm2016-03-121-3/+6
| | | | | | | | So if vop_generic_revoke() does not unmount because the mount point is busy, this could result in a mount point without a valid device. It is better to check and sleep in a loop to avoid a corrupt mount point. OK natano@ krw@
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* move the specfs code to a place people can see it; ok guenther thib krwderaadt2011-07-041-2/+2
|
* kqueue attach functions should return an errno or 0, not a plain 1. Fixnicm2011-07-021-2/+2
| | | | | | the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
* Introduce vop_generic_bmap(); use it where applicable.thib2008-05-031-1/+16
| | | | | | | | one thing of note, fifofs changes in that its bmap now sets the runp too 0, but that was an oversight in the old code. ok art@
* fifofs, deadfs and specfs all have the same "trivial lookup routine thatthib2007-12-271-1/+11
| | | | | | | always fails". Introduce vop_generic_lookup(), which is a trivial lookup routine that always fails and use that instead, zap the redundant copies. ok toby@, tedu@, art@
* Allow to pull out an usb stick with ffs filesystem while mountedbluhm2007-09-151-1/+13
| | | | | | | | | | | | | | | | and a file is written onto the stick. Without these fixes the machine panics or hangs. The usb fix calls the callback when the stick is pulled out to free the associated buffers. Otherwise we have busy buffers for ever and the automatic unmount will panic. The change in the scsi layer prevents passing down further dirty buffers to usb after the stick has been deactivated. In vfs the automatic unmount has moved from the function vgonel() to vop_generic_revoke(). Both are called when the sd device's vnode is removed. In vgonel() the VXLOCK is already held which can cause a deadlock. So call dounmount() earlier. ok krw@, I like this marco@, tested by ian@
* pedro ok'd this ~3500 line diff which removes the vop argumentderaadt2007-06-011-16/+4
| | | | | "ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
* Nuke a bunch of simpelocks and associated goo.thib2007-05-261-6/+1
| | | | ok art@
* Remove the v_interlock simplelock from the vnode structure.thib2007-03-211-19/+1
| | | | | | | | | Zap all calls to simple_lock/unlock() on it (those calls are #defined away though). Remove the LK_INTERLOCK from the calls to vn_lock() and cleanup the filesystems wich implement VOP_LOCK(). (by remvoing the v_interlock from there calls to lockmgr()). ok pedro@, art@, tedu@
* Retire VOP_LEASE(); It was a bit for NQNFS and hasthib2007-01-161-9/+1
| | | | | | | | | effectively been a no-op for quite some time now, without promise for future usage. ok pedro@ Testing by krw@ (earlier diff) and Johan Mson Lindman (tybollt@solace.miun.se)
* nitpedro2005-11-071-2/+2
|
* Make comments match reality, space the code a bit while at itpedro2005-11-061-5/+14
|
* Use ANSI-style function declarations, no binary change, okay jsg@pedro2005-11-061-22/+10
|
* Remove v_vnlock from struct vnode, okay krw@ tedu@pedro2005-10-191-47/+1
|
* Extended Attributes was a piece to get to ACLs, however ACLs have notdrahn2005-07-031-17/+1
| | | | | been worked on, so EA is pointless. Also the code is not enabled in GENERIC so it is not being tested or maintained.
* in theory, vnlock should alays be NULL in the generic lock (sic) functions.tedu2004-06-091-23/+3
| | | | | | in reality, sometimes it's not. we don't trust vnlock, and since it's 100% guaranteed to panic if it gets here, just completely stop using it. crash by henning, ok deraadt
* use pool for namei pathbuf. testing ok millert@ tdeval@tedu2004-05-141-2/+3
|
* fix typos/spelling in comments, from pedro martellettojolan2004-04-251-2/+2
|
* match syscallargs comments with realityhenning2003-09-011-1/+7
| | | | | from Patrick Latifi <patrick.l@hermes.usherb.ca> ok jason@ tedu@
* remove caddr_t casts. it's just silly to cast something when the functiontedu2003-07-211-2/+2
| | | | takes a void *. convert uiomove to take a void * as well. ok deraadt@
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* First round of __P removal in sysmillert2002-03-141-3/+3
|
* fucntion->function.fgsch2002-02-261-4/+3
|
* Extended Attribute support from FreeBSD/TrustedBSD ok art@, deraadt@drahn2002-02-221-1/+17
|
* UBC was a disaster. It worked very good when it worked, but on someart2001-12-191-11/+3
| | | | | | | | | 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.
* Big cleanup inspired by NetBSD with some parts of the code from NetBSD.art2001-12-101-684/+2
| | | | | | | | - 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
* Merge in struct uvm_vnode into struct vnode.art2001-12-101-7/+7
|
* Readd VOP_MMAP, will be used soon. Right now it's just a question toart2001-12-041-1/+8
| | | | the filesystem if we're allowed to mmap the file.
* Call buf_cleanout, which handles wakeupscsapuntz2001-11-301-5/+3
|
* Bunch of bug fixes from NetBSD.art2001-11-291-16/+17
| | | | Mostly dealing with holes in files.
* Make sure the whole buffer is initialized before calling bgetvp.art2001-11-291-3/+3
| | | | Recommended by csapuntz@
* Correctly handle b_vp with bgetvp and brelvp in {get,put}pages.art2001-11-291-5/+12
| | | | Prevents panics caused by vnodes being recycled under our feet.
* Merge in the unified buffer cache code as found in NetBSD 2001/03/10. Theart2001-11-271-3/+680
| | | | | | | code is written mostly by Chuck Silvers <chuq@chuq.com>/<chs@netbsd.org>. Tested for the past few weeks by many developers, should be in a pretty stable state, but will require optimizations and additional cleanups.
* Remove NQNFScsapuntz2001-06-251-1/+9
|
* KNFderaadt2001-06-221-9/+9
|
* generic kqfilter that just like select returns ready for read and write.provos2001-06-051-1/+51
|
* Locking bug on spechash. Thanks to Dawson Engler and teamcsapuntz2001-03-161-1/+2
|
* Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockcsapuntz1998-08-061-10/+26
| | | | | | | | | | | | to be vop_generic_revoke, vop_generic_bwrite, vop_generic_islocked, vop_generic_lock and vop_generic_unlock. Create vop_generic_abortop and propogate change to all file systems. Fix PR/371. Get rid of locking in NULLFS (should be mostly unnecessary now except for forced unmounts).
* Fix a couple spinlock references. More code motion in vfs_subr.ccsapuntz1998-01-111-1/+3
|
* A couple more splbio()s in vfs_bio plus moving around a couple functions.csapuntz1998-01-101-0/+235