Re: udev queue error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 30, 2011 at 21:46, Markus Rathgeb <maggu2810@xxxxxxxxxxxxxx> wrote:
> If I insert a special USB stick to my computer, udev will go crazy.
> The USB stick is a "SanDisk Cruzer" device. It represents himself as a
> block device and a CD rom device.
>
> I do not know, how I could help. So please have a look at the logs:

Yeah, the fake cdrom on the stick seems pretty broken. It generates
media-changed events on very open(), and udev runs open() for the new
event, which ... creates the loop you are seeing.

# /sbin/udevadm monitor &
# touch /dev/sr1
KERNEL[1306785694.680617] change   \
  /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.0/host4/target4:0:0/4:0:0:1/block/sr1
(block)
ACTION=change
SUBSYSTEM=block
DISK_MEDIA_CHANGE=1
...

# grep . /sys/class/block/sr1/*
/sys/class/block/sr1/alignment_offset:0
/sys/class/block/sr1/capability:19
/sys/class/block/sr1/dev:11:1
/sys/class/block/sr1/discard_alignment:0
/sys/class/block/sr1/events:media_change eject_request
/sys/class/block/sr1/events_poll_msecs:-1
/sys/class/block/sr1/ext_range:1
/sys/class/block/sr1/inflight:       0        0
/sys/class/block/sr1/range:1
/sys/class/block/sr1/removable:1
/sys/class/block/sr1/ro:0
/sys/class/block/sr1/size:62972

We need to find a way to work around such issues in the kernel, I guess.

Tejun, any idea?

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux