[Bug 6806] Upgrade from 1.20.2 to 1.21.1 mdev problem
bugzilla at busybox.net
bugzilla at busybox.net
Wed Sep 24 02:18:56 UTC 2014
https://bugs.busybox.net/show_bug.cgi?id=6806
gregory.0xf0 at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vda.linux at googlemail.com
--- Comment #6 from gregory.0xf0 at gmail.com 2014-09-24 02:18:55 UTC ---
(In reply to comment #1)
> 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.
I believe this patch is a good approach, has this been submitted to the mailing
list? I don't see it in the archives.
--
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