Re: usbd does not use detach

From: Daniel O'Connor <doconnor_at_gsoft.com.au>
Date: Fri, 15 Aug 2003 09:01:35 +0930
On Friday 15 August 2003 00:31, Eric Jacobs wrote:
> > example: my digital photo recorder.
> > i have an attach script to mount automatically the partition on the
> > cooresponding umass/da device. works great, and this helps.
> >
> > but when detaching, the umount part should be done BEFORE detaching, not
> > after. i can't find any good use for the detach hook. most of things
> > should have been done before detaching, and i can't see how to do it
> > without user interactivity, thus avoiding use of the detach hook.
>
> The problem with this is that the system will be asking the FS to
> e.g. flush buffers to a disk which it knows doesn't exist anymore, which
> is an error (and will cause errors).

It should also have a hint to indicate that this device could potentially go 
away at any time, so it shouldn't cache anything if at all possible.
(Although it would be good if the user could elect to override this in the 
interests of performance)

I suspect that would require more significant changes though :)

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 9A8C 569F 685A D928 5140  AE4B 319B 41F4 5D17 FDD5
Received on Thu Aug 14 2003 - 14:32:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:18 UTC