[Bug 6806] Upgrade from 1.20.2 to 1.21.1 mdev problem

bugzilla at busybox.net bugzilla at busybox.net
Tue Feb 4 07:57:13 UTC 2014


https://bugs.busybox.net/show_bug.cgi?id=6806

--- Comment #1 from Simon Edlund <simon at edlund.nl> 2014-02-04 07:57:12 UTC ---
The problem seems to be the symlink /sys/block/mtdblockX/device
which points to /sys/class/mtd/mtdX, which exists on some kernels (i.e. 2.6.31)

When mdev -s traverses the /sys directory looking for "dev" files, it starts
with the block devices under /sys/block, and will find the "dev" file through
the symlink, and create a block device node.
In the next stage it will scan the /sys/class looking for char devices, and
will find mtdX/dev again, but this time the mknod will fail because there is
already a device node with that name.

I fixed this by having mdev -s scan the /sys/class before /sys/block, whether
this is the best way, someone else with a deeper knowledge of the /sys
directory hierarchy will have to judge. Anyway, I'll attach my patch to this
bug.

-- 
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