Explicit APM values in hdparm-functions cause Load Cycle Count hell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdparm (Ubuntu) |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Release: 12.04 (development) maybe 11.10 is affected too?
Hard drive:
Model Family: Seagate Momentus 5400.6
Device Model: ST9250315AS
In recent hdparm version explicit APM values are set in /lib/hdparm/
Lines in question:
hdparm_options()
{
local WANTED_DISK="$1"
local DISC= DEFAULT= DEF_QUIET= COMMAND_LINE=
# if the below is guaranteed to spawn a subshell, then this next line is
# unnecessary
local OPTIONS OPT_QUIET KEY SEP VALUE
egrep -v '^[[:space:
{
# set our default global apm policy here.
if hdparm_try_apm "$WANTED_DISK"; then
if hdparm_
else
fi
fi
There obviously must be some workarounds by setting right values in /etc/hdparm.conf but I can not elaborate any further.
Status changed to 'Confirmed' because the bug affects multiple users.