OpenZFS native encryption splits the difference: it operates atop the normal ZFS storage layers and therefore doesn't nerf ZFS' own integrity guarantees. But it also doesn't interfere with ZFS compression—data is compressed prior to being saved to an encrypted dataset or zvol.
Comments
This and encryption seem mutually exclusive (for me with OpenZFS @ Ubuntu 21.04).
They occur at different layers:
* https://arstechnica.com/gadgets/2021/06/a-quick-start-guide-...
No, they are not. Compression happens on the plaintext data, and encryption applies post-compression.