[Bug 14495] udev sends multiple add/remove events in quick succession

bugzilla-daemon at bugzilla.ubuntu.com bugzilla-daemon at bugzilla.ubuntu.com
Thu Sep 29 22:30:50 UTC 2005


Please do not reply to this email.  You can add comments at
http://bugzilla.ubuntu.com/show_bug.cgi?id=14495
Ubuntu | linux





------- Additional Comments From martin.pitt at ubuntu.com  2005-09-29 23:30 UTC -------
(In reply to comment #68)
> Problem is, all of the additional "add" events are ignored, with the following
> message:
> 
> 23:34:13.775 [I] osspec.c:154: SEQNUM=1141, TIMESTAMP=1128029653, ACTION=add,
> SUBSYS=block, SYSFSPATH=/block/hdc/hdc1, DEVNAME=/dev/hdc1, IFINDEX=-1
> 23:34:13.775 [E] hotplug.c:153: devpath /sys/block/hdc/hdc1 already present in
> the store, ignore event

Ah, so apparently hal is by far not far enough to pick up all the additonal
adds/removes and just gets one event. That also explains why the unmount wins
against the mount.

One solution that would both fix this bug and also gets rid of the deprecated
/etc/dev.d/ script is to add a setuid wrapper to hal that lazily unmounts a
block device when it is removed. However, the Breezy release is too close to do
such intrusive changes, so we have to move this off to Dapper.

In Breezy, I'm afraid we have to tell the folks which are affected by this to
either disable the script altogether or we have to find a really good workaround
quickly.

What about the following: hal-unmount.dev checks whether hal still knows the
device and does not unmount in this case? That's hackish, I know, but
unintrusive enough to be breezyable. In dapper we will clean it up properly.



-- 
Configure bugmail: http://bugzilla.ubuntu.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.




More information about the desktop-bugs mailing list