Receiving two REMOVE actions for the same USB drive

Isaac Dunham ibid.ag at gmail.com
Mon Apr 28 15:08:47 UTC 2014


On Mon, Apr 28, 2014 at 11:35:55AM +0200, Mason wrote:
> Ralf Friedl wrote:
> 
> > If you say that simple filtering of the events would be annoying, you 
> > don't want to change the kernel to avoid the double notification.
> 
> What do you mean by "you don't want to change the kernel" ?
> 
> I am /pretty sure/ that the vanilla kernel does not notify twice,
> and that this bug was introduced by one of the vendor's patches.
 

A normal kernel will generate _tons_ of messages per USB device.

Just tested with a random USB device, vanilla kernel 3.10.33; I get
2x ACTION=add, 2x ACTION=remove

> Therefore, I am just trying to identify said patch, so I can ask
> to vendor to fix it. (I don't like having to "tweak" application
> code to work around bugs in other parts of the system.)
> 
> -- 
> Regards.

HTH,
Isaac Dunham


More information about the busybox mailing list