Talk:ZFS

Kernel config
It should be mentioned that Kernel needs the ZLIB_DEFLATE ( https://github.com/zfsonlinux/spl/commit/42b3ce6) option enabled (which is not directly accessible). Can be enabled by selecting Zlib-compression algorithm in Cryptographic-API of menuconfig.


 * Feel free to mention it. This is a publicly modifiable wiki. --Maffblaster (talk) 20:01, 30 December 2016 (UTC)

TRIM support?
Article doesn't mention anything about TRIM(aka discard) support which it appears to be unimplemented: https://github.com/zfsonlinux/zfs/pull/1016 --EmanueLczirai (talk) 13:25, 6 February 2015 (UTC)

If it's not implemented in ZFS, then the article probably doesn't need to mention it... --Maffblaster (talk) 20:01, 30 December 2016 (UTC)

Caveats
Gonna check in with the Gentoo ZFS maintainers, as I think the bugs referenced in the Caveats section have all been closed, although whether the underlying issues are fully resolved remains another matter!! -- veremit (talk) 19:41, 29 June 2017 (UTC)

ZFS 0.8.0
I've had issues recently building after following the guidance here for Installing into the kernel directory (for static installs). The latest version of zfs in the ZFSonLinux GIT repository is 0.8.0-rc1. This version does not appear to need a separate build of spl or zfs-kmod prior to building, and I've successfully built a new kernel today without having to emerge spl or zfs-kmod. This section could be edited to include advice specific to builds incoporating >=zfs-0.8.0. I'll draft some revised guidance, but would appreciate someone reviewing this when I'm done. -- Sdp.williams (talk) 17:39, 10 September 2018 (UTC)
 * Hmm. Sounds interesting. Haven't recompiled for awhile but looking to do so nowish anyway (testing some EXPERIMENTAL drivers for various wifi chipsets operating in AP mode for an embedded project) so I will take a look and review your text when I get around to it in the next few days. Walter (talk) 23:53, 10 September 2018 (UTC)

Installing into the kernel directory (for static installs)
It seens a mistake in the commands, it should copy-buildin the sys-kernel/spl first, and I edit it.--Harleylg (talk)

spl still needed for 0.7.x
a recent edit says that after 0.7.11 that spl is no longer needed, this is incorrect, the cutoff is at 0.8.0, which is still in release candidate phase. Bunder (talk) 08:47, 11 February 2019 (UTC)

Advise that zfs needs to be emerged before kernel
Otherwise if building kernel before zfs, then genkernel will complain about missing /sbin/mount.zfs at the initramfs build stage.

Russelld (talk) 09:08, 11 February 2019 (UTC)

Is the disabling of these hardened kernel configs still necessary?
I notice that the only kernel config that is checked for in sys-fs/zfs (both 0.8.5 & 2.0.0_rc6, as of this writing) is BLK_DEV_LOOP. sys-fs/zfs-kmod checks for !DEBUG_LOCK_ALLOC, EFI_PARTITION, MODULES, !PAX_KERNEXEC_PLUGIN_METHOD_OR, !TRIM_UNUSED_KSYMS, ZLIB_DEFLATE and ZLIB_INFLATE. Further, if you have  set, it further looks for FRAME_POINTER, DEBUG_INFO and !DEBUG_INFO_REDUCED. Lastly, if you have  set, it wants BLK_DEV_INITRD and DEVTMPFS. So, no mention of !GCC_PLUGIN_RANDSTRUCT or !FORTIFY_SOURCE.

ShadowCat8 (talk) 22:38, 21 December 2020 (UTC)