[PATCH 0/2] Fix disk standby timers

2014-06-14 Thread Phillip Susi
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 ++

[PATCH 2/2] Fix standby timers

2014-06-14 Thread Phillip Susi
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

[PATCH 1/2] Use internal pm check for smart poll

2014-06-14 Thread Phillip Susi
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(