Red Hat Bugzilla – Bug 477985
incorrect ioctl use causes tool abort
Last modified: 2008-12-29 15:30:34 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):
Steps to Reproduce:
ioctl usage error
hdparm functionality, as documented.
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.