| Summary: | mount_nfs hangs self with some NFS servers | ||
|---|---|---|---|
| Product: | Base System | Reporter: | jrd <jrd> |
| Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 4.2-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->feedback 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. State Changed From-To: feedback->closed Feedback timeout. |
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.