From nobody@FreeBSD.ORG Tue Oct  5 15:12:05 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 5F12E14F49; Tue,  5 Oct 1999 15:11:20 -0700 (PDT)
Message-Id: <19991005221120.5F12E14F49@hub.freebsd.org>
Date: Tue,  5 Oct 1999 15:11:20 -0700 (PDT)
From: jk@cais.net
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: NFS mount bug which prevents mounting of similarly named filesystems
X-Send-Pr-Version: www-1.0

>Number:         14146
>Category:       i386
>Synopsis:       NFS mount bug which prevents mounting of similarly named filesystems
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    dillon
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct  5 15:20:01 PDT 1999
>Closed-Date:    Sat Oct 30 14:24:42 PDT 1999
>Last-Modified:  Sat Oct 30 14:27:36 PDT 1999
>Originator:     Jay Kuri
>Release:        FreeBSD 3.1 and later
>Organization:
CAIS Internet
>Environment:
FreeBSD lol.cais.net 3.1-RELEASE FreeBSD 3.1-RELEASE #9: Mon Sep 20 14:31:41 EDT 1999     jk@lol.cais.net:/usr/src/sys/compile/LOL  i386
>Description:
If you export two directories via NFS with similar names, IE: both the
same except for one has some extra characters at the end:

Example:  /usr/nfs
	  /usr/nfsshare

Clients will not be permitted to mount /usr/nfsshare.  If you place them
both on the same line, or comment out the first, the second will be
allowed.  My guess is that this has something to do with the 
subdirectory-checking code.
>How-To-Repeat:
Create two directories anywhere, say: /usr/nfs and /usr/nfsshare
and export them both.  Then try to mount /usr/nfsshare on another client.
It will fail.  Comment out the /usr/nfs line and try again (after 
restarting mountd) and you will be able to mount it.
>Fix:
Workaround: If you need to mount them both to one set of clients, put
them on the same line, otherwise, no solution.


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->dillon 
Responsible-Changed-By: sheldonh 
Responsible-Changed-When: Wed Oct 6 01:55:44 PDT 1999 
Responsible-Changed-Why:  
I'm trusting that the NFS maintainer will jump on my head 
if I'm assigning the wrong sorts of PR's to him. :-) 

From: Martin Blapp <blapp@attic.ch>
To: freebsd-gnats-submit@freebsd.org, jk@cais.net
Cc:  
Subject: Re: i386/14146: NFS mount bug which prevents mounting of similarly named 
 filesystems
Date: Wed, 06 Oct 1999 10:34:39 +0000

 Very strange. I've tried once and encountered the problems
 as you. After killing mountd it suddenly worked. The order
 of the shares seems not to be important.
 
 # directories           options                 hosts
 # ------------------------------------------------------
 
 /usr/nfsshare /usr/nfs -maproot=root    127.0.0.1 fuchur
 /var                                    127.0.0.1
 /cdrom                                  atreju 127.0.0.1
 
 showmount -e
 
 root@kassiopeja:/root# showmount -e
 Exports list on localhost:
 /var                               127.0.0.1
 /usr/nfsshare                      127.0.0.1 fuchur
 /usr/nfs                           127.0.0.1 fuchur
 /cdrom                             atreju 127.0.0.1
 
 Can you send me your exports file ?
 
 Martin
 
State-Changed-From-To: open->closed 
State-Changed-By: green 
State-Changed-When: Sat Oct 30 14:24:42 PDT 1999 
State-Changed-Why:  
This is user error. 
>Unformatted:
