Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123647 - hdparm init script uses obsolete entries (devfs) in /dev/ide and /dev/discs
Summary: hdparm init script uses obsolete entries (devfs) in /dev/ide and /dev/discs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-21 12:44 UTC by Christian Bricart
Modified: 2006-02-21 16:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Bricart 2006-02-21 12:44:56 UTC
hdparm's init script iterates through /dev/ide|/dev/discs to set parameters to discs via hdparm using e.g. 'all_args="-d1 -c 3 -S 60"' in /etc/conf.d/hdparm

After udev has dropped devfs mappings in /dev/ide and /dev/discs (not LSB) this behaviour misses some devices.
Even when setting 'hdX_args=...' with X = {a,b,c,....} the init script checks for an existing symlink in /dev/ide or /dev/disks before executing hdparm on that disk - an thus misses this drive.

See also: http://thread.gmane.org/gmane.linux.gentoo.devel/36093 for a mode complete description.
Comment 1 SpanKY gentoo-dev 2006-02-21 16:08:14 UTC
the code already supports non-devfs schemes ... it'll just default to devfs style if devfs nodes are provided

updated the check to see if both /dev/.devfs and /dev/ide exist