summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_syscalls.c
AgeCommit message (Collapse)Author
2002-02-12Fix all users of getsock to use FREF/FRELE properly.Artur Grabowski
2002-02-10theo doesn't like this codeNathan Binkert
2002-02-08- Rename FILE_{,UN}USE to FREF and FRELE. USE is a bad verb and we don't haveArtur Grabowski
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)).
2002-02-05Add counting of temporary references to a struct file (as opposed to referencesArtur Grabowski
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.
2002-01-20Move nfs_norsvport out from behind #ifdef NFSSERVER so ramdiskHugh Graham
kernels with only NFSCLIENT defined can build.
2002-01-16use queue.h macro'sEric Jackson
remove register
2002-01-11Add a new sysctl that removes the requirement for reserved ports to beNathan Binkert
used by the nfs server.
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-11-27Merge in the unified buffer cache code as found in NetBSD 2001/03/10. TheArtur Grabowski
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.
2001-11-15Remove creds from struct buf, move the creds that nfs need into the nfs node.Artur Grabowski
While in the area, convert nfs node allocation from malloc to pool and do some cleanups. Based on the UBC changes in NetBSD. niklas@ ok.
2001-06-26Remove left-over code from cleaning that was causing servers to fail to respondConstantine Sapuntzakis
2001-06-25Remove NQNFSConstantine Sapuntzakis
2001-02-23Change the B_DELWRI flag using buf_dirty and buf_undirty instead ofConstantine Sapuntzakis
manually twiddling it. This allows the buffer cache to more easily keep track of dirty buffers and decide when it is appropriate to speed up the syncer. Insipired by FreeBSD. Look over by art@
2000-11-09PHOLD the nfsd.Artur Grabowski
PRELE the nfsiod when it exits (shouldn't be necessary to PHOLD it because it's a kernel thread, but it doesn't hurt.
2000-05-24return ENOSYS for NFSSVC_BIOD request. since none to call it anywayMichael Shalayeff
2000-05-19from tsarna@netbsd.org (sysctl changes to come later):Michael Shalayeff
Death to nfsiod! It is replaced by kernel threads that do the same thing. The number of kernel threads used is set with the vfs.nfs.iothreads sysctl.
2000-02-07moved sys_getfh to vfs_syscalls.cassar
1997-12-02More splbio()'s added so that reassignbuf can do its thing.Constantine Sapuntzakis
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-03-30ifdef out some vars used only w/ NFSCLIENT definedMichael Shalayeff
1996-06-14Keep dirty list used by in-kernel update(8) in sync with buffersThorsten Lockert
1996-04-21partial sync with netbsd 960418, more to comeTheo de Raadt
1996-04-17Minor cleanups. Checked against Lite2.Michael Shalayeff
(NetBSD's was really just a Lite2's, but w/ 64bit support)
1996-03-31From NetBSD: NFSv3 import (tomorrow's Net's kernel)Michael Shalayeff
Open's patches kept in. i'll possibly take a look at Lite2 soon, is there smth usefull ?..
1996-02-29From NetBSD: merge with 960217 (still NFSv2)Niklas Hallqvist
1995-12-21from cgd; handle 64-bit pointers and longsTheo de Raadt
1995-10-18initial import of NetBSD treeTheo de Raadt