Subject: Re: [2.0-RC1] shutdown is not clean
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: port-sparc64
Date: 10/07/2004 20:14:32
On Thu, Oct 07, 2004 at 10:07:42PM +0900, Izumi Tsutsui wrote:
> In article <20041006193101.GA2001@antioche.eu.org>
> bouyer@antioche.eu.org wrote:
> 
> > On Wed, Oct 06, 2004 at 06:54:14AM +1000, Daniel Carosone wrote:
> > > Try "dkctl wd0 setcache r" before shutting down.
>  :
> > This shouldn't be needed, the kernel issue a flush cache command to disks
> > once the filesystems have been unmounted.
> 
> IIRC, on macppc some delay() was required before calling the poweroff
> function in cpu_reboot(), otherwise sometimes fsck(8) complained
> after next boot.

Hum. Could it be that some drives return immediatly from a flush cache,
and do the operation in background ?
If so, disabling the write cache may help.

-- 
Manuel Bouyer <bouyer@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--