From owner-freebsd-bugs Fri Nov 24 12:40:10 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 547D637B4D7 for ; Fri, 24 Nov 2000 12:40:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id MAA51885; Fri, 24 Nov 2000 12:40:01 -0800 (PST) (envelope-from gnats@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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: misc/23084: mount_nfs hangs self with some NFS servers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 23084 >Category: misc >Synopsis: mount_nfs hangs self with some NFS servers >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 24 12:40:01 PST 2000 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message