summaryrefslogtreecommitdiff
path: root/sys/nfs
AgeCommit message (Collapse)Author
2008-12-27expand the ifdef _KERNEL around kernel only function prototypesThordur I. Bjornsson
since they have no business being export to userland. OK blambert@
2008-12-24Low hanging macro fruit. Inline the nfsm_srvstrsiz macro sinceThordur I. Bjornsson
its used only once and nuke its definition. Stolen from blambert's bag'o'diffs. OK blambert@.
2008-12-24remove argument names from function prototypes, this way theThordur I. Bjornsson
file shares the same sane style.
2008-12-24fix a typo made in last commit, also slightly better wording forThordur I. Bjornsson
another comment.
2008-12-24Replace the TRUE/FALSE defines with 1/0 respectively. This doesn'tThordur I. Bjornsson
hurt readability and it was just plain annoying seeing them defined in every other .c file. OK blambert@
2008-12-23small indent fixThordur I. Bjornsson
2008-11-24use the shiny new nitems macroThordur I. Bjornsson
2008-10-31Revert last commit; mbuf leaks are not solved by double-freeing mbuf chainsBret Lambert
blambert@-- Real solution is to fix NFS mbuf handling.
2008-10-26Plug mbuf leak in RPC record error case.Bret Lambert
ok thib@
2008-10-20Be pedantically correct in freeing allocated mbufs, even upon clearingBret Lambert
the server cache on shutdown. ok thib@
2008-10-16Don't hide the fact that NFS uses vop_generic_* functions behindBret Lambert
#define's in nfs_var.h ok thib@
2008-09-12zap a deprecated macro, NMOD.Thordur I. Bjornsson
2008-09-12provide a NOTE_TRUNCATED kq hint in nfs_setattr() if the fileThordur I. Bjornsson
shrinks, same thing as UFS does. ok/pointers pedro@ ok blambert@
2008-09-12move the declaration of nfsrv3_procs to nfs_syscalls.cThordur I. Bjornsson
ok blambert@
2008-09-11issue a NOTE_TRUNCATE if the file size has shrinkedThordur I. Bjornsson
ok tedu@, blambert@, art@
2008-08-31remove the #if 0'ed NFS_ATTRTIMEO() macro since it wasThordur I. Bjornsson
replaced by a function long ago.. ok blambert@
2008-08-25Correctly invalidate attribute cache entries in case the vnode modePedro Martelletto
changes, okay beck@, tedu@ and thib@.
2008-08-21Fix 'if ();' construction introduced in last commit, okay deraadt@Pedro Martelletto
2008-08-20Return EINVAL instead of '1' for invalid kq filters.Thordur I. Bjornsson
From NetBSD; OK art@, blambert@
2008-08-09o nfs_vinvalbuf() is always called with the intrflag as 1, and thenThordur I. Bjornsson
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@
2008-08-08o sync comment with reality, we have never malloc()'ed filehandlesThordur I. Bjornsson
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@
2008-08-08After beck@ changed the way nfsiod's are notified of work, theBret Lambert
nfs_iodwant array became unused. Garbage collect and free up a few bytes. ok thib@
2008-08-08Remove code for variable-sized allocations of NFS filehandles by malloc(),Bret Lambert
as it was never used because there were 64-bit buffers already allocated for filehandles in nfsnode structs. ok thib@
2008-07-28dont stuff nfs mount point flags into the statfs f_flags member, itsThordur I. Bjornsson
wrong. But this was harmless anyway since sys_statfs() sets this field corrently after calling VFS_STATFS(); ok pedro@, blambert@
2008-07-25much more correct way of dealing with nfs pending reads/writesBob Beck
ok thib@
2008-07-23make this real CTheo de Raadt
2008-07-23Correct cases of mishandling of pending reads and writes to preventBob Beck
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@
2008-07-23 - in nfs_mknodrpc - initialize the node we pass to nfs_lookitup. It'sArtur Grabowski
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
2008-07-10nuke two bogus ARGSUSEDThordur I. Bjornsson
2008-07-06remove #ifndef nolint gooThordur I. Bjornsson
ok blambert@
2008-07-06Zap redundant prototype for nfsrv_zapsock();Thordur I. Bjornsson
2008-07-05When waking an nfs daemon, use wakeup_one vice wakeup, asBret Lambert
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@
2008-07-05Remove R_GETONEREP and the code that checks if its setThordur I. Bjornsson
(its never set). "please kill it" blambert@
2008-07-05Clean up some old dead code, mostly nqnfs and kerberos leftoversThordur I. Bjornsson
for uid goo, mostly zapping unused members from various structures. ok blambert@
2008-07-05use m_freem() instead of MFREE() since we ignore theThordur I. Bjornsson
mbuf that points to the rest of the chain (if it is a chain). ok blambert@
2008-07-04Remove unused NQNFS #defineBret Lambert
ok thib@
2008-06-26Label switch statement with /* FALLTHROUGH */; inspired by twoBret Lambert
wasted hours tracking down a phantom mbuf leak. ok thib@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-06-15unroll the NFSMADV() macro and nuke itThordur I. Bjornsson
ok blambert@
2008-06-14Replace nfsm_build/bcopy with nfsm_{buf,str}tombuf functions inBret Lambert
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@
2008-06-14Ensure each nfsiod can actually enqueue more than one asynchio - this mirrorsBob Beck
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@
2008-06-14A bunch of pool_get() + bzero() -> pool_get(..., .. | PR_ZERO)Michael Knudsen
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.
2008-06-14Replace magic '2' and '3' with defines for nfs version numbersThordur I. Bjornsson
ok blambert@
2008-06-14Clean up nfsrv_wakenfsd(); variable name change to be in line with theBret Lambert
rest of NFS code, canonical for() -> LIST_FOREACH() change, minor readability changes. ANSIfy function while here. ok thib@
2008-06-14use nfsm_padlen() where appropriate;Thordur I. Bjornsson
ok blambert@
2008-06-14put the canonical ifdef dance for multiple inclusion, also put all theThordur I. Bjornsson
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@
2008-06-13NFSD_NEEDAUTH and NFSD_AUTHFAIL are never set, so cull code thatBret Lambert
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@
2008-06-13Kill one-liner macro which obfuscated mbuf pointer assignment.Bret Lambert
Rescue nfsm_reqhead macro name and rename nfsm_reqh. End of one-liners from nfsm_subs.h. ok thib@
2008-06-13remove rpc_auth_kerb variable, its now unused...Thordur I. Bjornsson
2008-06-13nuke a bunch of bogus ARGSUSED;Thordur I. Bjornsson
ok blambert@