summaryrefslogtreecommitdiffstats
path: root/sys/nfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* - /dev/drum is long gone; sync comment with realityjasper2009-06-231-5/+2
| | | | ok thib@
* Don't allocate an mbuf cluster without checking to see if it willblambert2009-06-061-2/+3
| | | | | | actually get us anything. ok thib@
* Consolidate error handling in read case.blambert2009-06-061-16/+15
| | | | ok thib@
* All caller of buf_acquire were doing bremfree before the call.art2009-06-062-5/+2
| | | | | Just put it in the buf_acquire function. oga@ ok
* Consolidate error handling code. Much less atrocious than before.blambert2009-06-061-18/+15
| | | | "get it in" thib@
* turdshine previousthib2009-06-061-153/+154
|
* bring back rev1.70thib2009-06-051-6/+9
|
* revert to 1.67 to unbreak NFS writes; ok beck@ thib@naddy2009-06-051-49/+45
|
* - make this a lot more readable; no binary changejasper2009-06-051-140/+141
| | | | ok thib@
* EPERM from VOP_ACCESS() is always an error, so don't hide it.thib2009-06-051-6/+9
| | | | | | Diff from FreeBSD. OK blambert@
* typo; init -> in itblambert2009-06-041-2/+2
| | | | ok thib@
* the following:blambert2009-06-041-10/+13
| | | | | | | | | | error = foo(); if (!error) bar(); is an alien construct; replace with one from this planet ok thib@
* Move code that logically belongs together to be together.blambert2009-06-041-31/+29
| | | | ok thib@
* Plug mbuf leaks in the DRC, when we reuse entries we didn'tthib2009-06-041-9/+17
| | | | | | | | | free the mbufs the entry has (socket name, reply). Found with dlg@'s amazing mbuf debug diff, fix is based on the same thing in NetBSD (by yamt@netbsd.org). OK blambert@
* Add some descriptive comments, because not having to read NFS codeblambert2009-06-041-18/+19
| | | | | | is good for the brain. ok thib@
* simplify argument list for nfssvc_nfsd()blambert2009-06-042-17/+12
| | | | ok thib@
* Demacro nfsm_lookup for great justice.blambert2009-06-043-36/+157
| | | | | | Thanks to ckuethe for saving much typing with a drive-by perl script. ok thib@
* Place code to search for/sleep waiting for an nfs socket into its ownblambert2009-06-031-27/+53
| | | | | | code; makes the cleaned-up function much more legible. ok thib@
* kill some unused defines, don't do an ifndef dance forthib2009-06-031-13/+2
| | | | | things that should be defined here and remove a silly comment.
* remove cruft that snuck in with previousthib2009-06-031-2/+1
|
* Lift the NFS over UDP retransmit logic from FreeBSD.thib2009-06-033-69/+158
| | | | | | | | | | | | | | OK blambert@ FreeBSD commit message: Refactor the NFS over UDP retransmit timeout estimation logic to allow the estimator to be more easily tuned and maintained. There should be no functional change except there is now a lower limit on the retransmit timeout to prevent the client from retransmitting faster than the server's disks can fill requests, and an upper limit to prevent the estimator from taking to long to retransmit during a server outage.
* give the retransmission count booking keeping a facelift,thib2009-06-024-33/+15
| | | | | | | just store the maximun amount of rexmits in one place and cleanup. Also make sure this only effects soft mounts. OK blambert@
* Remove unused procnums (NQNFS leftovers) and cleanup.thib2009-05-305-21/+9
| | | | OK blambert@ sometime ago
* retire the nfs rtt log code, this isnt really all thatthib2009-05-225-177/+5
| | | | | | | usefull, and has been disabled for a long long time. Cleans house a bit. OK blambert@
* IO_METASYNC has been a noop since around 4.4BSD-Lite, thethib2009-05-212-19/+4
| | | | | | idea never really caught on anywhere so retire it. "gank this shizzle", blambert@
* nicer (unique) wmesg for the tsleep(9) in nfs_reconnect();thib2009-05-151-2/+2
|
* Convert macros to functions to reduce kernel memory usage.blambert2009-04-136-47/+56
| | | | In snaps for a while (way too long, according to deraadt@)
* Convert a sizeable macro to a much-leaner function. Saves (IIRC) 5k on i386.blambert2009-03-304-53/+86
| | | | In snaps for a while.
* We don't count buffercache stats in the B_PHYS case, so fix nfs to notoga2009-03-191-5/+1
| | | | | | | | | | | | increment the num{read,write} and pending{read,write} statistics in that case, since biodone won't change them on completion. On another note, I'm not sure that we use physical buffers for swapping over nfs anymore, so this chunk may be superfluous. beck@ came up with the same diff "So anyway rather than me commiting it from my copy, I'm giving you the OK and the commit. since it officially makes you a buffer cache and NFS hacker };-)"
* Introduce splsoftassert(), similar to splassert() but for soft interruptmiod2009-03-151-2/+2
| | | | | | levels. This will allow for platforms where soft interrupt levels do not map to real hardware interrupt levels to have soft ipl values overlapping hard ipl values without breaking spl asserts.
* fix PR 6082: do not create more fd's than will fit in the message onotto2009-02-222-9/+12
| | | | the receiving side when passing fd's. ok deraadt@ kettenis@
* Remove cur_usec variable that is no longer used.bluhm2009-01-281-6/+1
| | | | ok blambert@
* Correct my timeradd() thinko in nfsrv_writegather()blambert2009-01-271-2/+2
| | | | pointed out by bluhm@, "obvious" thib@
* oops. forgot to remove a debug printf from the diff.thib2009-01-241-2/+1
| | | | (that I applied to a clean tree to commit)
* Use a timespec for the server write deadline and procrastinationthib2009-01-244-22/+20
| | | | | | | | | timeouts. Rrids us of the ugly cur_sec variable, and some shadows. Also helps with granularity. Diff from blambert@ who asked me to commit this since he's away for some days and we wanted to put this in with the timespec changes in the nfsnode.
* Use a timespec instead of a time_t for the clients nfsnodethib2009-01-245-32/+38
| | | | | | | | mtime, gives us better granularity, helps with cache consistency. Idea lifted from NetBSD. OK blambert@
* propagate the O_EXCL flag down to the file systems, by settingthib2009-01-242-18/+8
| | | | | | | | | | VA_EXCLUSIVE. Handle this in NFS, also in NFS use arc4random() for the create verifier instead of an uninitialized long and the address of the first interface (which is likely to be lo0). Lifted from NetBSD with small tweaks; "looks good", miod@ OK blambert@
* magic 8 -> nitems(nfs_backoff)thib2009-01-241-2/+2
| | | | prompted by David <dunnoseriously _att_ gmail.com>
* make sure the from mbuf gets freed on error to.thib2009-01-241-2/+2
| | | | | from David <dunnoseriously _att_ gmail.com> ok blambert@
* After the NFS server had sent a reply of size readsize or readdirsize,bluhm2009-01-221-3/+3
| | | | | | | | | | | | the udp receive space got completely filled up. Even if the next packet from the server was a small reply, it got dropped by udp_input(). After a second the client resent the NFS request. Doubling rcvreserve reduces the chance of retransmits by having enough recv space for multiple NFS replies even if there comes a big one. found with pedro@, ok blambert@, thib@, pedro@
* The variable nfs_reqq was protected by splsoftnet() only in 3 outbluhm2009-01-221-3/+7
| | | | | | | of 5 cases. In the functions nfs_reconnect() and nfs_reply() put the TAILQ_FOREACH over nfs_reqq also inside splsoftnet() protection. found with pedro@, ok blambert@, pedro@, thib@
* Start reworking NFS client mbuf handling by creating an interface whichblambert2009-01-203-30/+44
| | | | | | | | | | | | | requires well-formed mbuf chains to work. Existing function name is now a wrapper to this interface. Much, much more work to follow which will build on this. Truly change we can believe in. ok thib@, who would have preferred this in two commits, but I'm impatient :) testing on multiple arches (i386, arm, amd64, and sparc64 at least) by many, thanks to all who did so
* Introduce a macro to invalidate the attributethib2009-01-194-26/+25
| | | | | | | cache instead of setting n_attrstamp to 0 directly. Lift the macro name from NetBSD. prompted by and OK blambert@
* Remove unused members from struct nfsd.blambert2009-01-181-5/+1
| | | | ok thib@
* remove function which only called nfssvc_iod(), and pass nfssvc_iod()blambert2009-01-182-18/+10
| | | | | | to kthread_create() ok thib@
* Replace #ifndef DIAGNOSTIC with #ifdef to make the additional checksbluhm2009-01-181-6/+6
| | | | | | in diagnostic kernels. The typo comes from 4.4BSD-Lite2 via NetBSD. Found with pedro@, ok pedro@, blambert@, thib@
* add $OpenBSD$ tagthib2009-01-181-0/+1
|
* Perform the same access enforcements for set attributesthib2009-01-181-2/+2
| | | | | | | | | | | | | | | as for open/read/write etc, that is assume that the file as already been opened proper, this fixes an ancient ftruncate bug, that is if ftruncate was called on a file with no write modes, we'd return EACCES, this breaks posixy behavior. however, for e.g. truncate() we'll return EACCESS as we should. Diff from PR5880 by mickey. I had forgotten about this PR, and the fix but niklas@ ran into similar issues which prompted another review of this. OK kettenis@
* Add nfs ddb hooks, for now only to show all the outstanding nfsreq'sthib2009-01-181-0/+61
| | | | | | | and to print out struct nfsreq. "get it in so people can pound on it" blambert@ OK and information_s_ on the manpage from miod@
* turn nfs_msg into void functions, also make it take an nfsreqthib2009-01-162-16/+12
| | | | | | | argument since all of the info we need is there, makes it and the use it a tad bit nicer. ok blambert@