On Tue, 11 Oct 2005, Ivan Kalatchev wrote:

> I've tested your new patch. Everything works just fine. Host controller is
> restarted and alive after board is resumed.
> The only tricky moment is if user forgot to unmount memory stick before
> sending board to sleep. Say it was mounted as /dev/sda1 before sleeping.
> After board resumed, memory stick of course is unaccessable, so I tried to
> unmount it and mount again as /dev/sda1. But this failes, saying that it's
> not valid block device. Thing is that I can still mount it fine, but as
> /dev/sdb1!
> /dev/sda1 remains bad until I reset board again (resetting USB controller
> effectively), but this time unmounting memory stick before sleeping.
>
> So if anything could be done to have the ability to unmount/mount back
> device as the same device, when user forget to unmount it before sleeping,
> that would be great.

No, you won't get the same device node back, AFAIK. At least 
not without reloading the scsi driver(s) if they were built 
as modules. After reinit of the USB controller holding a 
mounted storage device, the SCSI layer is convinced that the 
storage device is dead and won't let you do any operations 
on it.

Take a look at udev. It is meant to solve such a problem.

Olav


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to