Would ZFS snapshots protect against ransomware?
Edit: I guess I'm assuming the ransomware doesn't have access to the raw disks, which would be true if you were using a NAS (e.g. FreeNAS) and connecting to it via NFS, CIFS, etc.
On the storage? Nope.
Get backups.