First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 27282
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Heinrich Wendel (RETIRED) <lanius@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Florian Wilhelm <Florian.Wilhelm@web.de>
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 27282 depends on: Show dependency tree
Bug 27282 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: 2003-08-25 03:19 0000
If some cdrom drives run with ide-scsi and some not, it is logical not to use
all_args in /etc/conf.d/hdparm, because hdparm cannot set options on scsi
emulated drives. 
Although not having set all_args, if some drives run with ide-scsi following
warning appears:
Skipping $i hdparm does not support SCSI devices.

The problem is in the following lines in /etc/init.d/hdparm:
elif [ ! -n "${all_args}" ]    # remove ! before -n
then
     ewarn "Skipping $i hdparm does not support SCSI devices."
fi

-n returns true if all_args is NOT empty and ! inverses true to false.
So if ! is removed, the script does what it should do.

Reproducible: Always
Steps to Reproduce:
1. set up some cdrom devices to run with ide-scsi
2. do not set all_args in /etc/conf.d/hdparm
3.

Actual Results:  
Warning "Skipping cdrom1 hdparm does not support SCSI devices." appears,
although it should not.
               


Expected Results:  
No Warning should appear.

------- Comment #1 From Heinrich Wendel (RETIRED) 2003-08-26 11:06:06 0000 -------
as far as i see you are right -> fixed :) (no version bump)

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