First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 59388
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Heinrich Wendel (RETIRED) <lanius@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Lars Geiger <lars.geiger@gmx.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hdparm.diff Change for the initscript to fix the bug patch Lars Geiger 2004-08-04 05:34 0000 424 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 59388 depends on: Show dependency tree
Bug 59388 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-08-04 05:30 0000
The hdparm initscripts calls 'hdparm -q $args $device' which causes hdparm to
output a drive's current config if $args contains more than one argument
(because -q just supresses the output of the one parameter immediately
following the -q).

Reproducible: Always
Steps to Reproduce:
1. emerge "=hdparm-5.5-r2"
2. Edit /etc/conf.d/hdparm to contain something like 'disc0_args="-A1 -a64 -c3
-d1 -m16 -S120 -u1"'
3. '/etc/init.d/hdparm start'
Actual Results:  
The settings for disc0 were applied and reported:

 * Running hdparm on /dev/discs/disc0/disc...
 setting fs readahead to 64
 setting 32-bit IO_support flag to 3
 setting multcount to 16
 setting unmaskirq to 1 (on)
 setting using_dma to 1 (on)
 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  1 (on)
 using_dma    =  1 (on)
 readahead    = 64 (on)


Expected Results:  
The settings should have been applied silently, just like they are when only a
single argument like 'disc0_args="-d1"' is present.

------- Comment #1 From Lars Geiger 2004-08-04 05:34:19 0000 -------
Created an attachment (id=36742) [edit]
Change for the initscript to fix the bug

Changed the hdparm call to not use -q (which only works for the first
parameter) and redirected output of hdparm to /dev/null.

------- Comment #2 From Heinrich Wendel (RETIRED) 2004-08-04 07:02:12 0000 -------
thx for pointing that out, fixed in -r3 :)

First Last Prev Next    No search results available      Search page      Enter new bug