natacontrol(8): Add commands to tweak power/acoustic management features.
authorSascha Wildner <saw@online.de>
Sat, 23 Mar 2013 19:21:29 +0000 (20:21 +0100)
committerSascha Wildner <saw@online.de>
Sat, 23 Mar 2013 19:21:29 +0000 (20:21 +0100)
commit60779d5f0ef193c344ad0eb831f9c3e5b1e15b22
tree0c4ee1cdda1736909d85d03c5b92ff1c1ddd59d6
parent6d290ad31e4cb78f132485249a24ffd4618cb619
natacontrol(8): Add commands to tweak power/acoustic management features.

Sometimes disks designed to operate in low power mode by default
constantly spin up/down during operation which leads to reduced
performance.

This commit adds the 'feature' command to natacontrol(8) which
can be used to tweak the 'advanced power management' and 'automatic
acoustic management' features. Their current setting could already
be viewed before this commit using the 'natacontrol cap' command.

I'd like this to be possible with camcontrol(8) too for CAM attached
disks, but afaict these are ATA specific features so I guess we'd
have to integrate ATA into CAM too before that is possible.

Dragonfly-bug: <http://bugs.dragonflybsd.org/issues/2531>
Reported-by: Maurizio Lombardi <m.lombardi85@gmail.com>
Taken-from:    FreeBSD PR 81692
Tested-by: Maurizio Lombardi <m.lombardi85@gmail.com>
sbin/natacontrol/natacontrol.8
sbin/natacontrol/natacontrol.c
sys/sys/nata.h