Bug 11690 - problem with /usr/sbin/exportfs
problem with /usr/sbin/exportfs
Product: Red Hat Linux
Classification: Retired
Component: nfs-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Michael K. Johnson
Depends On:
  Show dependency treegraph
Reported: 2000-05-26 10:59 EDT by mal
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-12-14 18:38:19 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description mal 2000-05-26 10:59:35 EDT
there is a problem with /usr/sbin/exportfs
from nfs-utils-0.1.6-2
when I run
/usr/sbin/exportfs -a
I get an error message
exportfs: Unknown keyword "crossmnt" in export file
The cause of this error message is
the word crossmnt in /proc/fs/nfs/exports

cat /proc/fs/nfs/exports

# Version 1.0
# Path Client(Flags) # IPs
/home/installation,insecure,root_squash,all_squash,async,wdelay,crossmnt) #

crossmnt word causes exportfs to fail.
Comment 1 Seth Vidal 2000-07-14 01:46:41 EDT
shutdown nfs entirely.
the /proc file will go away - restart it.
also look in: /var/lib/nfs for a file with crossmnt in it.
Comment 2 mal 2000-08-09 09:39:18 EDT
If I shutdown and restart it - same thing.
The kernel created file
has the word corossmnt.
The only way to remove it - remove nohide option from /etc/exports
In /var/lib/nfs/etab there is no such word.
cat /var/lib/nfs/etab 

cat /proc/fs/nfs/exports 
# Version 1.0
# Path Client(Flags) # IPs
/home/dev/BBS,insecure,root_squash,all_squash,async,wdelay,crossmnt) #
/home/httpd,insecure,root_squash,all_squash,async,wdelay,crossmnt) #
/home/redhat7.0,insecure,root_squash,all_squash,async,wdelay,crossmnt) #

cat /etc/exports 
/home/httpd (ro,insecure,all_squash,nohide)
/home/redhat7.0 (ro,insecure,all_squash,nohide)
/home/dev/BBS (ro,insecure,all_squash,nohide)

The only way to fix this-
remove nohide option from /etc/exports
Comment 3 Alan Cox 2000-08-18 13:27:27 EDT
knfsd does not support all the features the old unfsd does.
Comment 4 mal 2000-08-18 13:33:31 EDT
Then this should be documented somewhere.
For example in 
man exports
at least.
Comment 5 Alan Cox 2002-12-14 18:38:19 EST
Well man exports doesnt include the option - it should have been in the release
notes way back then.

Just tidying up old dead bugs

Alan the bugzilla womble

Note You need to log in before you can comment on or make changes to this bug.