summaryrefslogtreecommitdiff
path: root/sys/nfs
AgeCommit message (Collapse)Author
2007-09-11Replace nfsm_reqdone and nfsm_srvdone macros inline. No binary change.Bret Lambert
ok thib@
2007-06-25replace magic number with a define.Thordur I. Bjornsson
(2 -> SHUT_RDWR in calls to soshutdown()). From Iruata Souza. ok deraadt@
2007-06-21remove a whole bunch of duplicate functionThordur I. Bjornsson
prototypes. (survived build/release on macppc/amd64). ok pedro@
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-06-06remove an unused typedef.Thordur I. Bjornsson
ok pedro@
2007-06-01pedro ok'd this ~3500 line diff which removes the vop argumentTheo de Raadt
"ap = v" comments in under 8 seconds, so it must be ok. and it compiles too.
2007-06-01daddr_t -> daddr64_t;Thordur I. Bjornsson
Basically the usage of daddr_t was to math out arguments to nfs_getcacheblk, wich calls getblk(); ok deraadt@
2007-05-31when getting ESTALE from the server, allow the client to retry in theThordur I. Bjornsson
nfsv2 client case, this matches v3 behaviour to that extent. This is to work around the fact that when the namecache is large, we dont purge vnodes correctly out of it. ok beck@,pedro@
2007-05-31kill some ifdef noyet code, de-static functions (makes my traces nicer),Thordur I. Bjornsson
some comments and style. ok tedu@
2007-05-31zap nfs_cltpsock; Unused since NQNFS died.Thordur I. Bjornsson
ok beck@
2007-05-31This is not the buffer you are looking for,Thordur I. Bjornsson
vintage 6 year old NFS bug. ok beck@, looked at three times by art@
2007-05-29Add a name argument to the RWLOCK_INITIALIZER macro.Thordur I. Bjornsson
Pick reasonble names for the locks involved.. ok tedu@, art@
2007-05-28zap annoying __KERNEL_RCSID().Thordur I. Bjornsson
ok krw@
2007-05-28lockmgr -> rwlock for the nfs_hashlock.Thordur I. Bjornsson
ok tedu@
2007-05-28Fix tree breakage. Variables only used inside #ifdef NFSSERVER shouldKenneth R Westerback
be defined inside same. ramdisk_cd (has nfs, but is not a server) compiles again.
2007-05-27cleanup the nfssvc() system call.Thordur I. Bjornsson
* Remove alot of dead kerberos code like the options for NFSSVC_AUTHIN and NFSSVC_AUTHFAIL wich where originally to get the kerberos auth info into the kernel. (that hasnt worked for long, if ever.) Also remove some helper functions and associated goo, however theres still alot of it left. * Remove NFSSVC_BIOD, biod's where replaced with kernel threads a long time ago. * NFSSVC_MNTD wich was is NQNFS leftover. Update the man page and nfsd(8). nfssvc(2) besides being special has only one user in the tree nfsd(8), therefore no library bumps are needed. (discussed with deraadt@). ok beck@, "go a head" deraadt@ Tested by ckuethe@
2007-05-17Collapse struct v_selectinfo in struct vnode, remove theThordur I. Bjornsson
simplelock and reuse the name for the selinfo member. Clean-up accordingly. ok tedu@,art@
2007-04-24Dont log() send failures in nfs_send(), they arent helpful since we retryThordur I. Bjornsson
and recover for the client case (or terminate with EINTR if to many retries), and in the server case, if we cant send due to f.x network troubles its up to the client to retry not the server. (server not responding messages are logged in another place though). discussed with deraadt@
2007-04-19Replace the nfskevq_lock lockmgr lock with rwlock.Thordur I. Bjornsson
Replace nfs_kqinit() wich just calls lockinit with RWLOCK_INITALIZER. Assorted cleanup. ok tedu@ "reads good" art@
2007-04-13Move the declaration of VN_KNOTE() into vnode.h instead of havingThordur I. Bjornsson
multiple defines all over; ok tedu@
2007-04-13remove some unneeded externs and unused declerations.Thordur I. Bjornsson
There's no need to extern stuff thats declared in the same file. ok tedu@
2007-04-12If VOP_GETATTR() in the nfs_kqpoll() loop returns ESTALE, catch it.Thordur I. Bjornsson
Not doing so can lead to clients missing out if the file is for example removed on the server and the client is doing a 'tail -f' on it. If it returns ESTALE, mark the file deleted and proceed to handling the next entry. ok tedu@,art@
2007-04-12remove unused members from struct nfsmount and nfsnode;Thordur I. Bjornsson
ok pedro@
2007-04-11remove duplicate prototype;Thordur I. Bjornsson
ok pedro@
2007-03-18get rid of noop vop_reallocblks; pedro@ miod@ okMichael Shalayeff
2007-02-27clarify RPC timeout messages so regular people can understand; ok variousTheo de Raadt
2007-02-23backout previous revision -- on nfs2 mounts (perhaps only automounted?) itTheo de Raadt
tends to .nfs silly files lying around during high filesystem activity. whatever bug it was trying to fix, it made things worse.
2007-01-21don't assume our directory vnode will be flushed out after us, fixesPedro Martelletto
crash when unmounting nfs volumes, okay thib@, krw@ and mickey@
2007-01-16Retire VOP_LEASE(); It was a bit for NQNFS and hasThordur I. Bjornsson
effectively been a no-op for quite some time now, without promise for future usage. ok pedro@ Testing by krw@ (earlier diff) and Johan Mson Lindman (tybollt@solace.miun.se)
2006-12-29Avoid void * arithmetic, okay deraadt@, suggestions from millert@Pedro Martelletto
2006-12-06nfs_readdirplusrpc():Thordur I. Bjornsson
Replace the pointer aerobics used to construct the namecache hash with a more saner approach since the former could lead to a null deref (PR5305). Also make sure that the current buf is bigenough before caching the current entry. comments&ok pedro@
2006-11-29Kernel stack can be swapped. This means that stuff that's on the stackMiod Vallat
should never be referenced outside the context of the process to which this stack belongs unless we do the PHOLD/PRELE dance. Loads of code doesn't follow the rules here. Instead of trying to track down all offenders and fix this hairy situation, it makes much more sense to not swap kernel stacks. From art@, tested by many some time ago.
2006-11-01move the declaration of nfsstats from nfs_bio.c toThordur I. Bjornsson
nfs_subs.c so it gets pulled in for NFSSERVER only kernels. ok deraadt@,krw@
2006-10-28Dont initialize the nm_srtt and nm_sdrtt arraysThordur I. Bjornsson
out of bounds. ok pedro@
2006-10-04typo, from Bret LambertPedro Martelletto
2006-09-20Fix the way delays between request retransmissions are calculatedThordur I. Bjornsson
in the case where NFSERR_TRYLATER is received from the server. Adapted from NetBSD. ok pedro@, tedu@
2006-08-04Fix up mbuf length and do 64-bit alignment where needed, joint workPedro Martelletto
with Nicholas Marriott <nicm__@ntlworld.com>, closes PR 5036
2006-06-25rename vfs_busy() flags VB_UMIGNORE/VB_UMWAIT to VB_NOWAIT/VB_WAITNikolay Sturm
requested by and ok pedro
2006-06-17adopt to extended rtrequest / rtalloc1 apiHenning Brauer
2006-06-14move vfs_busy() to rwlocks and properly hide the locking api from vfsNikolay Sturm
ok tedu, 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-05-26prettier printingTheo de Raadt
2006-05-07add a name to rwlock so that we can tell where procs are getting stuckTed Unangst
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]
2006-04-30remove the simplelock argument from vfs_busy() which is currently notNikolay Sturm
used and will never be used this way in VFS requested by and ok pedro, ok krw, biorn
2006-04-26In nfs_readdir(), if the buffer provided by the user is not big enoughPedro Martelletto
to hold all the entries a directory has, we can't signal EOF. Okay deraadt@ and miod@.
2006-04-20Remove unused debug code that sneaked in by accident long agoPedro Martelletto
2006-04-19Remove unused mount list simple_lock() gooPedro Martelletto