aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/md/md.c
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2022-02-10 06:15:29 +0000
committerKyle Evans <kevans@FreeBSD.org>2022-02-10 06:16:19 +0000
commitb9c92d631cfb06c12b0d2d9ad29a9f3f0b856237 (patch)
tree4a7c7f8fde9172321fced9e1654d44dc9cfa1ad9 /sys/dev/md/md.c
parentf339a3ef6369b368f3a2455792a7a3a4c28f92c4 (diff)
downloadsrc-b9c92d631cfb06c12b0d2d9ad29a9f3f0b856237.tar.gz
src-b9c92d631cfb06c12b0d2d9ad29a9f3f0b856237.zip
Annotate geom_md with MODULE_VERSION
This was missed in 74d6c131cbe2 where other geom modules were annotated with MODULE_VERSION. Again, the problem is the same: we can't detect that geom_md is loaded into the kernel without it. This was noticed in release builds on the cluster; mdconfig attempts to load geom_md because it can't detect it in the kernel, but the cluster config includes md(4) and does not build the kmod. This problem would have been masked on hosts with the kmod built, as the kmod attempts to register the g_md module and fails. With this commit, mdconfig would not even try to load it again. Reported by: re (cperciva) MFC after: 3 days
Diffstat (limited to 'sys/dev/md/md.c')
-rw-r--r--sys/dev/md/md.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/md/md.c b/sys/dev/md/md.c
index f88b82aacb78..bd83345d8e37 100644
--- a/sys/dev/md/md.c
+++ b/sys/dev/md/md.c
@@ -224,6 +224,7 @@ struct g_class g_md_class = {
};
DECLARE_GEOM_CLASS(g_md_class, g_md);
+MODULE_VERSION(geom_md, 0);
static LIST_HEAD(, md_s) md_softc_list = LIST_HEAD_INITIALIZER(md_softc_list);