From nobody  Mon Mar 10 03:44:01 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id DAA13866;
          Mon, 10 Mar 1997 03:44:01 -0800 (PST)
Message-Id: <199703101144.DAA13866@freefall.freebsd.org>
Date: Mon, 10 Mar 1997 03:44:01 -0800 (PST)
From: kumano@strl.nhk.or.jp
To: freebsd-gnats-submit@freebsd.org
Subject: lack of NFS V3 support in amd(8)
X-Send-Pr-Version: www-1.0

>Number:         2930
>Category:       bin
>Synopsis:       lack of NFS V3 support in amd(8)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 10 03:50:02 PST 1997
>Closed-Date:    Wed Apr 30 02:28:08 PDT 1997
>Last-Modified:  Wed Apr 30 02:29:41 PDT 1997
>Originator:     KUMANO, Tadashi
>Release:        FreeBSD 2.2-970216-GAMMA i386
>Organization:
NHK Science and Technical Research Laboratories
>Environment:
FreeBSD g4ppro 2.2-970216-GAMMA FreeBSD 2.2-970216-GAMMA #0: Mon Feb 17 09:15:56 JST 1997
     kumano@g4ppro:/usr/src/sys/compile/GFOURPPRO  i386
>Description:
Though NFS V3 mount has supported in mount_nfs(8), there is no way to specify this operation in amd(8) configuration files.
>How-To-Repeat:

>Fix:
Apply this patch, then mount option `nfsv3' is available in configuration file.

*** /usr/src/usr.sbin/amd/amd/nfs_ops.c~  Tue Jun 27 20:07:24 1995
--- /usr/src/usr.sbin/amd/amd/nfs_ops.c   Mon Feb 17 19:05:36 1997
***************
*** 642,647 ****
--- 642,651 ----
                nfs_args.sotype = SOCK_STREAM;
  #endif /* HAS_TCP_NFS */

+ #ifdef NFSMNT_NFSV3
+       if (hasmntopt(&mnt, "nfsv3") != NULL)
+               nfs_args.flags |= NFSMNT_NFSV3;
+ #endif /* NFSMNT_NFSV3 */

  #ifdef ULTRIX_HACK
        /*

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: dfr 
State-Changed-When: Wed Apr 30 02:28:08 PDT 1997 
State-Changed-Why:  
Fixed in current as of 22 April 1997.  NFSv3 is tried by default and NFSv2 is 
used if v3 is not available or if the nfsv2 option is given in the mount map. 
>Unformatted:
