udisks' / gnome-disk-utility's support for the drive standby timer is broken. If the standby timer is set to at least 10 minutes ( which is the minimum on many drives ), every 10 minutes udisks tries to update the smart status of the drive, which resets the standby timer. Reported in Ubuntu: https://bugs.launchpad.net/bugs/1281588 As David Zuthern noted in a private message, my initial patches to fix this also prevent ever updating smart data on disks that are never used, even if they do not have a standby timer enabled. I will fix them to be contingent on a standby timer and post updated patches here soon.
Created attachment 101544 [details] [review] 0001-Fix-standby-timers.patch Ok, here is an updated version that bypasses the no io skip check when the standby timer has not been enabled. I verified that it keeps reading the smart stats on an idle drive when you disable the standby timer in gnome-disks.
I'll take a look.
(Sorry for being slow. Will post feedback soon.)
Bump... If you don't have time to review/test the patch yourself, are you satisfied with my description of the changes to the point that you would not have a problem with Martin Pitt reviewing and pushing it now?
Hi David, it has now been six months of waiting for an ACK ;)
Thanks for the updated patch! I looks good to me, I pushed it with some minor cleanups (variable names, PATH_MAX).
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.