summaryrefslogtreecommitdiffstats
path: root/sys/nfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* move the declaration of nfsstats from nfs_bio.c tothib2006-11-012-3/+4
| | | | | | | nfs_subs.c so it gets pulled in for NFSSERVER only kernels. ok deraadt@,krw@
* Dont initialize the nm_srtt and nm_sdrtt arraysthib2006-10-281-4/+4
| | | | | | out of bounds. ok pedro@
* typo, from Bret Lambertpedro2006-10-041-2/+2
|
* Fix the way delays between request retransmissions are calculatedthib2006-09-202-6/+10
| | | | | | | in the case where NFSERR_TRYLATER is received from the server. Adapted from NetBSD. ok pedro@, tedu@
* Fix up mbuf length and do 64-bit alignment where needed, joint workpedro2006-08-041-5/+54
| | | | with Nicholas Marriott <nicm__@ntlworld.com>, closes PR 5036
* rename vfs_busy() flags VB_UMIGNORE/VB_UMWAIT to VB_NOWAIT/VB_WAITsturm2006-06-251-2/+2
| | | | requested by and ok pedro
* adopt to extended rtrequest / rtalloc1 apihenning2006-06-171-2/+2
|
* move vfs_busy() to rwlocks and properly hide the locking api from vfssturm2006-06-141-2/+2
| | | | ok tedu, pedro
* revert vfs.nfs.privport sysctl, broke a few architecturesavsm2006-05-293-20/+11
| | | | requested by deraadt@
* Add support for NFS mounts to be from non-reserved ports:avsm2006-05-283-11/+20
| | | | | | | | - 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
* prettier printingderaadt2006-05-261-2/+3
|
* add a name to rwlock so that we can tell where procs are getting stucktedu2006-05-071-2/+2
| | | | | | without breaking into ddb. doubles the size of rwlock [1], but moving forward this really helps. ok/tested pedro fgsch millert krw [1 - next person to add a field to this struct gets whipped with a wet noodle]
* remove the simplelock argument from vfs_busy() which is currently notsturm2006-04-301-2/+2
| | | | | | used and will never be used this way in VFS requested by and ok pedro, ok krw, biorn
* In nfs_readdir(), if the buffer provided by the user is not big enoughpedro2006-04-261-1/+2
| | | | | to hold all the entries a directory has, we can't signal EOF. Okay deraadt@ and miod@.
* Remove unused debug code that sneaked in by accident long agopedro2006-04-202-11/+2
|
* Remove unused mount list simple_lock() goopedro2006-04-191-3/+1
|
* When setting timestamps TOSERVER having write permissions is adaquate;otto2006-04-022-2/+5
| | | | | problem experienced by Han Boetes; fix with "nfs4" rick at snowhite dot cis dot uoguelph dot ca. ok pedro@ tedu@
* Fix NULL dereference on error condition in nfs_reply(). nmp->nm_so canaaron2006-01-241-2/+3
| | | | | become NULL if the nfs_reply() -> nfs_receive() -> nfs_reconnect() datapath fails. pedro@ ok "I think this is a good fix"
* Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.pedro2006-01-091-1/+7
| | | | Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
* Remove unused sw_nblks field of struct swdevt. Then, remove swapconf()miod2005-12-272-58/+1
| | | | which duplicates work done by uvm_swap_init().
* No need for vfs_busy() and vfs_unbusy() to take a process pointerpedro2005-11-302-5/+5
| | | | anymore. Testing by jolan@, thanks.
* Use NULL where NULL is meantpedro2005-11-191-2/+2
|
* Remove unnecessary lockmgr() archaism that was costing too much in termspedro2005-11-192-17/+16
| | | | | | of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
* Fix reading large files; from NetBSD. Somehow this was overlookedotto2005-10-311-4/+5
| | | | when earlier merges were done. Fixes PR 4250. ok millert@ deraadt@
* Remove v_vnlock from struct vnode, okay krw@ tedu@pedro2005-10-191-3/+1
|
* toast cast of lvalue; pr 4289deraadt2005-09-291-3/+3
|
* Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@millert2005-06-181-9/+5
|
* make nfsstats counters 64 bit.marius2005-06-081-34/+34
| | | | ok pedro@
* optimize nfs_sync() a bit, by not iterating over the list of vnodespedro2005-05-221-3/+9
| | | | | belonging to a mount point if we want to skip all of them, okay art@ a couple of days ago, commit it deraadt@
* careful strlcpy and snprintf return handling; ok pedro beckderaadt2005-04-211-1/+3
|
* use pool for struct nfsreq; tedu@ pedro@ ok and testing by mark patruck <mark@2ls4agd.net> on several archsmickey2005-04-023-10/+16
|
* at long last, disable write gathering for v3. ok like everyonetedu2005-04-011-6/+7
|
* re-commit marius commit:deraadt2005-03-311-2/+3
| | | | | | | | | | > 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?
* re-commit marius commit:deraadt2005-03-311-10/+1
| | | | | | | | | | > 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?
* backout nfs_subs.c rev1.51 nfs_vfsops.c rev1.54:pvalchev2005-02-012-4/+12
| | | | | | | 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
* fix preposterous time warnings in the nfs client; caused by false hitsmarius2005-01-242-12/+4
| | | | | | in the attribute cache based on original fix by pedro@, ok pedro@, tedu@; testing kettenis@
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-264-17/+14
| | | | no change in compiler assembly output.
* In nfs_connect() move the setting of so->so_rcv.sb_timeo out of themillert2004-12-101-11/+8
| | | | | if () else since it is common to both cases and makes the code clearer. OK pedro@
* enable receive() accounting and use uio_procp for send() accounting, toomarkus2004-11-181-1/+2
| | | | ok deraadt, jared, djm
* implememtation -> implementationpedro2004-11-041-2/+2
|
* NFS commit coalescion: instead of sending a commit for each block, coalescemarius2004-08-036-15/+262
| | | | | | | | these into larger ranges wherever possible. this should speed up NFS writes quite a bit. ok art@ millert@ pedro@ tedu@
* When accessing device nodes over nfs, do not trim major and minor numbersmiod2004-08-031-3/+3
| | | | | | to 8 bits only; found the hard way by henning@. Ok deraadt@ marius@ millert@
* kqueue support for NFS, adapted from netbsd.marius2004-07-215-8/+413
| | | | ok art@ pedro@, "get it in" deraadt@
* kill netiso stuff here as well, millert okhenning2004-07-163-38/+4
|
* on nfs_reconnect(), don't reset the rexmit of all nfs reqs, but onlypedro2004-07-141-4/+4
| | | | of those belonging to the given nfs mount. ok marius@, tedu@
* Change mode_t and nlink_t from 16bit to 32bit. This allows us tomillert2004-07-131-6/+6
| | | | | | | | | | use mode_t in syscalls.master and to use mode_t in more places in the kernel. It also makes lint much more useful on kernel code. I've also added a placeholder for st_birthtime to make a UFS2 import easier at some future date. Requested by and OK deraadt@
* fix for where a TCP NFS connection could sleep in soreceive() forever,marius2004-07-101-4/+22
| | | | | | | this fixes some problems people have experienced with NFS mounts freezing on NFS server reboot/crash. ok deraadt@ pedro@ tholo@
* Minor fixes suggested by nordin@ and henning@tholo2004-06-251-8/+7
| | | | ok millert@
* This moves access to wall and uptime variables in MI code,tholo2004-06-245-37/+43
| | | | | | | | | | | | | | encapsulating all such access into wall-defined functions that makes sure locking is done as needed. It also cleans up some uses of wall time vs. uptime some places, but there is sure to be more of these needed as well, particularily in MD code. Also, many current calls to microtime() should probably be changed to getmicrotime(), or to the {,get}microuptime() versions. ok art@ deraadt@ aaron@ matthieu@ beck@ sturm@ millert@ others "Oh, that is not your problem!" from miod@
* First step towards more sane time handling in the kernel -- this changestholo2004-06-216-25/+25
| | | | | | | | 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@