Subject: Re: accessing IDE hard drive via pcmcia card (redirected from netbsd-users)
To: Daniel Carosone <dan@geek.com.au>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: tech-kern
Date: 05/21/2004 21:20:41
On Sat, May 22, 2004 at 04:58:30AM +1000, Daniel Carosone wrote:
> [...]
> Another workaround, and interesting test, would be to turn off
> write-cache on the drive:
>
> dkctl wdX setcache r
>
> and then try the unmount. I'm hoping/assuming this would wait for the
> superblock write to complete. Could you try this? If it does, then
> building the moral equivalent of
>
> dkctl wdX synccache force
>
> into the close is the right way to fix this. It even seems to me like
> if we don't do this, there might be other similar lossage cases
> lurking than the pcmcia one you found.
There is already wd_flushcache() on last close in wd.c. This should be enouth.
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--