Subject: Re: Recording reboot in boothowto
To: None <tech-kern@netbsd.org>
From: Joerg Sonnenberger <joerg@britannica.bec.de>
List: tech-kern
Date: 12/19/2007 11:06:48
On Tue, Dec 18, 2007 at 06:44:21PM +0100, Bernd Ernesti wrote:
> On Tue, Dec 18, 2007 at 04:33:13PM +0100, Joerg Sonnenberger wrote:
> > On Sat, Dec 15, 2007 at 12:31:54PM +0100, Joerg Sonnenberger wrote:
> > > there are some drivers that want to behave different between shutdown
> > > for reboot/halt and shutdown for powerdown and /suspend. Into this class
> > > at least the disk drivers fall (PR 37508 for reference).
> >
> > I settled down on just using the using boothowto in combination with
> > doing_shutdown, which also covers the panic case.
>
> Hmm, do we needs a similar code for scsi (sd.c)?
sd.c is currently only flushing the disk. I don't know how to force
polling in scsipi, that should be done in sd_suspend for the
doing_shutdown != 0 case.
Joerg