Return to BSD News archive
Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!gossip.pyramid.com!olivea!spool.mu.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!cs.utexas.edu!uwm.edu!rpi!ghost.dsi.unimi.it!newsserver.di.unipi.it!pical2!luigi From: luigi@pical2.uucp (Luigi Rizzo) Newsgroups: comp.unix.bsd Subject: Re: mountd/portmap/NFS problem -- solved. Message-ID: <1992Nov7.155354.3562@di.unipi.it> Date: 7 Nov 92 15:53:54 GMT References: <1992Nov5.175351.26079@cs.brown.edu> Sender: netnews@di.unipi.it (USENET News System) Reply-To: luigi@iet.unipi.it Organization: Dip. di Ingegneria dell'Informazione, Univ. di Pisa (ITALY) Lines: 87 Nntp-Posting-Host: pical2.iet.unipi.it Thanks to all who replied. My problem actually involves two (known) 'features' of mountd and the nfs client code. Portmap seems to be innocent. The first bug is related to mountd, and the description is as follows: ======================================== Bug Number: MISC006 Problem: mountd hangs when exporting a file system sub-directory Explanation: If /etc/exports contained: /usr/src -root=0 And /usr was not a file system unto itself, mountd went into an infinite loop and stayed there. Solution: The fix: in /usr/src/sbin/mountd/mountd.c, line 592 reads: while (*cp == '/' && cp > ep->ex_dirp) and should read: while (*(cp-1) == '/' && cp > ep->ex_dirp) PATCH00054 Submitted by: roe@unibase.sk.ca (Roe Peterson) Solved by: (same) ======================================== Unfortunately, the /etc/exports you get with the standard distribution (bin01) tries to export /usr/bill while the filesystem is /, thus triggering the bug. Many many people must have had this problem. I didn't understand it because, at first, I thought the bug would appear only when a mount request actually arrived. Which is wrong! The second problem has to do with the remote NFS server requiring for requests to come from a reserved port. The bug description is as follows: ======================================== Bug Number: MISC019 Problem: NFS bugs. Appending to already existing files. Read request hangs. IBM AIX 3.2 client fixes. reserved ports for NFS. Subdirectories can be exported. Explanation: In the patch. Solution: PATCH00016 PATCH00042 PATCH00053 Submitted by: comp.unix.bsd root@snowhite.cis.uoguelph.ca (gopher I) Solved by: comp.unix.bsd arnej@Lise.Unit.NO (Arne Henrik Juul) martin@innovis.com (Martin Galassi) root@snowhite.cis.uoguelph.ca (gopher I) ============================================ I experienced the problem with Ultrix 4.1. Unfortunately this bug is particularly bad for me because in order to rebuild the kernel I need disk space, and I hoped to get it by NFS-mounting a disk from a big brother... So I'd really appreciate if someone could point me to a ready-to-run kernel with the NFS patches applied. Same for a working mountd. Thanks Luigi ==================================================================== Luigi Rizzo Dip. di Ingegneria dell'Informazione email: luigi@iet.unipi.it Universita' di Pisa tel: +39-50-568533 via Diotisalvi 2, 56124 PISA (Italy) fax: +39-50-568522 ====================================================================