Poul-Henning Kamp 72d945abcc 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
..
2005-02-13 22:25:33 +00:00
2006-04-14 09:20:25 +00:00
2006-11-05 20:12:32 +00:00
2006-10-31 22:36:49 +00:00
2006-10-31 22:07:29 +00:00
2006-09-30 11:02:17 +00:00
2006-10-15 13:51:49 +00:00
2007-11-20 21:25:58 +00:00
2008-02-06 08:03:27 +00:00
2006-09-30 11:12:36 +00:00
2008-02-07 18:10:24 +00:00
2007-11-18 09:18:20 +00:00
2006-04-19 19:21:42 +00:00
2005-11-13 01:47:04 +00:00
2008-03-05 23:17:19 +00:00
2005-02-13 22:25:33 +00:00
2007-07-03 12:46:08 +00:00
2007-11-07 10:53:41 +00:00
2008-02-19 07:09:19 +00:00
2007-09-23 16:06:37 +00:00