[Bug 274388] Several modules declare dependency on non-existent 'g_flashmap' kmod

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 12 Oct 2023 13:46:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274388

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 file. 
So when the kernel loads a module which depends on g_flashmap, it doesn't know
that that corresponds to geom_flashmap.ko.  Your patch changes the module name
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 files
(.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 modules
are named geom_*, so maybe the patch should be committed anyway...

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