Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Aug 2003 09:01:35 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        Eric Jacobs <eaja@erols.com>
Cc:        freebsd-current@freebsd.org
Subject:   Re: usbd does not use detach
Message-ID:  <200308150901.35745.doconnor@gsoft.com.au>
In-Reply-To: <20030814110113.4d238ddd.eaja@erols.com>
References:  <1059835661.1198.7.camel@Twoflower.liebende.de> <1060504397.777.15.camel@syrenna.deep-ocean.local> <20030814110113.4d238ddd.eaja@erols.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308150901.35745.doconnor>