Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Nov 2023 14:45:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 275200] NFS mounts cannot access ZFS snapshots in /<dataset>/.zfs
Message-ID:  <bug-275200-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275200

            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=3D246422&action=
=3Dedit
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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-275200-227>