Bug 477985 - incorrect ioctl use causes tool abort
incorrect ioctl use causes tool abort
Product: Fedora
Classification: Fedora
Component: hdparm (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Karsten Hopp
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-12-26 18:27 EST by John Mellor
Modified: 2008-12-29 15:30 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-12-29 15:30:34 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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

Version-Release number of selected component (if applicable):

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 15:30:34 EST
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.