News for hackers. Stuff that matters.
Re:Introduce ZSTD compression to ZFS by tobias3 on Sunday May 17, 2020 @07:42AM (#23211296)
In this case it could use the Linux crypto API, which already has ZSTD support and provides compress/decompress functions. But that is exported as GPLv2 so ZFS needs to do its own thing. And idk if the API is sufficient w.r.t. to e.g. workspace management/reuse.

W.r.t. to ZSTD: The usual thing is to provide a zlib compatible API, which ZSTD does ( https://github.com/facebook/zstd/tree/dev/zlibWrapper ). But the ZSTD zlib compatibility layer causes lower performance, so it is better to use it directly. Maybe all future compression algorithms can provide a ZSTD compatible API, so we have to do less work in the future?

Re:Introduce ZSTD compression to ZFS by 1over137 on Sunday May 17, 2020 @10:50AM (#23212401)
>In this case it could use the Linux crypto API

Could it? That doesn't sound very portable, and ZFS works on FreeBSD too.

Re:Introduce ZSTD compression to ZFS by glandium on Monday May 18, 2020 @07:43AM (#23221116)
Zstd is dual licensed BSD and GPL. It is kind of weird the kernel limits it to GPL modules.