From: Gordon Tetlow Date: Tue, 7 Nov 2023 21:21:56 +0000 (-0800) Subject: Add kern.features.zfs X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=dc45a00eac35a2e66c3ddba6e52e2b2280bd2be0;p=mirror_zfs.git Add kern.features.zfs Add a ZFS feature flag to indicate OpenZFS availability. Reviewed-by: Alexander Motin Reviewed-by: Brian Behlendorf Signed-off-by: Gordon Tetlow Closes #15484 --- diff --git a/module/os/freebsd/zfs/kmod_core.c b/module/os/freebsd/zfs/kmod_core.c index 9a2685735..00c1acf57 100644 --- a/module/os/freebsd/zfs/kmod_core.c +++ b/module/os/freebsd/zfs/kmod_core.c @@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$"); #include #include #include +#include #include #include #include @@ -336,6 +337,8 @@ static moduledata_t zfs_mod = { EVENTHANDLER_DEFINE(mountroot, spa_boot_init, NULL, 0); #endif +FEATURE(zfs, "OpenZFS support"); + DECLARE_MODULE(zfsctrl, zfs_mod, SI_SUB_CLOCKS, SI_ORDER_ANY); MODULE_VERSION(zfsctrl, 1); #if __FreeBSD_version > 1300092