sharemgr show -P [nfs|smb] doesn't work for shared datasets
sharemgr show -P <nfs|smb> does not output shared ZFS datasets that were shared by zfs set sharenfs|sharesmb.
It works for so-called "legacy" shares only (i.e. shared directories).
// patch is attached
Updated by Rich Lowe almost 10 years ago
Summarizing an IRC conversation:
With regular shares there's a two-level hierarchy, a group containing shares, with ZFS there's a 'zfs' group, containing subgroups, containing shares, following the dataset hierarchy. We assume, nevertheless, that any share has a protocol matching the shares in its parent (which I think the CLI enforces, if you're using the CLI).