Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 123647

Summary: hdparm init script uses obsolete entries (devfs) in /dev/ide and /dev/discs
Product: Gentoo Linux Reporter: Christian Bricart <christian>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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