[Bug 222458] Re: /lib/udev/hdparm Compares Against $DEVNAME.
Ralph Corderoy
ralph at inputplus.co.uk
Sat Jan 11 14:36:03 UTC 2014
Hi Tom, This bug is "Fix Released". No further work will be done on it.
Your comment will be ignored. You need to find a closely related open
bug to request it or open a new one.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to hdparm in Ubuntu.
https://bugs.launchpad.net/bugs/222458
Title:
/lib/udev/hdparm Compares Against $DEVNAME.
Status in “hdparm” package in Ubuntu:
Fix Released
Bug description:
Binary package hint: hdparm
Ubuntu 7.10, hdparm 7.5-1ubuntu1. My /etc/hdparm.conf has entries
like
/dev/disk/by-id/ata-ST3160023A_4JS03MMK {
spindown_time = 60
}
which work just fine with /etc/init.d/hdparm. However, it appears
init.d/hdparm is on its way out and has been replaced with
/lib/udev/hdparm. That only executes hdparm(8) for bits of
/etc/hdparm.conf that match $DEVNAME, presumably passed in by udev. I
guess it'll have values like /dev/sda or /dev/hda. However, I don't
necessarily know what the /dev name will be, so I've specified it by
/dev/disk/by-id instead which is a symlink.
$ stat -c %N /dev/disk/by-id/ata-ST3160023A_4JS03MMK
`/dev/disk/by-id/ata-ST3160023A_4JS03MMK' -> `../../hda'
It seems that /lib/udev/hdparm needs to do some readlink(1) or similar
for each of the discs specified in /etc/hdparm.conf, e.g. `readlink -e
/dev/disk/by-id/ata-ST3160023A_4JS03MMK' gives /dev/hda, and only then
compare against $DEVNAME.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/hdparm/+bug/222458/+subscriptions
More information about the foundations-bugs
mailing list