linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem hotplugging USB flashdrive (race?)
@ 2003-12-13 12:58 Bertrik Sikken
  2003-12-15 22:01 ` Greg KH
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: Bertrik Sikken @ 2003-12-13 12:58 UTC (permalink / raw)
  To: linux-hotplug

Hi all,

I'm seeing some weird messages in /var/log/messages when
inserting my USB2.0 flashdrive. Apparently scsi.agent cannot
determine the type of scsi device that is created by usb-storage.
When I leave the stick in during boot, it works fine.

Software:
* Mandrake 9.2 base system with some modifications:
* Kernel 2.6.0-test11 (also tried kernel 2.6.0-test11-bk8)
   SCSI and USB compiled as modules.
* Hotplug 20030805
* udev 008
* sysfs mounted on /sys

Hardware:
* Canyon USB2.0 (high speed) 128 MB flashdrive, with
   an embedded hub.
* EHCI controller (UHCI controller gives same problem)

I think what happens when inserting the flash drive is this:
hotplug sees the embedded hub and mass-storage device in the
USB stick and loads usb-storage and SCSI modules. Then it
seems that scsi.agent tries to extract a number from the file
/sys/devices/<.....>/type
which appears to be an empty string according to the log.
When I try to cat this file manually, it exists and it
results in the number 0, which correctly indicates a
SCSI disk with associated module sd_mod.
I can imagine that this is some kind of race condition,
where the script looks too soon for the file or its contents.

Is this a known problem?
What kind of logging / information is required to investigate this?

Kind regards,
Bertrik Sikken



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id\x1278&alloc_id371&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2004-02-01 22:48 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-13 12:58 Problem hotplugging USB flashdrive (race?) Bertrik Sikken
2003-12-15 22:01 ` Greg KH
2003-12-17 17:28 ` Bertrik Sikken
2003-12-17 17:47 ` Greg KH
2003-12-18  8:53 ` Oliver Neukum
2003-12-18 18:04 ` Matthew Dharm
2003-12-18 21:13 ` Greg KH
2004-01-02 13:26 ` Olaf Hering
2004-01-05 23:47 ` Olaf Hering
2004-01-07 18:29 ` Patrick Mansfield
2004-01-07 18:32 ` Olaf Hering
2004-01-07 20:01 ` Olaf Hering
2004-01-07 20:37 ` Olaf Hering
2004-02-01 22:48 ` Olaf Hering

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).