Subject: Re: kern/37508: After jmcneill-pm, disks are switched to standby before rebooting
To: None <joerg@NetBSD.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Manuel Bouyer <bouyer@antioche.eu.org>
List: netbsd-bugs
Date: 12/15/2007 12:05:09
The following reply was made to PR kern/37508; it has been noted by GNATS.
From: Manuel Bouyer <bouyer@antioche.eu.org>
To: gnats-bugs@NetBSD.org
Cc: joerg@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org,
juan@xtrarom.org
Subject: Re: kern/37508: After jmcneill-pm, disks are switched to standby before rebooting
Date: Sat, 15 Dec 2007 11:42:55 +0100
On Sat, Dec 15, 2007 at 10:40:02AM +0000, Joerg Sonnenberger wrote:
> > From the discussion about the PR mentionned above, it came that we should
> > not spin down a drive on reboot or halt without -p, and an extra argument to
> > the PM callbacks is needed.
>
> I would like to avoid having to carry an extra argument that is used
> only by a few drivers. What do you think of extending boothowto to
> actually have a RB_REBOOT flag and use that to decide if we are
> currently going to suspend the system/drive or reboot/halt? I have a
> patch for that.
I'm not sure what you mean. Do you mean the drivers should consult the
global variable boothowto ?
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--