summaryrefslogtreecommitdiff
path: root/sys/nfs
AgeCommit message (Collapse)Author
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
2006-04-02When setting timestamps TOSERVER having write permissions is adaquate;Otto Moerbeek
problem experienced by Han Boetes; fix with "nfs4" rick at snowhite dot cis dot uoguelph dot ca. ok pedro@ tedu@
2006-01-24Fix NULL dereference on error condition in nfs_reply(). nmp->nm_so canAaron Campbell
become NULL if the nfs_reply() -> nfs_receive() -> nfs_reconnect() datapath fails. pedro@ ok "I think this is a good fix"
2006-01-09Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.Pedro Martelletto
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
2005-12-27Remove unused sw_nblks field of struct swdevt. Then, remove swapconf()Miod Vallat
which duplicates work done by uvm_swap_init().
2005-11-30No need for vfs_busy() and vfs_unbusy() to take a process pointerPedro Martelletto
anymore. Testing by jolan@, thanks.
2005-11-19Use NULL where NULL is meantPedro Martelletto
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
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.
2005-10-31Fix reading large files; from NetBSD. Somehow this was overlookedOtto Moerbeek
when earlier merges were done. Fixes PR 4250. ok millert@ deraadt@
2005-10-19Remove v_vnlock from struct vnode, okay krw@ tedu@Pedro Martelletto
2005-09-29toast cast of lvalue; pr 4289Theo de Raadt
2005-06-18Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@Todd C. Miller
2005-06-08make nfsstats counters 64 bit.marius eriksen
ok pedro@
2005-05-22optimize nfs_sync() a bit, by not iterating over the list of vnodesPedro Martelletto
belonging to a mount point if we want to skip all of them, okay art@ a couple of days ago, commit it deraadt@
2005-04-21careful strlcpy and snprintf return handling; ok pedro beckTheo de Raadt
2005-04-02use pool for struct nfsreq; tedu@ pedro@ ok and testing by mark patruck ↵Michael Shalayeff
<mark@2ls4agd.net> on several archs
2005-04-01at long last, disable write gathering for v3. ok like everyoneTed Unangst
2005-03-31re-commit marius commit:Theo de Raadt
> 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?
2005-03-31re-commit marius commit:Theo de Raadt
> 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?
2005-02-01backout nfs_subs.c rev1.51 nfs_vfsops.c rev1.54:Peter Valchev
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
2005-01-24fix preposterous time warnings in the nfs client; caused by false hitsmarius eriksen
in the attribute cache based on original fix by pedro@, ok pedro@, tedu@; testing kettenis@
2004-12-26Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no change in compiler assembly output.
2004-12-10In nfs_connect() move the setting of so->so_rcv.sb_timeo out of theTodd C. Miller
if () else since it is common to both cases and makes the code clearer. OK pedro@
2004-11-18enable receive() accounting and use uio_procp for send() accounting, tooMarkus Friedl
ok deraadt, jared, djm
2004-11-04implememtation -> implementationPedro Martelletto
2004-08-03NFS commit coalescion: instead of sending a commit for each block, coalescemarius eriksen
these into larger ranges wherever possible. this should speed up NFS writes quite a bit. ok art@ millert@ pedro@ tedu@
2004-08-03When accessing device nodes over nfs, do not trim major and minor numbersMiod Vallat
to 8 bits only; found the hard way by henning@. Ok deraadt@ marius@ millert@
2004-07-21kqueue support for NFS, adapted from netbsd.marius eriksen
ok art@ pedro@, "get it in" deraadt@
2004-07-16kill netiso stuff here as well, millert okHenning Brauer
2004-07-14on nfs_reconnect(), don't reset the rexmit of all nfs reqs, but onlyPedro Martelletto
of those belonging to the given nfs mount. ok marius@, tedu@
2004-07-13Change mode_t and nlink_t from 16bit to 32bit. This allows us toTodd C. Miller
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@
2004-07-10fix for where a TCP NFS connection could sleep in soreceive() forever,marius eriksen
this fixes some problems people have experienced with NFS mounts freezing on NFS server reboot/crash. ok deraadt@ pedro@ tholo@
2004-06-25Minor fixes suggested by nordin@ and henning@Thorsten Lockert
ok millert@
2004-06-24This moves access to wall and uptime variables in MI code,Thorsten Lockert
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@
2004-06-21First step towards more sane time handling in the kernel -- this changesThorsten Lockert
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@
2004-05-14use pool for namei pathbuf. testing ok millert@ tdeval@Ted Unangst
2004-04-26nfs_poll cannot simply be defined to seltrue so use a stub nfs_pollTodd C. Miller
duplicated from UFS. Closes PR 3757; OK deraadt@
2004-04-12make sockargs take void *, combine a len check.Ted Unangst
from pedro martelletto, ok markus@
2004-03-02silly fifos aren't a real fs, so we have to be sure to call reclaimTed Unangst
in the host fs.
2004-02-27Defer use of NFS_ISV3 macro in nfs_link until sanity checks have been done.Todd C. Miller
Fixes a panic that can occur when trying to link from a local filesystem to an nfs-mounted one. Problem pointed out by Jim Rees, fix exists in Net and Free. OK tedu@ csapuntz@