Ticket #372 (new defect)

Opened 1 year ago

Last modified 1 year ago

coldplug broken on brcm-2.4

Reported by: tg Assigned to: somebody
Priority: major Milestone: 1.x (low prio)
Component: brcm-2.4 Version: trunk
Keywords: hotplug coldplug Cc:

Description (Last modified by tg)

When plugging in an external USB storage medium, such as an USB stick, the Linux 2.4 kernel generates a hotplug event and, since a certain commit of mine, a syslog message describing it. The default hotplug scripts then mount the medium if possible.

However, when the medium is plugged in during boot (dubbed “coldplug”), no such event is generated.

It is possible to scan for and mount any media in /etc/rc.local but they will not be registered with the hotplug system then, and thusly, subsequent events regarding this medium (e.g. an unplug event) will not correctly umount the device, because the USB bus/device ID information is not available to people just scanning /dev/discs/ for device nodes.

The optimum solution would probably be to patch the kernel to generate hotplug events for coldplugged devices as well, just like it already does for the network interfaces (if you don't believe me, read dmesg). Is there such patch we could integrate?

Furthermore, someone should evaluate whether this applies to the Linux 2.6 kernel too.

Attachments

Change History

07/26/07 11:36:22 changed by tg

  • description changed.

07/26/07 12:21:39 changed by n0-1

This does not apply to kernel-2.6.

We are using mdev with it, and by running 'mdev -s' one can trigger generation of hotplug events for all coldplugged hardware.


Add/Change #372 (coldplug broken on brcm-2.4)