Bug 82231

Summary: mountd(8) behavior does not match exports(5) man page, /etc/exports comments or Handbook
Product: Documentation Reporter: Trix Farrar <trix>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Trix Farrar 2005-06-14 16:20:19 UTC
According to documentation, multiple filesystems can be specified on a single line in /etc/exports.  However, when more than one filesystem is specified on a single line, mountd emits an error to syslog and does not export either filesystem.  syslog message is; "bad exports list line" followed by the filesystems specified.

Fix: 

exports(5 and Chapter 23.3 in FreeBSD Handbook should be updated to reflect current behavior of mountd(8), unless it would be easier/better to change mountd(8)'s behavior back to match documentation.
How-To-Repeat: In my case, /usr/ports and /usr/src are different filesystems.  These filesystem are exported from machine willow to machines spike, harmony, and dawn.

In file willow:/etc/exports:
/usr/ports -maproot=0 spike, harmony, dawn
/usr/src -maproot=0 spike, harmony, dawn

Filesystems are exported correctly.

Edit willow:/etc/exports to contain:
/usr/ports /usr/src -maproot=0 spike, harmony, dawn

Signal mountd with:
# kill -s HUP `cat /var/run/mountd.pid

tail /var/log/messages to find
Jun  7 10:16:10 willow mountd[388]: bad exports list line /usr/ports /usr/src
Comment 1 trix 2005-08-02 14:04:37 UTC
User=20lacked=20sufficient=20understanding.
This=20is=20a=20non-issue.
This=20PR=20should=20be=20closed.

NOTICE:=20This=20email=20and=20any=20attached=20files=20are=20confidential=
=20and=20intended=20solely=20for=20the=20use=20of=20the=20addressee.=20=20=
If=20you=20have=20received=20this=20email=20in=20error,=20please=20notify=20=
the=20sender=20and=20delete=20it=20immediately,=20without=20disclosing=20o=
r=20using=20its=20contents=20for=20any=20purpose.=20=20Edgenet=20Inc.=20ac=
cepts=20no=20liability=20for=20any=20damage=20caused=20by=20any=20virus=20=
transmitted=20by=20this=20email.
Comment 2 Tom Rhodes freebsd_committer freebsd_triage 2005-08-17 22:28:54 UTC
State Changed
From-To: open->closed

Closed, as requested by submitter.