freebsd-dev/sbin
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
..
adjkerntz
atacontrol Add a "spindown" facility to ata-disks: If no requests have been received 2008-03-17 10:33:23 +00:00
atm
badsect
bsdlabel Allow bsdlabel to operate on labels that have at most 26 partitions 2007-12-09 22:58:49 +00:00
camcontrol
ccdconfig
clri
comcontrol
conscontrol
ddb Add the ability to read a file of commands to ddb(8) modeled after the 2008-03-05 17:51:06 +00:00
devd Minor initialization change to not trigger bogus gcc warning about 2007-12-21 01:00:04 +00:00
devfs
dhclient During PREINIT, when giving the interface the address 0.0.0.0, do it as an 2008-01-21 23:54:57 +00:00
dmesg
dump
dumpfs
dumpon
fdisk
fdisk_pc98
ffsinfo Don't coredump when executed with -o. 2008-01-29 00:20:00 +00:00
fsck
fsck_ffs For a mounted file system which is read-only, when 2008-03-05 08:25:49 +00:00
fsck_msdosfs Spot two more bugs WRT adherence to the local prompt style. 2008-01-31 13:22:13 +00:00
fsdb
fsirand
gbde
geom - Use an uppercase provider name in the example, to make the name change 2008-03-13 15:37:02 +00:00
ggate
gpt Bump .Dd for r1.19; use consistent whitespace. 2008-02-05 23:42:37 +00:00
growfs Fix an int overflow on very large file systems. 2007-12-17 08:03:18 +00:00
gvinum
idmapd
ifconfig explain that you must set a default transmit key for WEP 2008-02-29 20:42:17 +00:00
init
ipf
ipfw Dummynet has a limit of 100 slots queue size (or 1MB, if you give 2008-02-27 13:52:33 +00:00
iscontrol Fix typo. 2008-02-06 08:03:27 +00:00
kldconfig
kldload
kldstat
kldunload
ldconfig
mca
md5 style(9) (verifed no-change in .o's) 2008-02-07 18:10:24 +00:00
mdconfig Every newline should start on it's own line. I didn't do that in the 2007-11-28 12:29:59 +00:00
mdmfs
mknod
mksnap_ffs
mount - Update with a better example which shows that options specific to a 2008-03-12 02:09:22 +00:00
mount_autofs
mount_cd9660
mount_ext2fs
mount_hpfs
mount_msdosfs
mount_nfs Undo the damage I did in sys/kern/vfs_mount.c #1.274 and 2008-02-18 20:58:57 +00:00
mount_ntfs
mount_nullfs
mount_reiserfs
mount_std
mount_udf
mount_unionfs
natd Improve rev. 1.63. Document -instance and -globalport options. 2008-02-04 15:27:09 +00:00
newfs Use calloc(). 2008-03-05 23:17:19 +00:00
newfs_msdos Be more accurate in the maximum filesize, it's 4GB not 4.3GB. 2007-12-09 13:34:10 +00:00
nfsiod
nos-tun
pfctl
pflogd
ping
ping6 Decrease ping6's minimum allowed interval 2008-02-25 10:45:25 +00:00
quotacheck Sync up quotacheck's preen.c with fsck's. This makes quotacheck 2008-01-26 12:03:26 +00:00
rcorder
reboot
recoverdisk
restore
route
routed
rtsol
savecore Compare kernel dump header magic with textdump magic using strncmp() 2007-12-27 21:28:48 +00:00
sconfig getopt(3) returns -1, not EOF. 2008-02-19 07:09:19 +00:00
setkey o Allow setkey(8) to recognize esp as a protocoal name for spdadd. 2008-01-12 20:00:23 +00:00
shutdown
slattach
spppcontrol
startslip
sunlabel
swapon
sysctl Remove mentionings of kern.dumpdev which is no longer available. 2007-11-28 14:48:30 +00:00
tunefs
umount
Makefile Add command-line tool ddb(8), which allows DDB(4) scripts to be 2007-12-26 09:38:22 +00:00
Makefile.inc