From dc45a00eac35a2e66c3ddba6e52e2b2280bd2be0 Mon Sep 17 00:00:00 2001 From: Gordon Tetlow Date: Tue, 7 Nov 2023 13:21:56 -0800 Subject: [PATCH] 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 --- module/os/freebsd/zfs/kmod_core.c | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.2