Re: [PATCH][RFC][ModemManager] udev rules: port to hwdb where applicable



Hey Tom!

Udev recently gained a hardware database, which is an efficent replacement for
the kind of rules shipped with modemmanager.

This patch ports all the relevant udev rules to hwdb format, which should
significantly speed up the processing of usb add events.

I also fixed up some bugs in the existing udev rule files found in the process.


I wouldn't mind to see these in separate commits. Also, I wouldn't mind
to know why some .rules files got split.

Only rudimentary testing done as I don't have the right hardware, so testing and
comments very much appreciated!


Some general comments:

 * For what I can see, not every rules file was ported to the hwdb
format. Is it because not every rule we have can be expressed in the
hwdb format, or why?

 * Is there a good place to read about the new hwdb format?

 * How much is the improvement we're looking for?

 * systemd/udev 196 is from late 2012; if all the rules can be converted
to the new hwdb format and we decide to use it, we should probably just
require that udev version. I personally wouldn't like to maintain two
different sources of rules.

 * Which other projects are already shipping hwdb files instead of plain
udev rules?


-- 
Aleksander


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]