udisks wakes up unmounted drives from standby with smart polls
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udisks (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: udisks
i have two harddisks in my laptop, one ssd with os and data and one backup hdd.
my backupscripts mount the backup hd's partition, write data, unmount the partition again and put the hd to sleep with hdparm -Y.
this worked flawlessly in ubuntu 9.10 (although some apps, that queried all block devices (e.g. gparted) woke it up of course).
in lucid udisks queries all hds for smart data regulary, which wakes most hds (tested seagate and wd).
i found out, that it was udisks by using auditd to set up a monitor (auditctl -w /dev/sdb -p rwa), waiting untill the drive spins up and then checking "ausearch -i", which clearly indicates the problem:
type=SYSCALL msg=audit(
summary: |
- udisks wakes up idling, unmounted drives with smart polls + udisks wakes up unmounted drives from standby with smart polls |
workaround by replacing the offending binary with one, that does nothing:
cd /usr/lib/udisks helper- ata-smart- collect udisks- helper- ata-smart- collect. orig helper- ata-smart- collect helper- ata-smart- collect
mv udisks-
echo "#!/bin/sh
exit 0" > udisks-
chmod +x udisks-
beware: this will of course break udisk's ability to collect any smart data even from non-idling drives. also this workaround will be reversed by updates of udisk and has to be reapplied.
another note on the bug: seems that the no-wakeup switch/argument of udisks- helper- ata-smart- collect does not work - at least in my case(s).