Subject: Re: kern/32286: exporting more than one directory to the world in one filesystems failed
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
List: netbsd-bugs
Date: 12/13/2005 08:55:01
The following reply was made to PR kern/32286; it has been noted by GNATS.

From: Wolfgang Stukenbrock <Wolfgang.Stukenbrock@nagler-company.com>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/32286: exporting more than one directory to the world in one filesystems failed
Date: Tue, 13 Dec 2005 09:51:48 +0100

 Hi,
 
 the -alldir may work if theese two directories are the only one present 
 there, but this is not true on our server.
 
 At the moment I'm useing my workaround. This shows the export to 0.0.0.0 
 in showmount (not everybody), but I can live with that.
 
 I think the main problem should be fixed as soon as possible, because 
 exporting two directories in different subdirs on a filesystem to the 
 world will fail too.
 
 W. Stukenbrock
 
 
 Christos Zoulas wrote:
 
 > The following reply was made to PR kern/32286; it has been noted by GNATS.
 > 
 > From: christos@zoulas.com (Christos Zoulas)
 > To: gnats-bugs@netbsd.org, kern-bug-people@netbsd.org,
 > 	gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
 > Cc: 
 > Subject: Re: kern/32286: exporting more than one directory to the world in one filesystems failed
 > Date: Mon, 12 Dec 2005 09:57:39 -0500
 > 
 >  On Dec 12,  2:40pm, Wolfgang.Stukenbrock@nagler-company.com (Wolfgang Stukenbrock) wrote:
 >  -- Subject: kern/32286: exporting more than one directory to the world in one
 >  
 >  | >Number:         32286
 >  | >Category:       kern
 >  | >Synopsis:       exporting more than one directory to the world in one filesystems failed
 >  | >Confidential:   no
 >  | >Severity:       serious
 >  | >Priority:       medium
 >  | >Responsible:    kern-bug-people
 >  | >State:          open
 >  | >Class:          sw-bug
 >  | >Submitter-Id:   net
 >  | >Arrival-Date:   Mon Dec 12 14:40:00 +0000 2005
 >  | >Originator:     Wolfgang Stukenbrock
 >  | >Release:        NetBSD 2.1
 >  | >Organization:
 >  | Dr. Nagler & Company GmbH
 >  | >Environment:
 >  | 	
 >  | 	
 >  | #
 >  | # export the sources of netbsd to the whole world - they are not secret
 >  | #
 >  | /export/NetBSD-2.1/src  -ro
 >  | /export/NetBSD-2.1/xsrc -ro
 >  | 
 >  | END OF EXPORTFILE
 >  | 	
 >  | 	Than try to export it. You will get the message:
 >  | Dec 12 15:22:09 s012 mountd[1955]: "/export/NetBSD-2.1/xsrc -ro", line 10: Can't change attributes for /export/NetBSD-2.1/xsrc to Default: Operation not permitted
 >  | 
 >  | 	If a third world export is added the problem appears at the two last entries of the export file. It will work only for the first.
 >  | >Fix:
 >  | 	Not known.
 >  | 	Either there is a problem inside the mount() call or there is a problem with the "default" network entry.
 >  | 	An export like "/export/NetBSD-2.1/xsrc -ro -network 0.0.0.0/0" will work and may be used as aworkaround for this problem.
 >  | 
 >  
 >  Use -alldirs:
 >  
 >  /export/NetBSD-2.1 -ro -alldirs
 >  
 >  christos
 >  
 >