summaryrefslogtreecommitdiffstats
path: root/sbin/nfsd/nfsd.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove nfsd and mountd from src/sbin, look for it in src/usr.sbingordon2002-07-071-845/+0
|
* Fix spelling nit in error message.gordon2002-06-051-1/+1
|
* Make this compile and not segfault on ia64. ptr = strdup("foo"); ispeter2002-05-011-3/+4
| | | | | | fatal if the declaration of strdup() isn't in scope. The upper 32 bits of the pointer are lost since it defaults to returning "int". Fix some warnings while here, including trying to make gcc-3.1 happy.
* Fix problem in macro definition breaking compiles with -DDEBUG.pb2002-03-261-1/+1
| | | | | PR: bin/35773 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org>
* When nfsd was started with only UDP servers, the master nfsd wouldiedowse2001-10-161-76/+106
| | | | | | | | | | | | | | | | | spin in a loop eating CPU time. This bug has existed since the TI-RPC import. The problem is that we should only enter the select loop if at least one TCP server was started. Fix this by having the master nfsd become a UDP server itself if there are no TCP servers. Also improve/correct the code for cleaning up slave nfsd processes and unregistering with rpcbind when the master nfsd exits. One issue that remains open is that if a slave nfsd dies, then all nfsds will shut down. This is because nfssvc() in the master nfsd returns 0 when the master nfsd receives a SIGCHLD. Submitted by: tmm
* Deal with nfs server module changes for autoloading.peter2001-09-201-9/+4
|
* Userland part of nfs client/server split and cleanup.peter2001-09-181-149/+5
|
* Don't call daemon() and setup our signal handlers until after we checkalfred2001-03-251-41/+34
| | | | | | | | | | | | | and do the unregister/reregister work. Don't call syslog in the unregister/reregister code as we haven't called openlog() yet. Be a more conservative about accepting errno values from socket(2), only EPROTONOSUPPORT means that the kernel isn't supporting it something like INET6. The other possible errnos would be returned if there was a mistake in the socket(2) call so remove them from the list of "acceptable" return values.
* Disable ipv6 when getnetconfigent("udp6"/"tcp6") fails.alfred2001-03-251-1/+2
| | | | Submitted by: Martin Blapp <mb@imp.ch>
* Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) andalfred2001-03-191-283/+540
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
* Don't use libutil now that setproctitle() is in libcbrian2000-09-021-1/+0
|
* Give nfsd the ability to bind to specific IP addresses through the -hdillon1999-11-111-23/+63
| | | | | | | | | | option and add explicit option to bind to the wildcard address. The default is to bind to the wildcard address when no -h option has been specified and thus backwards compatibility is maintained. PR: kern/13049 Reviewed by: David Malone <dwmalone@maths.tcd.ie> Submitted by: Matt Dillon <dillon@freebsd.org>, David Malone <dwmalone@maths.tcd.ie>
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Do not dot terminate syslog() string. Remove unused #includes. Add rcsid. -Wall.charnier1998-07-151-24/+22
|
* Fix two missing arguments detected by "-Wformat".jdp1997-11-181-2/+4
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-1/+1
| | | | posix standard on the topic.
* Merge from Lite2 (use new getvfsbyname() interface)peter1997-03-111-9/+9
|
* Default to udp if neither udp nor tcp is specified. The previous revisionbde1996-05-011-1/+2
| | | | | was broken. It forced udp in all cases except the extremely unusual case argc == 0.
* default to udp if no flags specified...closes PR#bin/759scrappy1996-04-131-0/+1
| | | | - should this be documented in the man page?
* #include <kerberosIV/des.h> -> #include <des.h>markm1996-02-111-1/+1
|
* Make nfsd use setproctitle from libutil...peter1996-01-011-0/+9
| | | | | Old code is still #ifdef OLD_SETPROCTITLE for comparison with the old code.
* The version of setproctitle() inside nfsd was busted. It was not terminatingpeter1995-12-151-0/+1
| | | | | | | | | the argv array, causing parts of the argv[0] to be picked up several times by libkvm, causing strange ps results for the nfs-server and nfs-master processes.. :-] (How many copies of setproctitle() do we need anyway? NetBSD has it in libc and BSDI have it in libutil.)
* Changes to support version 3 of the NFS protocol.dfr1995-06-271-25/+85
| | | | | | | | | | | | | | | | | | The version 2 support has been tested (client+server) against FreeBSD-2.0, IRIX 5.3 and FreeBSD-current (using a loopback mount). The version 2 support is stable AFAIK. The version 3 support has been tested with a loopback mount and minimally against an IRIX 5.3 server. It needs more testing and may have problems. I have patched amd to support the new variable length filehandles although it will still only use version 2 of the protocol. Before booting a kernel with these changes, nfs clients will need to at least build and install /usr/sbin/mount_nfs. Servers will need to build and install /usr/sbin/mountd. NFS diskless support is untested. Obtained from: Rick Macklem <rick@snowhite.cis.uoguelph.ca>
* Automatically load NFS and a bevy of other filesystems.wollman1994-09-221-0/+12
|
* Use nulls to pad proctitle rather than spaces...makes ps(1) output moredg1994-08-111-1/+1
| | | | readable.
* BSD 4.4 Lite sbin Sourcesrgrimes1994-05-261-0/+589
Note: XNSrouted and routed NOT imported here, they shall be imported with usr.sbin.
OpenPOWER on IntegriCloud