summaryrefslogtreecommitdiffstats
path: root/sys/nfs
Commit message (Collapse)AuthorAgeFilesLines
* Check for NULL pointer before freeing a struct sockaddr. m_freem() can handleluoqi1998-09-011-2/+3
| | | | NULL, buf free() can't.
* Yow! Completely change the way socket options are handled, eliminatingwollman1998-08-235-71/+81
| | | | | | another specialized mbuf type in the process. Also clean up some of the cruft surrounding IPFW, multicast routing, RSVP, and other ill-explored corners.
* Fixed printf format errors.bde1998-08-182-6/+6
|
* Protect all modifications to v_numoutput with splbio().dfr1998-08-131-2/+2
|
* Don't configure compatibility code for pre-Lite2 mount() calls bybde1998-08-121-4/+4
| | | | default. This code should go away soon.
* If we get an ENOBUFS from the network, it's normally transient networkpeter1998-08-011-1/+11
| | | | | | | | | interface congestion (eg: nfs over a ppp link, etc). Don't log these for UDP mounts, and don't cause syscalls to fail with EINTR. This stops the 'nfs send error 55' warnings. If the error is because the system is really hosed, this is the least of your problems...
* Cast pointers to uintptr_t/intptr_t instead of to u_long/long,bde1998-07-151-3/+3
| | | | | | | respectively. Most of the longs should probably have been u_longs, but this changes is just to prevent warnings about casts between pointers and integers of different sizes, not to fix poorly chosen types.
* Use u_int32_t in NQFHHASH instead of u_long.dfr1998-07-051-2/+2
|
* VOP_STRATEGY grows an (struct vnode *) argumentjulian1998-07-041-2/+2
| | | | | | as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebsd.org>
* Moved `#ifndef NFS_NOSERVER' after including nfs.h.kato1998-07-021-2/+2
|
* fix buildworld hopefully be3fore anyone complains...jmg1998-06-301-1/+3
| | | | | | | | NFS_*TIMO should possibly be converted to sysctl vars (jkh's suggestion), but in some cases it looks like nfs keeps a copy of the value in a struct hash sizes are already ifdef'd KERNEL, so there aren't userland inpact from them...
* convert some nfs tunables to options, these are:jmg1998-06-301-1/+3
| | | | | | | | | | | | | | | | NFS_MINATTRTIMO VREG attrib cache timeout in sec NFS_MAXATTRTIMO NFS_MINDIRATTRTIMO VDIR attrib cache timeout in sec NFS_MAXDIRATTRTIMO NFS_GATHERDELAY Default write gather delay (msec) NFS_UIDHASHSIZ Tune the size of nfssvc_sock with this NFS_WDELAYHASHSIZ and with this NFS_MUIDHASHSIZ Tune the size of nfsmount with this NFS_NOSERVER (already documented in LINT) NFS_DEBUG turn on NFS debugging also, because NFS_ROOT is used by very different files, it has been renamed to opt_nfsroot.h instead of the old opt_nfs.h....
* Fixed typo in ifdefed code. (NFS_ACDEBUG is not in LINT. Therefore,bde1998-06-212-4/+4
| | | | code controlled by it did not even compile.)
* Avoid an egcs pessimization for 64-bit signed division on i386's.bde1998-06-143-10/+10
| | | | | | | | | Pre-2.8 versions of gcc generate a call to __divdi3() for all 64-bit signed divisions, but egcs optimizes them to a shift and fixup when the divisor is a constant power of 2. Unfortunately, it generates a call to __cmpdi2() for the fixup, although all except possibly ancient versions of gcc and egcs do ordinary 64-bit comparisons inline.
* This commit fixes various 64bit portability problems required fordfr1998-06-073-8/+8
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Make sure we go a nfs_fsinfo() in get/putpages before callingpeter1998-06-011-30/+70
| | | | | | | | readrpc/writerpc, since they assume it's already been done. This could break if the first read/write access to a nfs filesystem was an exec() or mmap() instead of a read(), write() syscall. (or statfs()). nfs_getpages() could return an errno (EOPNOTSUPP) instead of a VM_PAGER_* return code. Some layout tweaks for the get/putpages code.
* Fix post-test pre-commit cleanup typo.peter1998-06-011-2/+2
|
* readlink() returns EINVAL rather than EPERM if called on a non-symlink.peter1998-06-011-2/+2
|
* Preset the maximum file size before we get to nfs_fsinfo(), based onpeter1998-06-011-8/+14
| | | | | | | | | | an (over?) conservative assumption about what the client can store in it's buffer cache using a signed 32-bit 512-byte block number index. Otherwise it's possible for some file access when maxfilesize = 0 (eg: /usr is nfs mounted and doing an execve()) Pointed out by: bde XXX It might make sense to do a preemptive nfs_fsinfo() call at mount time.
* Hide more kernel stuff from userland. This stops nethostaddr etc beingpeter1998-06-011-2/+2
| | | | wanted by mount_nfs.c.
* For the on-the-wire protocol, u_long -> u_int32_t; long -> int32_t;peter1998-05-3117-547/+559
| | | | | | | int -> int32_t; u_short -> u_int16_t. Also, use mode_t instead of u_short for storing modes (mode_t is a u_int16_t). Obtained from: NetBSD
* Support 'mount -u' remounts. This may require disconnecting and rebindingpeter1998-05-313-104/+174
| | | | | | the socket. Certain mode changes are not allowed. Obtained from: NetBSD
* Cut-n-paste glitchpeter1998-05-311-2/+2
|
* xdr encode -1 properly.peter1998-05-311-2/+2
| | | | Obtained from: NetBSD
* Fully fill in nfsv2 write rpc requests rather than leaving garbage.peter1998-05-311-4/+11
| | | | Obtained from: NetBSD
* Don't silently fail to set file flags.peter1998-05-311-1/+8
| | | | Obtained from: NetBSD
* Don't blindly accept the server's preferences if they are too small.peter1998-05-311-3/+3
| | | | Obtained from: NetBSD
* Prototype support for selectively allowing non-reserved ports on a perpeter1998-05-312-2/+28
| | | | | | export basis. Needs userland support yet. Obtained from: NetBSD
* Hide whiteouts from NFS, since the protocol doesn't support them.peter1998-05-311-5/+7
| | | | Obtained from: NetBSD
* NetBSD has a comment that Solaris 2.5 doesn't do verifiers correctly,peter1998-05-311-1/+7
| | | | | | | we have weakened this test already for Digital Unix, so it may be enough for Solaris. It needs to be checked again. Obtained from: NetBSD
* Don't pass a second copy of the uid/gid in with the v2/v3 sattr structures,peter1998-05-314-36/+30
| | | | | | | | it just makes more work. We pass a copy of the uid/gid with the credentials. (although, this may need to be revisited if a non AUTHUNIX authentication method (such as NFSKERB) ever gets implemented). Obtained from: NetBSD
* Use the new SB_UPCALL flag,peter1998-05-311-1/+4
| | | | Obtained from: NetBSD (but I changed the flag clear order in case).
* NFS_SMALLFH is defined in nfsproto.h, not sys/mount.hpeter1998-05-311-2/+2
| | | | Obtained from: NetBSD
* Don't let the user try "rmdir ."peter1998-05-311-1/+3
| | | | Obtained from: NetBSD
* Don't let the user try and unlink() a directory on a NFS server.peter1998-05-311-2/+4
| | | | Obtained from: NetBSD
* When a write rpc returns an error, break the loop.peter1998-05-311-1/+3
| | | | Obtained from: NetBSD
* Don't leak an mbuf when a write rpc returns zero bytes written.peter1998-05-311-1/+2
| | | | Obtained from: NetBSD
* #ifdef a diagnostic printfpeter1998-05-311-1/+3
| | | | Obtained from: NetBSD
* Don't try and free mrep twice on some error conditions.peter1998-05-313-9/+16
| | | | Obtained from: NetBSD
* #ifdef a diagnostic panic, plus another missed costmetic change.peter1998-05-312-4/+8
| | | | Obtained from: NetBSD
* We have gained 2 more errno's, add them to the NFSv2 mapping table.peter1998-05-312-4/+4
|
* Missed a cosmetic change that the other BSD's have.peter1998-05-311-2/+2
|
* oops, nfs_msg() is called from client code too.peter1998-05-311-1/+4
|
* When we can't reconnect a socket, don't forget to unlock before retryingpeter1998-05-311-1/+4
| | | | | | or we can deadlock. Obtained from: NetBSD
* Don't log zero length reads, this can happen during normal operation.peter1998-05-311-1/+9
| | | | Obtained from: NetBSD
* Consider for readdir chunk sizes when tuning socket buffer reservations.peter1998-05-311-3/+5
| | | | Obtained from: NetBSD
* Refuse READDIR / READDIRPLUS rpc's for non-directoriespeter1998-05-311-1/+9
| | | | Obtained from: NetBSD
* Some const'speter1998-05-316-19/+21
| | | | Obtained from: NetBSD
* NFS Jumbo commit part 1. Cosmetic and structural changes only. The aimpeter1998-05-3112-587/+657
| | | | | | of this part of commits is to minimize unnecessary differences between the other NFS's of similar origin. Yes, there are gratuitous changes here that the style folks won't like, but it makes the catch-up less difficult.
* VOP_ABORTUP() appears to be called with the wrong vnode. The other callerspeter1998-05-311-2/+2
| | | | | | that I checked (eg: ufs_link()) do the ABORTOP on the directory rather than the file itself. After Michael Hancock's patches, the abortop doesn't seem all that critial now since something else will free the pathname buffer.
OpenPOWER on IntegriCloud