[busybox] problems with mdev -s

Denys Vlasenko vda.linux at googlemail.com
Thu May 8 14:53:19 PDT 2008


On Tuesday 06 May 2008 22:02, Rich Mahn wrote:
> The problem:
>    With certain configurations, when 'mdev -s' is run, all devices
> created are character devices, including those which should be block
> devices.  This is easily reproducible.
> 
> More details:
>    The devices created are correct WRT permissions, major and minor
> numbers.  However, when the problem occurs, all new devices are
> character devices.  Devices that already exist are not changed--if
> they are already block devices they staay that way.  Adding printf
> statements in mdev.c shows that the correct values are being sent to
> the system call 'mknod' appear to be correct

Wow. if this is true that mknod have correct arguments,
then I can't see what I can fix. But I'm doubtful.
Can you show me these debug printouts added, and their output?

>     In Linux 2.6.25 and all the devices in the /sys/block directory
> are symbolic links that resolve to the appropriate places in the
> /sys/device structure.

A patch was posted which said to be needed for 2.6.25.
Please try it (attached).
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5.patch
Type: text/x-diff
Size: 974 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080508/a294d233/attachment.patch 


More information about the busybox mailing list