On Sat, Jun 18, 2016 at 03:31:20PM -0500, David Young wrote: > On Fri, Jun 17, 2016 at 09:58:07PM +0200, Manuel Bouyer wrote: > > On Fri, Jun 17, 2016 at 11:59:09AM -0500, David Young wrote: > > > A less intrusive change that's likely to work pretty well, I think, is > > > to introduce a new flag, DETACH_REBOOT or DETACH_STAY_POWERED, that's > > > passed to config_detach_all() by cpu_reboot() when the RB_* flags > > > indicate a reboot is happening. Then, in the wd(4) detach routine, put > > > the device into standby mode if the flag is not set. > > > > I'd prefer to have it the other way round then: a DETACH_POWEROFF > > which is set only for halt -p. > > Ok. > > BTW, what should we do during "manual" action, such as 'drvctl -d wd0'? > Seems like we should power off the drive then, too? Otherwise, it is > set up for an abrupt power-loss, later.
But if you do this in order to do a rescan, you will power down/up the drive, which is not so good for enterprise-class drives (for drives designed for 24x7 SMART counts the number of stop/start cycles) -- Manuel Bouyer <[email protected]> NetBSD: 26 ans d'experience feront toujours la difference --
