linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Hering <olh@suse.de>
To: linux-hotplug@vger.kernel.org
Subject: Re: Problem hotplugging USB flashdrive (race?)
Date: Wed, 07 Jan 2004 20:01:59 +0000	[thread overview]
Message-ID: <20040107200159.GE13114@suse.de> (raw)
In-Reply-To: <marc-linux-hotplug-107132041630956@msgid-missing>

 On Wed, Jan 07, Patrick Mansfield wrote:

> The type is initialized to -1 in scsi_alloc_sdev, so at worst you might
> see a -1 there, but that would be a bug.

No, its -ENODEV here. I just rebooted and this is the result:

the two firewire drives worked ok, output before and after the sleep 1.
But rmmod ide-cd ; modprobe ide-scsi failed:

=> /var/run/hotplug/debug.scsi.agent.146.add.930 <=
-r--r--r--    1 root     root         4096 Jan  7 19:40 /sys//devices/platform/host0/0:0:0:0/type
0
-r--r--r--    1 root     root         4096 Jan  7 19:40 /sys//devices/platform/host0/0:0:0:0/type
0

=> /var/run/hotplug/debug.scsi.agent.148.add.992 <=
-r--r--r--    1 root     root         4096 Jan  7 19:40 /sys//devices/platform/host0/0:0:1:0/type
0
-r--r--r--    1 root     root         4096 Jan  7 19:40 /sys//devices/platform/host0/0:0:1:0/type
0

=> /var/run/hotplug/debug.scsi.agent.165.add.1571 <=
ls: /sys//devices/pci0001:01/0001:01:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.1/host1/1:0:0:0/type: No such file or directory
cat: /sys//devices/pci0001:01/0001:01:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.1/host1/1:0:0:0/type: No such file or directory
-r--r--r--    1 root     root         4096 Jan  7 20:45 /sys//devices/pci0001:01/0001:01:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.1/host1/1:0:0:0/type
5


    ls -l /sys/$DEVPATH/type > /var/run/hotplug/debug.scsi.agent.$SEQNUM.$ACTION.$$ 2>&1
    cat /sys/$DEVPATH/type  >> /var/run/hotplug/debug.scsi.agent.$SEQNUM.$ACTION.$$ 2>&1
    sleep 1
    ls -l /sys/$DEVPATH/type >>/var/run/hotplug/debug.scsi.agent.$SEQNUM.$ACTION.$$ 2>&1
    cat /sys/$DEVPATH/type  >> /var/run/hotplug/debug.scsi.agent.$SEQNUM.$ACTION.$$ 2>&1



-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, n√úRNBERG


-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
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

  parent reply	other threads:[~2004-01-07 20:01 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2004-01-07 20:37 ` Olaf Hering
2004-02-01 22:48 ` Olaf Hering

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040107200159.GE13114@suse.de \
    --to=olh@suse.de \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).