summaryrefslogtreecommitdiffstats
path: root/sys/nfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* remove prototypes for nonexistent functionsthib2009-01-151-5/+1
|
* Trivial lvalue abuse fixes, no binary changes.grange2009-01-132-9/+19
| | | | ok millert@ tedu@
* expand the ifdef _KERNEL around kernel only function prototypesthib2008-12-271-8/+6
| | | | | | since they have no business being export to userland. OK blambert@
* Low hanging macro fruit. Inline the nfsm_srvstrsiz macro sincethib2008-12-242-10/+10
| | | | | | | | its used only once and nuke its definition. Stolen from blambert's bag'o'diffs. OK blambert@.
* remove argument names from function prototypes, this way thethib2008-12-241-17/+16
| | | | file shares the same sane style.
* fix a typo made in last commit, also slightly better wording forthib2008-12-241-3/+3
| | | | another comment.
* Replace the TRUE/FALSE defines with 1/0 respectively. This doesn'tthib2008-12-248-88/+31
| | | | | | | hurt readability and it was just plain annoying seeing them defined in every other .c file. OK blambert@
* small indent fixthib2008-12-231-9/+8
|
* use the shiny new nitems macrothib2008-11-241-2/+2
|
* Revert last commit; mbuf leaks are not solved by double-freeing mbuf chainsblambert2008-10-311-5/+2
| | | | | | blambert@-- Real solution is to fix NFS mbuf handling.
* Plug mbuf leak in RPC record error case.blambert2008-10-261-2/+5
| | | | ok thib@
* Be pedantically correct in freeing allocated mbufs, even upon clearingblambert2008-10-201-1/+5
| | | | | | the server cache on shutdown. ok thib@
* Don't hide the fact that NFS uses vop_generic_* functions behindblambert2008-10-162-16/+12
| | | | | | #define's in nfs_var.h ok thib@
* zap a deprecated macro, NMOD.thib2008-09-121-2/+1
|
* provide a NOTE_TRUNCATED kq hint in nfs_setattr() if the filethib2008-09-121-2/+6
| | | | | | | shrinks, same thing as UFS does. ok/pointers pedro@ ok blambert@
* move the declaration of nfsrv3_procs to nfs_syscalls.cthib2008-09-122-36/+32
| | | | ok blambert@
* issue a NOTE_TRUNCATE if the file size has shrinkedthib2008-09-111-4/+9
| | | | ok tedu@, blambert@, art@
* remove the #if 0'ed NFS_ATTRTIMEO() macro since it wasthib2008-08-311-12/+1
| | | | | | replaced by a function long ago.. ok blambert@
* Correctly invalidate attribute cache entries in case the vnode modepedro2008-08-251-3/+4
| | | | changes, okay beck@, tedu@ and thib@.
* Fix 'if ();' construction introduced in last commit, okay deraadt@pedro2008-08-211-2/+2
|
* Return EINVAL instead of '1' for invalid kq filters.thib2008-08-201-2/+2
| | | | | From NetBSD; OK art@, blambert@
* o nfs_vinvalbuf() is always called with the intrflag as 1, and thenthib2008-08-094-49/+36
| | | | | | | | | | checks if the mount is actually interrutable, and if not sets it 0. remove this argument from nfs_vinvalbuf and just do the checking inside the function. o give nfs_vinvalbuf() a makeover so it looks nice. (spacing, casts, &c); o Actually pass PCATCH too tsleep() if the mount it interrutable. ok art@, blambert@
* o sync comment with reality, we have never malloc()'ed filehandlesthib2008-08-081-8/+4
| | | | | | | | and the dead code that was supposed todo that has been removed. o rename the NFS_SMALLFH constant to NFS_MAXFHSIZE, since it better reflects what it's for. ok blambert@
* After beck@ changed the way nfsiod's are notified of work, theblambert2008-08-084-13/+4
| | | | | | | nfs_iodwant array became unused. Garbage collect and free up a few bytes. ok thib@
* Remove code for variable-sized allocations of NFS filehandles by malloc(),blambert2008-08-082-15/+4
| | | | | | | as it was never used because there were 64-bit buffers already allocated for filehandles in nfsnode structs. ok thib@
* dont stuff nfs mount point flags into the statfs f_flags member, itsthib2008-07-281-2/+1
| | | | | | | wrong. But this was harmless anyway since sys_statfs() sets this field corrently after calling VFS_STATFS(); ok pedro@, blambert@
* much more correct way of dealing with nfs pending reads/writesbeck2008-07-252-8/+11
| | | | ok thib@
* make this real Cderaadt2008-07-231-2/+4
|
* Correct cases of mishandling of pending reads and writes to preventbeck2008-07-232-2/+8
| | | | | | | | | | | | | them going negative - this consists of identifying a number of cases of IO not going through the buffer cache and marking those buffers with B_RAW - as well as fixing nfs_bio to show pending writes and reads through the buffer cache via NFS still has a problem with mishandling the counters I believe in the async/sync fallback case where counters stay positive which will be addressed seperately. ok tedu@ deraadt@
* - in nfs_mknodrpc - initialize the node we pass to nfs_lookitup. It'sart2008-07-231-2/+3
| | | | | | | | | | | | not just a return value, nfs_lookitup treats it specially when *npp is not NULL. - nfs_lookitup - When we match the file handle to the directory filehandle (lookup on '.'), initialize np so that we don't return stack garbage to the caller. The function shouldn't ever be called with '.' at this moment, but that's no reason to not do the right thing in case future callers use it that way. blambert@ thib@ ok
* nuke two bogus ARGSUSEDthib2008-07-102-4/+2
|
* remove #ifndef nolint goothib2008-07-063-10/+7
| | | | ok blambert@
* Zap redundant prototype for nfsrv_zapsock();thib2008-07-061-3/+1
|
* When waking an nfs daemon, use wakeup_one vice wakeup, asblambert2008-07-051-2/+2
| | | | | | | | | a) we're attempting to wake a specific process which b) sleeps on a unique address which means that there's no need to continue traversing the sleep queue once the process has been found and awakened. "looks good too me" thib@
* Remove R_GETONEREP and the code that checks if its setthib2008-07-052-9/+3
| | | | | | (its never set). "please kill it" blambert@
* Clean up some old dead code, mostly nqnfs and kerberos leftoversthib2008-07-054-70/+4
| | | | | | for uid goo, mostly zapping unused members from various structures. ok blambert@
* use m_freem() instead of MFREE() since we ignore thethib2008-07-051-2/+2
| | | | | | | mbuf that points to the rest of the chain (if it is a chain). ok blambert@
* Remove unused NQNFS #defineblambert2008-07-041-2/+1
| | | | ok thib@
* Label switch statement with /* FALLTHROUGH */; inspired by twoblambert2008-06-261-1/+3
| | | | | | wasted hours tracking down a phantom mbuf leak. ok thib@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* unroll the NFSMADV() macro and nuke itthib2008-06-153-7/+6
| | | | ok blambert@
* Replace nfsm_build/bcopy with nfsm_{buf,str}tombuf functions inblambert2008-06-144-32/+7
| | | | | | | | | filehandle -> mbuf write macros. Removes `magic' variable cp which was used only in these macros, and should lead to marginally better mbuf packing as well. `slap it in' thib@
* Ensure each nfsiod can actually enqueue more than one asynchio - this mirrorsbeck2008-06-143-26/+36
| | | | | | | | | | | | the accidental situation that used to happen when it leaked buffers and allowed the syncer to do it, however this puts a limit on how much of the buffer cache it is allowed to consume to a sensible amount - improves nfs write performance since we don't have to do tons of them synch now. Modifies the existing code to use wakeup_one instead of cruft, and now all nfsiod's tsleep the same way. ok thib@ art@
* A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)mk2008-06-141-3/+2
| | | | | | | conversions that should shave a few bytes off the kernel. ok henning, krw, jsing, oga, miod, and thib (``even though i usually prefer FOO|BAR''; thanks for looking.
* Replace magic '2' and '3' with defines for nfs version numbersthib2008-06-141-3/+3
| | | | ok blambert@
* Clean up nfsrv_wakenfsd(); variable name change to be in line with theblambert2008-06-141-11/+11
| | | | | | | | | rest of NFS code, canonical for() -> LIST_FOREACH() change, minor readability changes. ANSIfy function while here. ok thib@
* use nfsm_padlen() where appropriate;thib2008-06-142-6/+6
| | | | ok blambert@
* put the canonical ifdef dance for multiple inclusion, also put all thethib2008-06-141-24/+10
| | | | | | | | | | contents of this file inside #ifdef _KERNEL; there's nothing here that userland should ever need/touch. but then again, some userland programs define _KERNEL before they include kernel header files *shrugh*... survived a build, OK blambert@
* NFSD_NEEDAUTH and NFSD_AUTHFAIL are never set, so cull code thatblambert2008-06-131-27/+2
| | | | | | | | depends on them being set. This should be the removal of the original return-to-userland-to-authenticate code that was apparently an unfinished experiment. ok thib@
* Kill one-liner macro which obfuscated mbuf pointer assignment.blambert2008-06-135-47/+38
| | | | | | | | Rescue nfsm_reqhead macro name and rename nfsm_reqh. End of one-liners from nfsm_subs.h. ok thib@