Comment 8 for bug 595138

Revision history for this message
Steffen Barszus (steffenbpunkt) wrote :

Yes definitly a bug - just discovered it by accident ...

The idea to use udev for this is quite nice, but has a design flaw. by definition this is doomed to failure IMHO. At the time of add sd? execute something which needs filesystem access on possibly the same drive (right before mount) - not sure that would ever work. (Can someone proof me wrong - at least for /etc/hdparm.conf you might get problems ?)

Upstart Job like this could help - not sure on suspend to ram case ?

start on filesystem

script
for DISK in $(find /dev/[hs]d?) ; do
DEVNAME=$DISK
export DEVNAME
/lib/udev/hdparm
done
end script

Beside that i think, if it is set successfully the spindown still does not happen, still trying to find out what happens. Somebody can confirm this or is it just me ? (Well i suppose i have to open another bug, not before i dont know what happens)

Please let me know ...