[Bug 222458] Re: /lib/udev/hdparm Compares Against $DEVNAME.
Launchpad Bug Tracker
222458 at bugs.launchpad.net
Thu Mar 29 17:34:51 UTC 2012
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: hdparm (Ubuntu)
Status: New => Confirmed
--
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:
Confirmed
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