Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2023 13:46:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 274388] Several modules declare dependency on non-existent 'g_flashmap' kmod
Message-ID:  <bug-274388-227-EWg8Zgq3VY@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-274388-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-274388-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D274388

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj@FreeBSD.org

--- Comment #4 from Mark Johnston <markj@FreeBSD.org> ---
I suspect the problem is that you don't have a /boot/kernel/linker.hints fi=
le.=20
So when the kernel loads a module which depends on g_flashmap, it doesn't k=
now
that that corresponds to geom_flashmap.ko.  Your patch changes the module n=
ame
to geom_flashmap, and linker_hints_lookup() will always try to load <module
name>.ko, so it works.  Note that in FreeBSD, kernel modules and linker fil=
es
(.ko files) are not exactly the same.  A linker file may contain multiple
modules.

Assuming my guess is right, your patch just works around one specific
consequence of not having a linker.hints.  OTOH, almost all of the GEOM mod=
ules
are named geom_*, so maybe the patch should be committed anyway...

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-274388-227-EWg8Zgq3VY>