summaryrefslogtreecommitdiff
path: root/sys/miscfs/fdesc
AgeCommit message (Collapse)Author
2002-08-23Cleanup change. Since almost all callers (except one) of getvnode did a FREFArtur 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-03-14First round of __P removal in sysTodd C. Miller
2002-02-13More FREF/FRELE on relevant places. Now, only sys_mmap and a bunch of ioctl ↵Artur Grabowski
functions in sys/compat are left.
2002-02-12More FREF/FRELE protection. This time all users of getvnode.Artur Grabowski
2002-02-02Be more consistent about using fd_getfile where it matters.Artur Grabowski
2001-12-19UBC was a disaster. It worked very good when it worked, but on someArtur Grabowski
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.
2001-12-04Readd VOP_MMAP, will be used soon. Right now it's just a question toArtur Grabowski
the filesystem if we're allowed to mmap the file.
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-10-26 - every new fd created by falloc() is marked as larval and should not be usedArtur Grabowski
any anyone. Every caller of falloc matures the fd when it's usable. - Since every lookup in the fd table must now check this flag and all of them do the same thing, move all the necessary checks into a function - fd_getfile.
2001-06-23Get rid of several unused vnode operationsConstantine Sapuntzakis
2001-05-23Fix getattr and setattr.Artur Grabowski
- getattr now uses fo_stat from fileops to obtain information about the fd and translates it back to vattr. - setattr now uses getvnode to the get vnode from the fd and obeys MNT_RDONLY flag. - Do proper locking on setattr. - Don't allow setattr on directories because of possible deadlocks.
2001-05-15LIST_FOREACH instead of manually doing the same thing.Artur Grabowski
2001-05-15Switch from homegrown locking of the hash to lockmgr.Artur Grabowski
2001-05-15Don't keep the reference to the root vnode all the time. Treat the root vnodeArtur Grabowski
just like all other vnodes. This removes a lot of code, simplifies unmount (which was incorrect btw.) and removes the need for our own mount structure.
2001-05-14gc OLD_PIPE.Artur Grabowski
2001-05-14More generic arguments to soo_stat.Artur Grabowski
2001-05-14More generic arguments to pipe_stat.Artur Grabowski
2001-02-20use void * consistently in vfs_mount and sys_mount. ok @artassar
2000-02-07update to use new checkexp vfs operationassar
1999-10-13Don't try to call VOP_SETATTR on a pipe. From <cky@pobox.com>Artur Grabowski
1999-08-13Better fix for fdesc/procfs panic.Constantine Sapuntzakis
1999-08-13in *_readdir(), constrain uio_offset to make sure it is right; cstone@pobox.comTheo de Raadt
1999-05-31New struct statfs with mount options. NOTE: this replaces statfs(2),Todd C. Miller
fstatfs(2), and getfsstat(2) so you will need to build a new kernel before doing a "make build" or you will get "unimplemented syscall" errors. The new struct statfs has the following featuires: o Has a u_int32_t flags field--now softdep can have a real flag. o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man page used to lie about setting invalid/unused fields to -1. SunOS does that but our code never has. o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9 and having it there but always 0 is confusing. It is conceivable that this may cause some old code to not compile but that is better than silently breaking. o Adds a mount_info union that contains the FSTYPE_args struct. This means that "mount" can now tell you all the options a filesystem was mounted with. This is especially nice for NFS. Other changes: o The linux statfs emulation didn't convert between BSD fs names and linux f_type numbers. Now it does, since the BSD f_type number is useless to linux apps (and has been removed anyway) o FreeBSD's struct statfs is different from our (both old and new) and thus needs conversion. Previously, the OpenBSD syscalls were used without any real translation. o mount(8) will now show extra info when invoked with no arguments. However, to see *everything* you need to use the -v (verbose) flag.
1999-04-28zap the newhashinit hack.Artur Grabowski
Add an extra flag to hashinit telling if it should wait in malloc. update all calls to hashinit.
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-06-11return EOPNOTSUPP for chflags() changes; peter@freebsdTheo de Raadt
1998-02-08Updates to match type changes in syscall tablesThorsten Lockert
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-08-01From NetBSD (mycroft):Todd C. Miller
Eliminate bogus uses of V{READ,WRITE,EXEC}. Use S_I[RWX]{USR,GRP,OTH} where appropriate.
1996-09-26still handle OLD_PIPE caseTheo de Raadt
1996-09-10Bring pipe_stat prototype in scopeNiklas Hallqvist
1996-09-07Understand DTYPE_PIPEThorsten Lockert
1996-04-17fix a bug w/ fd/tty file (from netbsd).Michael Shalayeff
1996-02-27From NetBSD: update to 960217 sourcesNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt