NFS exports of ZFS snapshots broken

From: Garrett Wollman <wollman_at_bimajority.org>
Date: Fri, 17 Nov 2023 21:04:40 UTC
Hi, all,

One other regression that we found after upgrading from 12.4 to 13.2
on our NFS servers is that ZFS snapshots of exported filesystems are
no longer accessible to NFS clients.  The .zfs/snapshot directory is
readable, and can stat(2) the individual snapshot directories, but
attempting to access the contents of the snapshots over NFS fails --
clients see either [ESTALE] or [EIO] depending on whether it's an
NFSv3 or v4 mount.  Has anyone else run into this?  Did you find a
solution?

(I asked rmacklem@ and he said he doen't use ZFS and doesn't know the
answer.)

-GAWollman