phk 916647a52a Add a "spindown" facility to ata-disks: If no requests have been received
for a configurable number of seconds, spin the disk down.  Spin it back
up on the next request.

Notice that the timeout is only armed by a request, so to spin down a
disk you may have to do:

	atacontrol spindown ad10 5
	dd if=/dev/ad10 of=/dev/null count=1

To disable spindown, set timeout to zero:

	atacontrol spindown ad10 0

In order to debug any trouble caused, this code is somewhat noisy on the
console.

Enabling spindown on a disk containing / or /var/log/messages is not
going to do anything sensible.

Spinning a disk up and down all the time will wear it out, use sensibly.

Approved by:	sos
2008-03-17 10:33:23 +00:00
..
2007-08-04 17:43:11 +00:00
2008-01-18 16:34:18 +00:00
2008-02-22 00:46:22 +00:00
2008-01-29 02:15:11 +00:00
2007-10-12 06:03:46 +00:00
2007-10-12 06:03:46 +00:00
2008-02-26 23:12:55 +00:00
2008-02-27 10:14:57 +00:00
2008-03-14 06:16:18 +00:00
2008-01-07 09:46:39 +00:00
2008-03-01 08:23:35 +00:00
2008-02-28 18:31:54 +00:00
2007-10-12 06:03:46 +00:00
2007-07-05 06:51:49 +00:00
2007-06-08 01:54:22 +00:00
2008-01-21 09:51:28 +00:00
2008-02-19 20:54:42 +00:00
2008-02-12 08:58:26 +00:00
2007-12-05 19:32:59 +00:00