Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 1996 23:40:02 -0700 (PDT)
From:      Assar <assar@sics.se>
To:        freebsd-bugs
Subject:   Re: bin/1607: unmount fails for a NFS fs mounted without -P from a server that requires reserved ports
Message-ID:  <199609130640.XAA24949@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/1607; it has been noted by GNATS.

From: Assar <assar@sics.se>
To: Thomas Gellekum <thomas@ghpc8.ihf.rwth-aachen.de>
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 <thomas@ghpc8.ihf.rwth-aachen.de> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609130640.XAA24949>