I know this has been posted before, but I have not seen a conclusive answer
to this mountd problem I, and others, have reported.
Here's the details: mountd is failing to export a filesystem properly. It
will complain about one or more exports, but still export it. Trying to
mount this export can take forever, and the -maproot or -mapall options will
be essentially ignored, and behave as if there were no such settings applied
to the export. Same behaviour on OBSD 2.8 and 3.0 (I just upgraded).
The problem appears to be if you have more than one line in your
/etc/exports. It looks like the first one on a partition wins.
Here's my /etc/exports:
# public share
/export/public -mapall=nobody:users -network=10.0.0
# www docroot
# the syntax for -network is unclear from the man pages, but I've tried both
# I've also tried exporting to particular hosts, but it just complains about
all of them, in order
/var/www -mapall=www:www -network=10.0.0
Kicking mountd prompts it to report the following in /var/log/messages:
Apr 9 15:30:01 martini mountd: Can't change attributes for /var/www
Apr 9 15:30:01 martini mountd: Bad exports list entry (10.0.0.0) in
line /var/www -mapall
Commenting out one line or the other appears to export the other one fine.
If I swap the order of the lines, mountd complains about the second one.
It's almost like it's complaining that I'm reexporting the same directory,
but I'm not. I *do* have these shared out via SMB (for easier access to the
few Windows boxes left on my network). Is this a problem? Both of these
directories are on the same filesystem -- everything is on the same 2Gb
partition, other than swap.
Anyone spare a clue?