tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Spinning down sata disk before poweroff
On Fri, Jun 17, 2016 at 10:09:52AM -0700, Brian Buhrow wrote:
> hello. I think this is already handled in wd.c in wd_shutdown() we
> see:
>
> wd_flushcache(wd, AT_POLL);
> if ((how & RB_POWERDOWN) == RB_POWERDOWN)
> wd_standby(wd, AT_POLL);
> return true;
>
> So, wd_standby only gets called if RB_POWERDOWN is sent in the howto
> argument. It seems like the howto argument isn't geting set to
> RB_POWERDOWN in this case and the question is why isn't it set?
The problem is that the device gets detached before pmf(9) is called.
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Home |
Main Index |
Thread Index |
Old Index