Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/amd/amd Hack to work around a problem in either Sun...



details:   https://anonhg.NetBSD.org/src/rev/6da040b79bbb
branches:  trunk
changeset: 471673:6da040b79bbb
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Wed Apr 07 11:21:49 1999 +0000

description:
Hack to work around a problem in either SunOS 4.1.4 or our RPC code:
once we determined the rigth protocol to use, recall get_nfs_version()
so that the last RPC call was a successfull one. Otherwise with a SunOS 4.1.4
server (which doesn't accept TCP mounts) UDP mounts would fail.

diffstat:

 usr.sbin/amd/amd/srvr_nfs.c |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 770eeaeb6e34 -r 6da040b79bbb usr.sbin/amd/amd/srvr_nfs.c
--- a/usr.sbin/amd/amd/srvr_nfs.c       Wed Apr 07 10:21:31 1999 +0000
+++ b/usr.sbin/amd/amd/srvr_nfs.c       Wed Apr 07 11:21:49 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: srvr_nfs.c,v 1.11 1999/03/30 08:23:26 bouyer Exp $     */
+/*     $NetBSD: srvr_nfs.c,v 1.12 1999/04/07 11:21:49 bouyer Exp $     */
 
 /*
  * Copyright (c) 1997-1999 Erez Zadok
@@ -755,6 +755,12 @@
 #endif /* not HAVE_FS_NFS3 */
   }
 
+  /*    
+   * XXX RPC or SunOS 4.1.4 bug ? the last call to nfs_get_version() must  
+   * be done with the used version and proto  
+   */  
+  (void)get_nfs_version(host, ip, nfs_version, nfs_proto);  
+
   if (!nfs_proto)
     nfs_proto = "udp";
 



Home | Main Index | Thread Index | Old Index