First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 130330
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo's Team for Core System packages <base-system@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Sven Schwyn <svoop@delirium.ch>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 130330 depends on: Show dependency tree
Bug 130330 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: 2006-04-18 00:36 0000
Hi devs

Not sure if I'm right here, but I guess the hdparm init script is a Gentoo
extention.

While hdparm now supports sdXX devices for some functions (such as the standby
timer -S) and some drives (most notably SATA), the init script only handles
entries like hdXX_args and skips sdXX_args. Could you add support for the
latter - and maybe add a note to /etc/conf.d/hdparm mentioning that only few
parameters are allowed for sdXX devices these days.

Many thanks,    -sven

------- Comment #1 From Jakub Moc (RETIRED) 2006-04-18 05:36:52 0000 -------
Please, don't restrict bugs without a reason.

------- Comment #2 From SpanKY 2006-04-18 22:00:13 0000 -------
a note in conf.d wont really cut it ... it has to just kind of "work" out of
the box for both PATA and SATA ...

------- Comment #3 From Sven Schwyn 2006-04-18 23:54:09 0000 -------
The init script does not need to be cleverer than the hdparm tool itself -
which will return a dumb "inappropriate ioctl for device". Cou can't keep users
from adding illegal arguments to /etc/conf.d/hdparm anyway.

Changing the line "for device in /dev/hd?" in /etc/init.d/hdparm so it also
parses sdXX_args works just fine on my pretty standard SATA box.

------- Comment #4 From Sander Sweers 2006-06-04 02:53:20 0000 -------
Well, (In reply to comment #2)
> a note in conf.d wont really cut it ... it has to just kind of "work" out of
> the box for both PATA and SATA ...

The only way I see you can do this is by looking in sysfs. There is a entry for
storage.vendor which is set to ATA for sata drives.

So something like: udevinfo -q env -n <scsi_device> | grep VENDOR should return
ID_VENDOR=ATA. If not it is a normal scsi device.

------- Comment #5 From SpanKY 2006-06-24 21:34:10 0000 -------
you missed the point

adding /dev/sd? to the default list results in an init.d script that, by
default, causes ugly messages like:
 * Running hdparm on /dev/sda ...
 HDIO_SET_DMA failed: Inappropriate ioctl for device                      [ ok
]

the code needs to just work by default

------- Comment #6 From SpanKY 2006-06-24 21:43:53 0000 -------
added basic support for pata_all_args and sata_all_args

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