Comment 7 for bug 638765

Revision history for this message
Matthias Pfau (matthias-pfau) wrote :

According to http://bugs.freedesktop.org/show_bug.cgi?id=26508#c0, the following would be a permanent workaround:

Create a file /etc/udev/rules.d/80-udisks.rules with the following contents:

KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="usb", ENV{DEVTYPE}=="disk", ENV{UDISKS_DISABLE_POLLING}="1"
KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="ata", ENV{DEVTYPE}=="disk", ENV{UDISKS_DISABLE_POLLING}="1"
KERNEL=="sd*[!0-9]", ATTR{removable}=="0", ENV{ID_BUS}=="scsi", ENV{DEVTYPE}=="disk", ENV{ID_VENDOR}=="ATA", ENV{UDISKS_DISABLE_POLLING}="1"

This has been approved by me and it really stops the polling. Anyhow, I think that this is a bug of udev or udisks because it makes no sense to poll for SMART data all the time if it isn't evaluated. I also think that it should be configurable to poll for SMART data only on disks which are either active or idle.