summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_vfsops.c
AgeCommit message (Collapse)Author
2007-09-11Replace nfsm_reqdone and nfsm_srvdone macros inline. No binary change.Bret Lambert
ok thib@
2007-06-20READDIRPLUS is v3 only, bail out if the mount isnt a v3.Thordur I. Bjornsson
Prevents weird things from happening. ok tedu@,pedro@
2007-06-13- Remove the nm_inprog member from struct nfsmount;Thordur I. Bjornsson
NQNFS leftover. - Remove setting of the NFSMNT_DISMINPROG flag, its set and unset in the same function servering no purpose, im however going to reuse it shortly. - kill an if thats always true (NFSMNT_KERB cant be set) - misc cleanup and KNF. ok beck@
2007-06-12remove some unused externs;Thordur I. Bjornsson
smallish cleanup (move prototypes and externs togather). ok toby@
2007-04-12remove unused members from struct nfsmount and nfsnode;Thordur I. Bjornsson
ok pedro@
2006-05-29revert vfs.nfs.privport sysctl, broke a few architecturesAnil Madhavapeddy
requested by deraadt@
2006-05-28Add support for NFS mounts to be from non-reserved ports:Anil Madhavapeddy
- new sysctl vfs.nfs.privport to require NFS mount requests to be on reserved ports when set to 1 (the default). - mountd now automatically sets the sysctl depending on the -n flag. - add mountd_flags to rc.conf to enable the -n flag at boot. deraadt@ ok
2006-04-19Remove unused mount list simple_lock() gooPedro Martelletto
2005-12-27Remove unused sw_nblks field of struct swdevt. Then, remove swapconf()Miod Vallat
which duplicates work done by uvm_swap_init().
2005-11-30No need for vfs_busy() and vfs_unbusy() to take a process pointerPedro Martelletto
anymore. Testing by jolan@, thanks.
2005-05-22optimize nfs_sync() a bit, by not iterating over the list of vnodesPedro Martelletto
belonging to a mount point if we want to skip all of them, okay art@ a couple of days ago, commit it deraadt@
2005-03-31re-commit marius commit:Theo de Raadt
> fix preposterous time warnings in the nfs client; caused by false hits > in the attribute cache > based on original fix by pedro@, ok pedro@, tedu@; testing kettenis@ was backed out because too close to release put back in now, since tree is unlocked. unfortunately it appears that even after MANY MAILS ON THIS SUBJECT, NOONE HAS DONE THIS. WTF? Noone wants to FINISH jobs anymore?
2005-02-01backout nfs_subs.c rev1.51 nfs_vfsops.c rev1.54:Peter Valchev
fix preposterous time warnings in the nfs client; caused by false hits in the attribute cache too close to release, save for immediately after unlock
2005-01-24fix preposterous time warnings in the nfs client; caused by false hitsmarius eriksen
in the attribute cache based on original fix by pedro@, ok pedro@, tedu@; testing kettenis@
2004-06-21First step towards more sane time handling in the kernel -- this changesThorsten Lockert
things such that code that only need a second-resolution uptime or wall time, and used to get that from time.tv_secs or mono_time.tv_secs now get this from separate time_t globals time_second and time_uptime. ok art@ niklas@ nordin@
2004-04-12make sockargs take void *, combine a len check.Ted Unangst
from pedro martelletto, ok markus@
2003-08-14constify vfsops; tedu@ okMichael Shalayeff
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2002-12-11in mountroot:Michael Shalayeff
check system clock against root atime, not mtime, since the later does not change that often and is a bad mark to sync unto. remove a bogus splnet() i've put way back in 96 w/ v3 integration. miod@ tested on diskless sparc and sparc64, mickey@ on hppa
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-10theo doesn't like this codeNathan Binkert
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-12-11minor fixes.Artur Grabowski
2001-12-10Merge in struct uvm_vnode into struct vnode.Artur Grabowski
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-14allow swaples diskless configs; deradt@ okMichael Shalayeff
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-06-30Get root filehandle via nfs_root.Constantine Sapuntzakis
Fix problem with diskless clients
2001-06-25Remove NQNFSConstantine Sapuntzakis
2001-06-24Change handling of NFS root vnode. Moves recognition of NFS root vnode intoConstantine Sapuntzakis
nfs_nget. Root vnode no longer pinned in inode cache. Also, forceable unmounts of an nfs file system now work even if there are extra references to the NFS root.
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-02-20use void * consistently in vfs_mount and sys_mount. ok @artassar
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-07update to use new checkexp vfs operationassar
2000-01-06Fix for NFS swap device.Steve Murphree
2000-01-01Correct casts in nfs_statfs() V3 code to correspond to reality (ie:Todd C. Miller
struct statfs). Also, Make sure we do signed arithmatic when computing f_bavail.
1999-06-10Fill in mount_info in nfs_decode_argsTodd C. Miller
o that way zero fields in nfs_args get filled in o changes via mount -u become visible
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.
1998-08-19Change fxdr_hyper to return a u_quad_t. This minimizes the evil clobberingConstantine Sapuntzakis
of lvalues that ANSI abhors. And it fixes df on NFS version 3 mounts on Sparcs.
1998-02-08Updates to match type changes in syscall tablesThorsten Lockert
1997-11-11Make diskless machines boot again. remove staticsNiklas Hallqvist
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-04-18oopsTheo de Raadt
1997-04-18new socket required if changing NOCONN; fvdlTheo de Raadt