[PATCH] mdev doesn't correctly determine whether device is block/char (2.6.25 kernel)

virdiq virdiq virdiq at gmail.com
Wed May 14 06:39:11 UTC 2008


I'm having problems with busybox-1.10.2 and the 2.6.25 kernel (with the
deprecated sysfs structure turned off) where mdev always creates character
device nodes (when some of them should be block device nodes). I've tried
the trunk version of busybox as well as busybox 1.10.1 and busybox 1.10.2
with all current patches... all with no solution to the problem.

There is a bug filed on the Gentoo bugzilla at
https://bugs.gentoo.org/show_bug.cgi?id=212031 which I've been following but
it offers no solution that works for me.

I've attached the patch which WorkedForMe[TM] (this patch was already a TODO
in the code).

Would it be possible to act on this TODO and fix the block/character device
recognition so it uses strstr instead of the current unstable/unpredictable
strcmp method?

Thanks
virdiq
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.busybox.net/pipermail/busybox/attachments/20080514/1cb2960f/attachment-0002.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-21977-mdev-chrblk.patch
Type: application/octet-stream
Size: 708 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20080514/1cb2960f/attachment-0002.obj 


More information about the busybox mailing list