These patches fix disk drive standby timers to work. The first one
I submitted at the end of last year and it has still not been applied.
The second one depends on the first.
Phillip Susi (2):
Use internal pm check for smart poll
Fix standby timers
src/udiskslinuxdriveata.c | 117 ++
If the drive was set to standby after >= 10 minutes of inactivity,
it would never standby because udisks would check every 10 minutes
to see if it was already in standby, and if not, update the SMART
stats, which would reset the standby timer. This is especially
problematic since many drives enfor
libatasmart apparently has a bug where it will wake up a disk from
sleep just trying to open it, so use our own code to check the pm
state to avoid this.
Signed-off-by: Phillip Susi
---
src/udiskslinuxdriveata.c | 101 --
1 file changed, 52 insertions(