[Bug 260894] Nonexportable file systems are usable over NFSv4
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jan 2022 23:38:28 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260894 --- Comment #5 from Rick Macklem <rmacklem@FreeBSD.org> --- Take a look at usr.sbin/mountd/mountd.c, around line#3205-3264. If I read it correctly, a return from nmount(2) of EINVAL indicates "this is not a mount point". The loop then moves up a directory level and tries again. I have a hunch that what you did was export the underlying/parent file system and you were looking at "/mnt" in this parent file system. Short answer, try EPERM instead of EINVAL. Another issue is that nmount(2) is also used by mountd.c to delete exports, and that will fail too, if you have VFS_MOUNT() return a failure for that case. --> Might not matter if it has never been exported. -- You are receiving this mail because: You are the assignee for the bug.