Add kern.features.zfs
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
This commit is contained in:
parent
3d86999c75
commit
dc45a00eac
|
@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$");
|
||||||
#include <sys/spa_impl.h>
|
#include <sys/spa_impl.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/sunddi.h>
|
#include <sys/sunddi.h>
|
||||||
|
#include <sys/sysctl.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
#include <sys/taskqueue.h>
|
#include <sys/taskqueue.h>
|
||||||
#include <sys/uio.h>
|
#include <sys/uio.h>
|
||||||
|
@ -336,6 +337,8 @@ static moduledata_t zfs_mod = {
|
||||||
EVENTHANDLER_DEFINE(mountroot, spa_boot_init, NULL, 0);
|
EVENTHANDLER_DEFINE(mountroot, spa_boot_init, NULL, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
FEATURE(zfs, "OpenZFS support");
|
||||||
|
|
||||||
DECLARE_MODULE(zfsctrl, zfs_mod, SI_SUB_CLOCKS, SI_ORDER_ANY);
|
DECLARE_MODULE(zfsctrl, zfs_mod, SI_SUB_CLOCKS, SI_ORDER_ANY);
|
||||||
MODULE_VERSION(zfsctrl, 1);
|
MODULE_VERSION(zfsctrl, 1);
|
||||||
#if __FreeBSD_version > 1300092
|
#if __FreeBSD_version > 1300092
|
||||||
|
|
Loading…
Reference in New Issue