Fixing suspend timer: where to stash io counter stats?

Phillip Susi psusi at ubuntu.com
Sat May 10 18:05:05 PDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

The disk suspend timer feature fails to work on many drives because
they have a 10 minute minimum suspend timer, and udisks tries to poll
the SMART status every 10 minutes, which resets the timer.  To fix
this, I'm trying to capture the io counter stats to see if there has
been no IO to the disk since the last housekeeping run, and if not,
skip the SMART check.  The trouble is I can't find any structure to
save the old value in.  Any suggestions?

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCgAGBQJTbszBAAoJEI5FoCIzSKrwC8QH/RLXLiJOul2YRlELs9P1zQxk
gG/6wkrS8/ssza/wWmN78ORNP/nWHJnSpGSH2pHOrwC3MAEnqMzm5Fda/yaYFAF9
hHYjgFhiYQsmasOOO04Q5nCpMd3F02nGv0WdbZtqYJyQvbwqUkIlkHpIRMplWHTT
ajjTmjMtJ477k/4I76HbSkqpcS/8TTvIebBPbuxEjd1MBh2th6P+WhYauKdXGRv6
mplrgKzLhARzjrRTRSvKlGDc8Z6OQjGPKecch++otTaXqMrX4EkDY8U9Ri0m85Gu
ly24ClWyGuNYDMj+rytpszvdCW79ht6j5xHYDAO/bCk247w4wv348cBXdupb+X8=
=rv4C
-----END PGP SIGNATURE-----


More information about the devkit-devel mailing list