[Bug 627] modprobe-small: incorrect alias-based probe with dep_bb_fd < 0
bugzilla at busybox.net
bugzilla at busybox.net
Sun Sep 27 15:38:08 UTC 2009
https://bugs.busybox.net/show_bug.cgi?id=627
--- Comment #10 from Jiri J. <jirij.jabb at gmail.com> 2009-09-27 15:38:07 UTC ---
>in ata_generic:
>alias=pci:v*d*sv*sd*bc01sc01i*
Yeah, I was aware of such case, however I haven't checked it, sorry.
The algorithm for finding "the better case" should IMHO match the more exact
case. In this example, ata_generic is clearly a "fallback" - anything else
should be preferred, if the alias matches.
Some ideas I have right now are based on
1) string length - fallback matches have shorter alias names,
due to the asterisks
2) asterisk count - more exact matches are more likely to have
less asterisks
Using those (+ something else), we could create an algorithm which decides
whether the new match is more exact than the old one. It's not so simple, since
pci aliases aren't the only ones supposed to use asterisks (like pnp:dYMH0021*
versus pnp:dYMH0021 which would score 1:1 from the above ideas).
I don't know how this is done in the normal modutils, whether there's some sort
of a "database" with calculated score for a given alias (which we can't afford)
or something like that.
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list