Subject: amd and tcp mounts (again)
To: None <tech-userlevel@netbsd.org>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-userlevel
Date: 03/27/1999 17:23:48
--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii

Hi,
would someone object it I revert to UDP for the default mount for amd ?
The UDP->TCP move between 1.3.x and the comming 1.4 can trigger too much
problems (besides the fact that NetBSD doesn't recover properly if the server
reboots yet):
- a non-NetBSD server may claim to support v3 tcp mounts but not deal with them
  properly 
- on a local network, with a lot of clients, the large number of TCP
  connections may shot the server down

It would be bad that a working amd map for 1.3.3 cause problems with 1.4,
because TCP is used instead of UDP now. This change looks really intrusive to
me.

If noone object I'll commit this Tuesday morning.

--
Manuel Bouyer <bouyer@antioche.eu.org>
--

--zYM0uCDKw75PZbzx
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="amd.diff"

--- srvr_nfs.c.old	Sat Mar 27 16:54:22 1999
+++ srvr_nfs.c	Sat Mar 27 16:53:17 1999
@@ -96,7 +96,7 @@
 
 #if defined(MNTTAB_OPT_PROTO) || defined(HAVE_FS_NFS3)
 /* protocols we know about, in order of preference */
-static char *protocols[] = { "tcp", "udp", NULL };
+static char *protocols[] = { "udp", "tcp", NULL };
 #endif /* defined(MNTTAB_OPT_PROTO) || defined(HAVE_FS_NFS3) */
 
 /* forward definitions */

--zYM0uCDKw75PZbzx--