summaryrefslogtreecommitdiffstats
path: root/sys/nfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix reading large files; from NetBSD. Somehow this was overlookedotto2005-10-311-4/+5
| | | | when earlier merges were done. Fixes PR 4250. ok millert@ deraadt@
* Remove v_vnlock from struct vnode, okay krw@ tedu@pedro2005-10-191-3/+1
|
* toast cast of lvalue; pr 4289deraadt2005-09-291-3/+3
|
* Remove remaining whiteout tentacles; OK deraadt@ miod@ weingart@millert2005-06-181-9/+5
|
* make nfsstats counters 64 bit.marius2005-06-081-34/+34
| | | | ok pedro@
* optimize nfs_sync() a bit, by not iterating over the list of vnodespedro2005-05-221-3/+9
| | | | | belonging to a mount point if we want to skip all of them, okay art@ a couple of days ago, commit it deraadt@
* careful strlcpy and snprintf return handling; ok pedro beckderaadt2005-04-211-1/+3
|
* use pool for struct nfsreq; tedu@ pedro@ ok and testing by mark patruck <mark@2ls4agd.net> on several archsmickey2005-04-023-10/+16
|
* at long last, disable write gathering for v3. ok like everyonetedu2005-04-011-6/+7
|
* re-commit marius commit:deraadt2005-03-311-2/+3
| | | | | | | | | | > 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?
* re-commit marius commit:deraadt2005-03-311-10/+1
| | | | | | | | | | > 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?
* backout nfs_subs.c rev1.51 nfs_vfsops.c rev1.54:pvalchev2005-02-012-4/+12
| | | | | | | 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
* fix preposterous time warnings in the nfs client; caused by false hitsmarius2005-01-242-12/+4
| | | | | | in the attribute cache based on original fix by pedro@, ok pedro@, tedu@; testing kettenis@
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-264-17/+14
| | | | no change in compiler assembly output.
* In nfs_connect() move the setting of so->so_rcv.sb_timeo out of themillert2004-12-101-11/+8
| | | | | if () else since it is common to both cases and makes the code clearer. OK pedro@
* enable receive() accounting and use uio_procp for send() accounting, toomarkus2004-11-181-1/+2
| | | | ok deraadt, jared, djm
* implememtation -> implementationpedro2004-11-041-2/+2
|
* NFS commit coalescion: instead of sending a commit for each block, coalescemarius2004-08-036-15/+262
| | | | | | | | these into larger ranges wherever possible. this should speed up NFS writes quite a bit. ok art@ millert@ pedro@ tedu@
* When accessing device nodes over nfs, do not trim major and minor numbersmiod2004-08-031-3/+3
| | | | | | to 8 bits only; found the hard way by henning@. Ok deraadt@ marius@ millert@
* kqueue support for NFS, adapted from netbsd.marius2004-07-215-8/+413
| | | | ok art@ pedro@, "get it in" deraadt@
* kill netiso stuff here as well, millert okhenning2004-07-163-38/+4
|
* on nfs_reconnect(), don't reset the rexmit of all nfs reqs, but onlypedro2004-07-141-4/+4
| | | | of those belonging to the given nfs mount. ok marius@, tedu@
* Change mode_t and nlink_t from 16bit to 32bit. This allows us tomillert2004-07-131-6/+6
| | | | | | | | | | 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@
* fix for where a TCP NFS connection could sleep in soreceive() forever,marius2004-07-101-4/+22
| | | | | | | this fixes some problems people have experienced with NFS mounts freezing on NFS server reboot/crash. ok deraadt@ pedro@ tholo@
* Minor fixes suggested by nordin@ and henning@tholo2004-06-251-8/+7
| | | | ok millert@
* This moves access to wall and uptime variables in MI code,tholo2004-06-245-37/+43
| | | | | | | | | | | | | | 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@
* First step towards more sane time handling in the kernel -- this changestholo2004-06-216-25/+25
| | | | | | | | 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@
* use pool for namei pathbuf. testing ok millert@ tdeval@tedu2004-05-143-36/+39
|
* nfs_poll cannot simply be defined to seltrue so use a stub nfs_pollmillert2004-04-262-3/+21
| | | | duplicated from UFS. Closes PR 3757; OK deraadt@
* make sockargs take void *, combine a len check.tedu2004-04-121-2/+2
| | | | from pedro martelletto, ok markus@
* silly fifos aren't a real fs, so we have to be sure to call reclaimtedu2004-03-022-3/+11
| | | | in the host fs.
* Defer use of NFS_ISV3 macro in nfs_link until sanity checks have been done.millert2004-02-271-3/+3
| | | | | | 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@
* nfs_reqq is operated at softnet other places and thus softclock is not high enough; tedu@ okmickey2003-12-081-3/+3
|
* crank max sizes. from millert. believed to solve pr3561tedu2003-11-281-3/+3
|
* typos from Jared Yanovich;jmc2003-10-221-2/+2
| | | | | also sync with header, and change spacing a little to prevent line breaks;
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-232-4/+4
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-152-7/+7
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* constify vfsops; tedu@ okmickey2003-08-141-2/+2
|
* unlock on error condition. from Tim Wiess. ok csapuntz@ millert@tedu2003-07-101-4/+6
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0220-120/+40
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* Kill a bunch more commons (very few left =)jason2003-05-132-3/+4
|
* make this at least compile ...mickey2003-05-071-2/+2
|
* string cleaning; tedu okderaadt2003-05-061-2/+3
|
* Ip -> IP;jmc2003-03-281-2/+2
| | | | ok miod@
* File system locking fixups, mostly from NetBSD:art2003-01-311-34/+139
| | | | | | | | | | | | | | | - cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
* in mountroot:mickey2002-12-111-7/+2
| | | | | | | check system clock against root atime, not mtime, since the later does not change that often and is a bad mark to sync unto. remove a bogus splnet() i've put way back in 96 w/ v3 integration. miod@ tested on diskless sparc and sparc64, mickey@ on hppa
* Implement simple vnodeop inheritance for specfs and fifofs.art2002-11-081-51/+6
| | | | | | | | | | | | | The inheritace is implemented by setting the default vnodeop to a bypass op that repeats the operation on the spec/fifo vnodeop vector. The overhead of one extra indirect function call is worth the cleanup and improved correctness. This actually solves a few bugs where some vnode ops were missing from some vectors (like kqfilter or revoke). (and even more on the ubc branch). Inspired by the same thing done in FreeBSD.
* Get rid of some commons.art2002-10-293-8/+16
|
* Just like getvnode, make getsock FREF the file so that we can't get awayart2002-08-231-2/+1
| | | | | | | with not refing it. Eyeballed by lurene@daemonkitty.net, fries@, nordin@ and fries@ Some additional cleanups by nordin@
* Fix handling of 0-length RPC fragmentscsapuntz2002-08-011-2/+3
|