From owner-freebsd-bugs Thu Sep 12 23:40:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA24978 for bugs-outgoing; Thu, 12 Sep 1996 23:40:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA24949; Thu, 12 Sep 1996 23:40:02 -0700 (PDT) Date: Thu, 12 Sep 1996 23:40:02 -0700 (PDT) Message-Id: <199609130640.XAA24949@freefall.freebsd.org> To: freebsd-bugs Cc: From: Assar Subject: Re: bin/1607: unmount fails for a NFS fs mounted without -P from a server that requires reserved ports Reply-To: Assar Sender: owner-bugs@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk The following reply was made to PR bin/1607; it has been noted by GNATS. From: Assar To: Thomas Gellekum Cc: FreeBSD-gnats-submit@FreeBSD.org Subject: Re: bin/1607: unmount fails for a NFS fs mounted without -P from a server that requires reserved ports Date: 13 Sep 1996 08:35:34 +0200 Thomas Gellekum writes: > assar@sics.se wrote: > > > > >Description: > > > > When trying to unmount a NFS-filesystem mounted from a server that > > requires reserved ports but without the -P option, unmount fails. > > > > > > > > >How-To-Repeat: > > > > bash# mount foo:/fs /mnt > > bash# umount /mnt > > umount: foo:/fs: No such file or directory > > Try `umount foo:/fs'; I think that works. Don't ask me why, though. From reading the code it does more of less: if(stat(name, ) < 0) try to find the other half of (device, mounted_on) with getmnttab unmount() stat for /mnt fails with EACCES, so you find do unmount(`foo:/fs') which fails. With your suggestion, stat still fails and you do unmount(`/mnt'), with is the right thing! I'm still not sure how to fix it. /assar