summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_vnops.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Use ANSI function declarations and deregister, no binary changepedro2005-11-201-73/+27
|
* have vn_close() lock the vnode before calling VOP_CLOSE().marius2005-05-281-2/+3
| | | | | | fix the acct_*() code so that we always have a proc to lock on. ok pedro@
* Change mode_t and nlink_t from 16bit to 32bit. This allows us tomillert2004-07-131-2/+2
| | | | | | | | | | use mode_t in syscalls.master and to use mode_t in more places in the kernel. It also makes lint much more useful on kernel code. I've also added a placeholder for st_birthtime to make a UFS2 import easier at some future date. Requested by and OK deraadt@
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-231-8/+8
| | | | | | | 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
* 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.
* Since LK_RECURSEFAIL and LK_CANRECURSE contradict each otherart2002-03-171-6/+6
| | | | | (although they are not opposites), avoid setting LK_CANRECURSE if LK_RECURSEFAIL is set in the caller.
* First round of __P removal in sysmillert2002-03-141-10/+10
|
* UBC was a disaster. It worked very good when it worked, but on someart2001-12-191-30/+5
| | | | | | | | | 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.
* Don't sleep on VXLOCK if LK_NOWAIT.art2001-12-101-1/+5
|
* Merge in struct uvm_vnode into struct vnode.art2001-12-101-4/+4
|
* Merge in the unified buffer cache code as found in NetBSD 2001/03/10. Theart2001-11-271-5/+26
| | | | | | | 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.
* New function vn_marktext - mark a vnode as executing a text image.art2001-11-151-1/+11
| | | | Use where VTEXT was set in vnode flags before. Doesn't do anything else (yet).
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-061-3/+1
| | | | (Look ma, I might have broken the tree)
* Ignore O_TRUNC on open() if we are not opening a regular file.millert2001-07-161-2/+2
| | | | csapuntz@ OK'd
* remove old vmart2001-06-271-8/+2
|
* KNFderaadt2001-06-221-3/+3
|
* Add a fo_stat member to struct fileops. Used soon.art2001-05-141-2/+3
| | | | Also add a stat function for kqueue from FreeBSD.
* Implement a wrapper round vn_stat that takes the same argumentsart2001-05-141-2/+16
| | | | as soo_stat and pipe_stat.
* port kqueue changes from freebsd, plus all required openbsd glue.provos2001-03-011-81/+6
| | | | | | | okay deraadt@, millert@ from jlemon@freebsd.org: extend kqueue down to the device layer, backwards compatible approach suggested by peter@freebsd.org
* support for kernel events on vnodes, from jlemon@freebsd.org, okay art@provos2000-11-211-1/+84
|
* non-O_NOFOLLOW error introduced by accident, this is fragile code..deraadt2000-04-251-1/+2
|
* Change kernel-only open flag FNOSYMLINK to userland-visible O_NOFOLLOW;millert2000-04-211-12/+9
| | | | | | adapated from FreeBSD. Also change O_FSYNC to the more standard O_SYNC and document it. open(2) needs some real examples for proper usage, to come later.
* Change struct file interface methods read and write to pass file offset incsapuntz2000-04-191-12/+23
| | | | | | | and out. Make pread/pwrite in netbsd & linux thread safe - which is the whole point anyway.
* FIBMAP ioctl from Linux, only usable on ISO 9660 FS. Note that the lbaangelos1999-11-131-1/+5
| | | | | | returned is in 512-byte sectors, so if you're going to use it for things like DVD, you need to divide the result by 4 (for 2048-byte sectors). OK deraadt@
* change a & to &&. From dima@best.netart1999-08-261-2/+2
|
* ugly Cderaadt1999-07-181-2/+2
|
* adaptation to uvm vnode pagerart1999-02-261-1/+10
|
* Reinstate supposed dead codecsapuntz1998-12-051-1/+2
|
* Dead code eliminationcsapuntz1998-12-051-2/+1
|
* Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockcsapuntz1998-08-061-2/+2
| | | | | | | | | | | | 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).
* Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned (size_t) and don't return EINVAL if it is < 0 in sys_{read,write}. Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC. vn_rdwr() must now take a size_t * ↵millert1998-07-281-4/+6
| | | | as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
* Re-enabled write protection on read-only file system mounts. Thanks tocsapuntz1998-01-151-3/+1
| | | | Niels for pointing this one out.
* Get rid of dumping across symlinks. Races can cause this to be problematiccsapuntz1998-01-091-2/+10
| | | | from a security standpoint (i.e. arbitrary files on the FS can be wiped out).
* extra ()deraadt1997-12-101-2/+2
|
* Remove special case for O_TRUNC that is irelevant now thatmillert1997-12-101-2/+2
| | | | we disallow O_TRUNC with O_RDONLY.
* try again; proactively check that O_TRUNC has FWRITEderaadt1997-12-101-3/+5
|
* only permit O_TRUNC if FWRITE is set; chatted about by millert and myself for nearly an hourderaadt1997-12-101-2/+2
|
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-11/+47
|
* prevent open() with wrong flagsderaadt1997-10-241-1/+3
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-47/+11
|
* VFS Lite2 Changescsapuntz1997-10-061-11/+47
|
* let us all try this for a while, and argue amongst ourselves.deraadt1997-08-041-4/+5
| | | | make a read(2) on an open'd directory return 0 bytes. always.
* cannot do this; flipk has found test cases where this failsderaadt1997-07-151-3/+1
|
* Do not force FOLLOW (to follow symbolic links) when creating new filestholo1997-07-111-1/+3
|
* From NetBSD: 960217 mergeniklas1996-03-031-12/+28
|
* initial import of NetBSD treederaadt1995-10-181-0/+423