Subject: Re: accessing IDE hard drive via pcmcia card (redirected from netbsd-users)
To: Manuel Bouyer <>
From: Steven M. Bellovin <>
List: tech-kern
Date: 05/21/2004 15:29:21
In message <>, Manuel Bouyer writes:
>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.

I assume that I still need to do the 'setcache r', correct?

		--Steve Bellovin,