summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_vnops.c
AgeCommit message (Collapse)Author
2001-05-14Add a fo_stat member to struct fileops. Used soon.Artur Grabowski
Also add a stat function for kqueue from FreeBSD.
2001-05-14Implement a wrapper round vn_stat that takes the same argumentsArtur Grabowski
as soo_stat and pipe_stat.
2001-03-01port kqueue changes from freebsd, plus all required openbsd glue.Niels Provos
okay deraadt@, millert@ from jlemon@freebsd.org: extend kqueue down to the device layer, backwards compatible approach suggested by peter@freebsd.org
2000-11-21support for kernel events on vnodes, from jlemon@freebsd.org, okay art@Niels Provos
2000-04-25non-O_NOFOLLOW error introduced by accident, this is fragile code..Theo de Raadt
2000-04-21Change kernel-only open flag FNOSYMLINK to userland-visible O_NOFOLLOW;Todd C. Miller
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.
2000-04-19Change struct file interface methods read and write to pass file offset inConstantine Sapuntzakis
and out. Make pread/pwrite in netbsd & linux thread safe - which is the whole point anyway.
1999-11-13FIBMAP ioctl from Linux, only usable on ISO 9660 FS. Note that the lbaAngelos D. Keromytis
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@
1999-08-26change a & to &&. From dima@best.netArtur Grabowski
1999-07-18ugly CTheo de Raadt
1999-02-26adaptation to uvm vnode pagerArtur Grabowski
1998-12-05Reinstate supposed dead codeConstantine Sapuntzakis
1998-12-05Dead code eliminationConstantine Sapuntzakis
1998-08-06Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockConstantine Sapuntzakis
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).
1998-07-28Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned ↵Todd C. Miller
(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 * as its 9th argument so change that and clean up uses of vn_rdwr(). Fixes 549 + more
1998-01-15Re-enabled write protection on read-only file system mounts. Thanks toConstantine Sapuntzakis
Niels for pointing this one out.
1998-01-09Get rid of dumping across symlinks. Races can cause this to be problematicConstantine Sapuntzakis
from a security standpoint (i.e. arbitrary files on the FS can be wiped out).
1997-12-10extra ()Theo de Raadt
1997-12-10Remove special case for O_TRUNC that is irelevant now thatTodd C. Miller
we disallow O_TRUNC with O_RDONLY.
1997-12-10try again; proactively check that O_TRUNC has FWRITETheo de Raadt
1997-12-10only permit O_TRUNC if FWRITE is set; chatted about by millert and myself ↵Theo de Raadt
for nearly an hour
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-24prevent open() with wrong flagsTheo de Raadt
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-08-04let us all try this for a while, and argue amongst ourselves.Theo de Raadt
make a read(2) on an open'd directory return 0 bytes. always.
1997-07-15cannot do this; flipk has found test cases where this failsTheo de Raadt
1997-07-11Do not force FOLLOW (to follow symbolic links) when creating new filesThorsten Lockert
1996-03-03From NetBSD: 960217 mergeNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt