summaryrefslogtreecommitdiff
path: root/sys/nfs
AgeCommit message (Collapse)Author
2002-05-10Fix for PR2641. Length calculation was wrong in loop. Include commentConstantine Sapuntzakis
describing fixed length calculation
2002-04-29constrain readdirplus request count; j@pureftpd.org, ok costaTheo de Raadt
2002-04-11Back out nfs_realign() change, it causes "pool_get: must have NOWAIT" panics.Todd C. Miller
deraadt@ OK
2002-04-10nfs_realign from FreeBSD. The old code was over-optimized, occasionally ↵Constantine Sapuntzakis
overwriting other parts of a TCP stream, occasionally dereferencing NULL pointers
2002-03-14First round of __P removal in sysTodd C. Miller
2002-02-23Sigh. The diff is out for testing for three months without a single problem.Artur Grabowski
Two days after commit people report serious lockups all over the place. Back out nfs locking changes.
2002-02-22More locking in the NFS codeConstantine Sapuntzakis
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-08There are NFS servers where it's possible to modify a symbolic link. Remove ↵Constantine Sapuntzakis
aggressive optimization
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-02-04Cleanup mountroot-related definitions.Miod Vallat
2002-01-28add NFS_VER4Jim Rees
2002-01-23Pool deals fairly well with physical memory shortage, but it doesn't dealArtur Grabowski
well (not at all) with shortages of the vm_map where the pages are mapped (usually kmem_map). Try to deal with it: - group all information the backend allocator for a pool in a separate struct. The pool will only have a pointer to that struct. - change the pool_init API to reflect that. - link all pools allocating from the same allocator on a linked list. - Since an allocator is responsible to wait for physical memory it will only fail (waitok) when it runs out of its backing vm_map, carefully drain pools using the same allocator so that va space is freed. (see comments in code for caveats and details). - change pool_reclaim to return if it actually succeeded to free some memory, use that information to make draining easier and more efficient. - get rid of PR_URGENT, noone uses it.
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-22Init the creds in nfs_open too.Artur Grabowski
Repairs swap over nfs. Tested by hugh@
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-14Workaround a compiler bug on m68k.Artur Grabowski
2001-12-11minor fixes.Artur Grabowski
2001-12-10Big cleanup inspired by NetBSD with some parts of the code from NetBSD.Artur Grabowski
- 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
2001-12-10Merge in struct uvm_vnode into struct vnode.Artur Grabowski
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-12-01Unlock and drop vnode if VOP_GETATTR fails.Artur Grabowski
2001-11-30Whooops.Artur Grabowski
Stop returning EINPROGRESS now that the caller doesn't understand it anymore.
2001-11-30Call buf_cleanout, which handles wakeupsConstantine Sapuntzakis
2001-11-29Make sure the nfs vnodes are on the syncer worklist.Artur Grabowski
2001-11-29Make sure the whole buffer is initialized before calling bgetvp.Artur Grabowski
Recommended by csapuntz@
2001-11-29Correctly handle b_vp with bgetvp and brelvp in {get,put}pages.Artur Grabowski
Prevents panics caused by vnodes being recycled under our feet.
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-11-14allow swaples diskless configs; deradt@ okMichael Shalayeff
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-09-16Add some missing lengths checks when passing data from userland toTodd C. Miller
kernel. From based on NetBSD patches.
2001-08-19Remove some more.Artur Grabowski
2001-08-19Stop whining.Artur Grabowski
2001-08-19add __sparc64__ to list of arch's not checked for bloated structures (alsoJason Wright
correct alpha -> __alpha__)
2001-07-27Don't accept arbitrary size file handles as the kernel buffer we are copyingConstantine Sapuntzakis
it into is fixed and on the stack
2001-07-26Back out changes to symlink and mknod that were not well tested.Todd C. Miller
A simple mknod at causes a kernel panic (uvm_fault).
2001-07-26change vop_symlink and vop_mknod to return vpp (the created node)assar
refed, so that the caller can actually use it. update callers and file systems that implement these vnode operations ok'd by art
2001-07-06From NetBSD; Server could lose requests during write-gathering, causing clientNiklas Hallqvist
hangs. Fixes the old typical pwd_mkdb waiting on getblk hang during make release over NFS.
2001-07-03In readdir, set the calling process in the constructed uio structures.Constantine Sapuntzakis
Fixes problems with interruptible NFS mounts.
2001-06-30Get root filehandle via nfs_root.Constantine Sapuntzakis
Fix problem with diskless clients
2001-06-27recieve -> receiveNathan Binkert
2001-06-27Remove old vm.Artur Grabowski
2001-06-26Remove left-over code from cleaning that was causing servers to fail to respondConstantine Sapuntzakis
2001-06-25Get rid of some dead code caused by the last commitConstantine Sapuntzakis
2001-06-25Remove NQNFSConstantine Sapuntzakis