Create an NFS or SMB share of a ZFS file system by using the zfs set share command. For example:
# zfs create rpool/fs1
# zfs set share=name=fs1,path=/rpool/fs1,prot=nfs rpool/fs1
name=fs1,path=/rpool/fs1,prot=nfs
Publish the NFS or SMB share by setting the sharenfs or sharesmb property to on. For example:
# zfs set sharenfs=on rpool/fs1
# cat /etc/dfs/sharetab
/rpool/fs1 fs1 nfs sec=sys,rw