[Bug 275200] NFS mounts cannot access ZFS snapshots in /<dataset>/.zfs
Date: Sun, 19 Nov 2023 14:45:02 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275200
Bug ID: 275200
Summary: NFS mounts cannot access ZFS snapshots in
/<dataset>/.zfs
Product: Base System
Version: 14.0-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: rmacklem@FreeBSD.org
Created attachment 246422
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=246422&action=edit
Set mnt_exjail for an automounted ZFS snapshot
Commit 88175af added a check for exported to
correct jail, using a new mount field called
mnt_exjail. This field is filled in when a
file system is exported.
Unfortunately, this filed is not filled in
when /<dataset>/.zfs/snapshot/<snapshit-name>
is automounted. As a result, access to this
automounted snapshot is not allowed via NFS.
The attached patch, which sets mnt_exjail for
this case, seems to fix the problem.
This patch is now on phabricator as D42672.
I will leave this PR open until an errata
for FreeBSD 14.0 is done to fix the problem.
--
You are receiving this mail because:
You are the assignee for the bug.