]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Add kern.features.zfs
authorGordon Tetlow <gordon@tetlows.org>
Tue, 7 Nov 2023 21:21:56 +0000 (13:21 -0800)
committerGitHub <noreply@github.com>
Tue, 7 Nov 2023 21:21:56 +0000 (13:21 -0800)
Add a ZFS feature flag to indicate OpenZFS availability.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Gordon Tetlow <gordon@freebsd.org>
Closes #15484

module/os/freebsd/zfs/kmod_core.c

index 9a268573528cc04e04bac8eabffea17f147df98e..00c1acf577101f0a245a24250ef642cc59830c4a 100644 (file)
@@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/spa_impl.h>
 #include <sys/stat.h>
 #include <sys/sunddi.h>
+#include <sys/sysctl.h>
 #include <sys/systm.h>
 #include <sys/taskqueue.h>
 #include <sys/uio.h>
@@ -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