From nobody@FreeBSD.ORG  Fri Nov 24 12:33:56 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 43C4737B479; Fri, 24 Nov 2000 12:33:56 -0800 (PST)
Message-Id: <20001124203356.43C4737B479@hub.freebsd.org>
Date: Fri, 24 Nov 2000 12:33:56 -0800 (PST)
From: jrd@cc.usu.edu
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: mount_nfs hangs self with some NFS servers
X-Send-Pr-Version: www-1.0

>Number:         23084
>Category:       misc
>Synopsis:       mount_nfs hangs self with some NFS servers
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 24 12:40:01 PST 2000
>Closed-Date:    Sat Mar 2 08:51:14 PST 2002
>Last-Modified:  Sat Mar 02 08:52:28 PST 2002
>Originator:     Joe R. Doupnik
>Release:        4.2-RELEASE
>Organization:
Utah State University
>Environment:
netlab6# uname -a
FreeBSD netlab6.usu.edu 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Tue Nov 21 18:47:36
MST 2000     root@netlab6.usu.edu:/usr/src/sys/compile/JRD  i386
>Description:
Netlab6 is FreeBSD 4.2, netlab4 is the NetWare 5.1 file server exporting
/SYS/anonftp. Solaris8 and UnixWare 7.1.1 and Caldera Linux 2.4 all
mount this with no problem. Note that Caldera Linux does mount v2 udp
calls no matter what, sigh.
 Mount_nfs is not picking up the fact that the exporting server is
not offering mounting over tcp, and instead FBSD gets stuck trying
over and over.
 I might mention in passing that the code for mount_nfs has section
near the end where mount version is switch/case'd on 1 and 3 but
no mention is made of 2 and default. This may be fine, but it looks
incomplete at first glance.
 Below is the screen dialogue illustrating the problem.

netlab6# rpcinfo -p netlab4
   program vers proto   port
    100000    3   tcp    111  portmapper
    100000    3   udp    111  portmapper
    100000    2   udp    111  portmapper
    100000    2   tcp    111  portmapper
    100007    2   udp   1028  ypbind
    100003    2   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   udp   2049  nfs
    100003    3   tcp   2049  nfs
    100005    1   udp   1029  mountd
    100005    2   udp   1030  mountd
    100005    3   udp   1031  mountd
netlab6# mount_nfs -o ro,soft netlab4:/SYS/anonftp /mnt
mount_nfs: can't access /SYS/anonftp: No such file or directory
netlab6# mount_nfs -3 -o ro,soft netlab4:/SYS/anonftp /mnt
mount_nfs: can't access /SYS/anonftp: No such file or directory
netlab6# mount_nfs -T -o ro,soft netlab4:/SYS/anonftp /mnt
Cannot MNT RPC: RPC: Program not registered

^C	<< This will go on, and on, failing.
netlab6#
netlab6# mount_nfs -2 -o ro,soft netlab4:/SYS/anonftp /mnt
netlab6#
netlab6# uname -a
FreeBSD netlab6.usu.edu 4.2-RELEASE FreeBSD 4.2-RELEASE #0: Tue Nov 21 18:47:36
MST 2000     root@netlab6.usu.edu:/usr/src/sys/compile/JRD  i386
netlab6#
>How-To-Repeat:
Mounting is from a NetWare 5.1 file server.
>Fix:


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: iedowse 
State-Changed-When: Sat Nov 17 17:20:18 PST 2001 
State-Changed-Why:  

Could you try a more recent FreeBSD release? There were quite a few 
changes made to mount_nfs since 4.2, so the issue may be resolved. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23084 
State-Changed-From-To: feedback->closed 
State-Changed-By: iedowse 
State-Changed-When: Sat Mar 2 08:51:14 PST 2002 
State-Changed-Why:  

Feedback timeout. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23084 
>Unformatted:
