FreeBSD: Fix ZFS so that snapshots under .zfs/snapshot are NFS visible
commit522414da3b283dada175161e49ea7f3fe46436ff
authorrmacklem <64620010+rmacklem@users.noreply.github.com>
Tue, 28 Nov 2023 00:31:03 +0000 (27 16:31 -0800)
committerTony Hutter <hutter2@llnl.gov>
Wed, 29 Nov 2023 22:08:46 +0000 (29 14:08 -0800)
treee2d885883f8b5cb090c44bd17a401405ab2e04d9
parenta8c256046b0433861d6c5dafce54d750059b7c1b
FreeBSD: 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
include/os/freebsd/spl/sys/vfs.h
module/os/freebsd/spl/spl_vfs.c
module/os/freebsd/zfs/zfs_ctldir.c