svn commit: r367157 - stable/12/sys/fs/cuse
Hans Petter Selasky
hselasky at FreeBSD.org
Fri Oct 30 08:05:48 UTC 2020
Author: hselasky
Date: Fri Oct 30 08:05:47 2020
New Revision: 367157
URL: https://svnweb.freebsd.org/changeset/base/367157
Log:
MFC r366961:
Fix for loading cuse.ko via rc.d . Make sure we declare the cuse(3)
module by name and not only by the version information, so that
"kldstat -q -m cuse" works.
Found by: Goran Mekic <meka at tilda.center>
Sponsored by: Mellanox Technologies // NVIDIA Networking
Modified:
stable/12/sys/fs/cuse/cuse.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/fs/cuse/cuse.c
==============================================================================
--- stable/12/sys/fs/cuse/cuse.c Fri Oct 30 06:30:46 2020 (r367156)
+++ stable/12/sys/fs/cuse/cuse.c Fri Oct 30 08:05:47 2020 (r367157)
@@ -64,6 +64,24 @@
#include <fs/cuse/cuse_defs.h>
#include <fs/cuse/cuse_ioctl.h>
+static int
+cuse_modevent(module_t mod, int type, void *data)
+{
+ switch (type) {
+ case MOD_LOAD:
+ case MOD_UNLOAD:
+ return (0);
+ default:
+ return (EOPNOTSUPP);
+ }
+}
+
+static moduledata_t cuse_mod = {
+ .name = "cuse",
+ .evhand = &cuse_modevent,
+};
+
+DECLARE_MODULE(cuse, cuse_mod, SI_SUB_DEVFS, SI_ORDER_FIRST);
MODULE_VERSION(cuse, 1);
/*
More information about the svn-src-stable-12
mailing list