Rockbox mail archiveSubject: Re: USB and safely remove hardware
Re: USB and safely remove hardware
From: Frank Gevaerts <frank_at_gevaerts.be>
Date: Sun, 8 Mar 2009 20:35:53 +0100
On Sun, Mar 08, 2009 at 12:21:15PM -0700, rburight.thebashar_at_xoxy.net wrote:
> On Sun, Mar 8, 2009 at 8:19 AM, Frank Gevaerts - frank_at_gevaerts.be wrote:
> > Currently devices with the rockbox usb stack leave USB mode when the host OS
> > sends an eject command to all exposed drives (usually one, but the sansas
> > have two). It does not leave USB mode when the host OS sends "allow medium
> > removal".
> > In practice this means that "safely remove hardware" in windows does not make
> > the device leave USB mode, while selecting Eject from the context menu does.
> Since I started using rockbox usb on my sansa c250 (2gb + 4gb sdhc)
> I've been getting messages in windows that it did not unmount cleanly
> and needs to be scanned for errors when I reconnect. I always use the
> safely remove hardware function, but it does not seem to make any
> difference. Could this be related to the behavior you are describing?
No. I don't really see what could cause that, but what I was talking
about is totally unrelated. My email was about using those SCSI commands
to be able to leave USB mode earlier, but however we handle them , they
are only sent after windows (or any OS) is totally done with the device.
-- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. KernighanReceived on 2009-03-08