mdev : bug corrected (patch attached) - recursive_action version

Mike Frysinger vapier at gentoo.org
Wed Jun 13 21:13:41 UTC 2007


On Wednesday 13 June 2007, souf wrote:
> example (kernel >= 2.6.20 without CONFIG_SYSFS_DEPRECATED [= n]):
> /sys/class/sound/timer : timer is a symlink towards
> ../../devices/virtual/sound/timer realpath(symlink, device_path);
> device_path = /sys/devices/virtual/sound/timer
> make_device(/sys/devices/virtual/sound/timer, 0);
>
> I believe that this is quicker than to do 3 recursions.

yours may be quicker right now, but i'd rather have a slightly slower one that 
does not need modification in the future for next time they change the system

plus, i think we're talking microseconds difference here, not seconds

> mdev (svn) cannot create devices in directories, neither subdirs  nor
> symlinks

i'm doing it in pieces: bugfixes and quickies first, then the larger stuff 
(like mdev.conf changes)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/busybox/attachments/20070613/7d3f167f/attachment-0002.pgp 


More information about the busybox mailing list