Date: Thu, 4 Oct 2018 12:57:34 +0200 From: Felix Winterhalter <felix@audiofair.de> To: freebsd-questions@freebsd.org Subject: Re: Mountd inconsistent error messages on nfsv4 mount Message-ID: <9bd1f184-5fc3-6690-1413-5b579782175c@audiofair.de> In-Reply-To: <3079ec6e-6c28-a1d0-c12f-8a9114b8f02c@audiofair.de> References: <3079ec6e-6c28-a1d0-c12f-8a9114b8f02c@audiofair.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9bd1f184-5fc3-6690-1413-5b579782175c>