Locking/unlocking manually encrypted file system means to operate on parent files system for sure and I have described the SMB option in there. No need to share parent enc files system via SMB from my site. The sharing of parent enc file system wasn't wanted but happened...Do not enable sharing of a parent filesystem and then manually on daughter filesystems. This will give ZFS inheritance problems that I cannot solve in napp-it. Either share only the parent filesystem and traverse to deeper filesystems via this SMB share (OmniOS only, nested sharing of filesystems not supported on Solaris) or do not share the parent but the daughter filesystems only.
Issue still present on doing exactly these on in-replicated child file system (from different host) only.... or do not share the parent but the daughter filesystems only.
Parent file system:...You should also aware that there are "toxic" ZFS properies that should not be different between parent and childs like character sets or case sensitivity.
zfs set enc_automount:=yes pool/Data)
# zfs get all tank1/Data |grep smb tank1/Data sharesmb name=off local tank1/Data enc_smbak: abltigWpphyF2 local tank1/Data enc_smbshare: off local # zfs get all tank1/Data/Photos |grep smb tank1/Data/Photos sharesmb off local tank1/Data/Photos enc_smbshare: off local tank1/Data/Photos enc_smbak: abltigWpphyF2 inherited from tank1/Data