Mountd inconsistent error messages on nfsv4 mount

Felix Winterhalter felix at audiofair.de
Thu Oct 4 10:57:37 UTC 2018


This is apparently caused by a quirk in linux mount as I found out.

mount -t nfs4 tries a V4 mount first and then falls back to v3 unless -o
vers=4 is explicitly specified. Leading to the error messages seen
below. This is not a bug in FreeBSD but a weird fallback on Linux's side.

On 10/2/18 2:06 PM, Felix Winterhalter wrote:
> I am currently trying to set up nfsv4 exports on one of our servers.
> I found out that the mountd output for denied mount requests is a bit weird.
>
> For example my exports file looks like this:
>
> V4: /shareroot clients
> /shareroot -alldirs clients
>
>
> Which would export the shareroot to the netgroup clients.
>
> So far so good. Mounting this directory works also fine from clients.
>
>
> Now if I try to mount a directory which does not exist with a mountline
> like this:
>
> mount -t nfs4 server:/directorywhichdoesnotexist
>
> I get an error in mountd along the lines:
>
> mountd[8274]: mount request denied from :: for /directorywhichdoesnotexist
>
>
> which is a bit hard to debug especially with multiple trees. I would
> have expected mountd to know about the V4 root and printed it
> accordingly as:
>
> mountd[8274]: mount request denied from :: for
> /shareroot/directorywhichdoesnotexist
>
>
> Is there any reason why it doesn't do that?
>
> This also happens when a subdirectory does not exist. It maps the
> complete tree back to / instead of the V4 root.
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list