Summary: Re: Spin down HDD after disk sync or before power off

Oliver Fromme olli at lurza.secnetix.de
Sun Oct 24 17:05:10 UTC 2010


Bruce Cran wrote:
 > I've just committed the patch to move the functionality into ada(4).
 > Should it be reverted?

It seems to me that ATA and SCSI devices are sufficiently
different (from the code's point of view) that it makes
sense to separate the functionality in the ada and da
drivers.  In other words, I think the commit is good.
I'm biased, though.

By the way, I also think it's better to issue a "standby
immediate" command, not a "sleep" command.  The former
is reversible, i.e. the drive can spin up if required
(for whatever reason), while the latter may require a
hardware reset, according to the documentation.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

"Python tricks" is a tough one, cuz the language is so clean. E.g.,
C makes an art of confusing pointers with arrays and strings, which
leads to lotsa neat pointer tricks; APL mistakes everything for an
array, leading to neat one-liners; and Perl confuses everything
period, making each line a joyous adventure <wink>.
        -- Tim Peters


More information about the freebsd-hackers mailing list