HomeFreeBSD

OpenZFS: Fix ZFS so that snapshots under .zfs/snapshot are NFS visible

Description

OpenZFS: Fix ZFS so that snapshots under .zfs/snapshot are NFS visible

Call vfs_exjail_clone() for mounts created under .zfs/snapshot
to fill in the mnt_exjail field for the mount. If this is not
done, the snapshots under .zfs/snapshot with not be accessible
over NFS.

This version has the argument name in vfs.h fixed to match that
of the name in spl_vfs.c, although it really does not matter.

External-issue: https://reviews.freebsd.org/D42672
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Rick Macklem <rmacklem@uoguelph.ca>
Closes #15563

(cherry picked from commit 522414da3b283dada175161e49ea7f3fe46436ff)

Details

Provenance
rmacklemAuthored on Nov 28 2023, 12:31 AM
emasteCommitted on Dec 4 2023, 9:03 PM
Parents
rG9b2326333e88: pfctl: use libpfctl instead of DIOCGETRULES directly
Branches
Unknown
Tags
Unknown