News for hackers. Stuff that matters.
Re:How to Learn Nix by pxc on Monday November 22, 2021 @09:32AM (#29306660)
> I thought it was always going to remain poorly integrated into the Linux ecosystem.

Interestingly, NixOS excels at ZFS integration.

Because NixOS builds everything from source with transparent binary caching, always upgrades your system as an integral while, and performs upgrades atomically, you'll probably not even notice that ZFS isn't in the mainline kernel as you use it. NixOS will never upgrade your kernel to one that's incompatible with whatever version of ZFS is in the repos, and it'll never leave you in a partially upgraded state where your new kernel is installed, but your new ZFS modules are not— even if you pull the power during an upgrade.

ZFS feels very native on NixOS. It's great

Re:How to Learn Nix by tux1968 on Monday November 22, 2021 @08:24PM (#29313607)
To my knowledge, the integration with the kernel is still not very good. As someone else mentioned in a reply, there are large swathes of the Solaris kernel with duplicate functionality included in the Linux kernel solely to support ZFS, because native integration is too difficult in face of the licensing and maintenance issues.

It remains a kludge rather than something that can really be thought of as an integrated Linux solution. Even if it works okay in some situations.

Re:How to Learn Nix by pxc on Monday November 22, 2021 @10:12PM (#29314210)
Is the Solaris Porting Layer really due to a licensing issue or just a ZFS portability issue? FreeBSD's ZFS implementation reportedly has a similar portability shim.¹ The new OpenZFS implementations for Windows and macOS each have their own Solaris Porting Layer, too.

If what you want is just snapshotting and you want something that's in the mainline kernel, I guess there's BTRFS. Bcachefs seems to be coming along nicely, but who knows when it'll really be ready.

——

1: https://papers.freebsd.org/2019/BSDCan/jude-The_Future_of_Op...