Hello!
hd-idle detection based on sector counts from /proc/diskstats and turn off the device (suspend) when here is activity. But that is not only hard drive activity going on. Hard disks can perform self tests in background without any /proc/diskstats changes.
If hd-idle ignores these activities it will be result in aborted internal tests like that:
# 2 Extended offline Aborted by host 90% 6168 -
Since those background self-tests are executed by the user, user expect it will be finished and not aborted by some system services. It would be nice in additional to /proc/diskstas hd-idle also checks if here is any self-test going on on a drive and do not suspend it until test is completed.
Hello!
hd-idle detection based on sector counts from /proc/diskstats and turn off the device (suspend) when here is activity. But that is not only hard drive activity going on. Hard disks can perform self tests in background without any /proc/diskstats changes.
If hd-idle ignores these activities it will be result in aborted internal tests like that:
Since those background self-tests are executed by the user, user expect it will be finished and not aborted by some system services. It would be nice in additional to /proc/diskstas hd-idle also checks if here is any self-test going on on a drive and do not suspend it until test is completed.