Bug 477985 - incorrect ioctl use causes tool abort
Summary: incorrect ioctl use causes tool abort
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: hdparm
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Karsten Hopp
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-26 23:27 UTC by John Mellor
Modified: 2008-12-29 20:30 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-12-29 20:30:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description John Mellor 2008-12-26 23:27:00 UTC
Description of problem:
hdparm is incorrectly coded for use in F10, as shown by the following output:
# hdparm -d --direct /dev/sda
/dev/sda:
 HDIO_GET_DMA failed: Inappropriate ioctl for device


Version-Release number of selected component (if applicable):
hdparm-8.6-1.fc9.i386


How reproducible:
every time


Steps to Reproduce:
1.see above

  
Actual results:
ioctl usage error


Expected results:
hdparm functionality, as documented.


Additional info:

Comment 1 Karsten Hopp 2008-12-29 20:30:34 UTC
You can't use hdparm to set DMA mode on SCSI devices or scsi emulated devices.
AFAIK DMA is enabled per default for most hard disks with the exception of some blacklisted disks. hdparm can't tell you if SCSI devices have DMA enabled or disabled, but maybe sdparm can do that.


Note You need to log in before you can comment on or make changes to this bug.