linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* USB mass storage unplug problem
@ 2005-08-24 13:55 Lalso Benarik
  2005-08-24 19:18 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Lalso Benarik @ 2005-08-24 13:55 UTC (permalink / raw)
  To: linux-hotplug

We are developing application for coping of the content of the USB mass 
storage for it we are using Fedora Core 3.
During the testing we have experienced the following problem:
- start coping data from the device (it is the same if you copy the data to 
the device) to hard disk: cp /media/CopyDisk/* /copydir/
- during copy process remove the USB flash.
- After it, the Linux doesn't see any more USB mass storage devices, and 
usually the process that was doing the coping is active, and can not be 
killed.
The same happens if I make a C code doing the coping.
Does any one know ho to deal with it? I need error reported to my 
application.
The same problem occurs with the Fedora Core 4. 



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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] 2+ messages in thread

* Re: USB mass storage unplug problem
  2005-08-24 13:55 USB mass storage unplug problem Lalso Benarik
@ 2005-08-24 19:18 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2005-08-24 19:18 UTC (permalink / raw)
  To: linux-hotplug

On Wed, Aug 24, 2005 at 03:55:24PM +0200, Lalso Benarik wrote:
> We are developing application for coping of the content of the USB mass 
> storage for it we are using Fedora Core 3.
> During the testing we have experienced the following problem:
> - start coping data from the device (it is the same if you copy the data to 
> the device) to hard disk: cp /media/CopyDisk/* /copydir/
> - during copy process remove the USB flash.
> - After it, the Linux doesn't see any more USB mass storage devices, and 
> usually the process that was doing the coping is active, and can not be 
> killed.
> The same happens if I make a C code doing the coping.
> Does any one know ho to deal with it? I need error reported to my 
> application.
> The same problem occurs with the Fedora Core 4. 

It's likely a kernel bug in the SCSI layer that does not cleanup the
error handler. I think it was fixed with one of the later kernels:
  http://marc.theaimsgroup.com/?l=linux-scsi&m\x111172700500878&w=2

But it may be another problem, if you still can reproduce it with the
latest kernel.

Kay


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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] 2+ messages in thread

end of thread, other threads:[~2005-08-24 19:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-24 13:55 USB mass storage unplug problem Lalso Benarik
2005-08-24 19:18 ` Kay Sievers

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).