hdparm Ignores Order of Command-Line Flags.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
hdparm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: hdparm
Ubuntu 7.10, hdparm 7.5-1ubuntu1. hdparm(1) doesn't point out that the
options aren't interpreted in the order they're given but instead in a
fixed order. This causes problems when /etc/hdparm.conf contains
/dev/
# 5 second units * 60 == 5 minutes.
standby
}
because
hdparm -S60 -y /dev/disk/
is run but the `standby now' is done first, then wiped-out by setting
the `idle time' to five minutes.
/dev/
issuing standby command
setting standby to 60 (5 minutes)
which results in the drive state (-C) still being `active/idle'.
Either hdparm needs to be altered to process options in the command-line
order, or hdparm(8) needs to be very clear that the order is fixed, what
the order is, and that multiple invocations of hdparm may be required as
a workaround.
Confirmed in hdparm 9.15-1ubuntu4, Ubuntu 9.10, using the submitter's suggested command line (hdparm -S60 -y).