Re: hdparm almost burned my SATA disk

Mark Lord
2005-10-17T20:50:39Z

Michal Piotrowski wrote:
>
> debian:/home/michal# hdparm -tT /dev/sda
>
> /dev/sda:
> Timing cached reads: 3652 MB in 2.00 seconds = 1823.54 MB/sec
> HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate
> ioctl for device
> Timing buffered disk reads: 174 MB in 3.01 seconds = 57.72 MB/sec
> HDIO_DRIVE_CMD(null) (wait for flush complete) failed: Inappropriate
> ioctl for device
> debian:/home/michal# hdparm -V
> hdparm v6.1
> debian:/home/michal# hdparm -I /dev/sda
>
> /dev/sda:
> HDIO_DRIVE_CMD(identify) failed: Inappropriate ioctl for device
>

Harmless. 100% harmless.

The "Inappropriate ioctl for device" messages are due to the incomplete
implementation of HDIO_DRIVE_CMD in libata. No big deal. Once the
passthru patches finally get released for real, I'll update hdparm to
not use the missing ioctl.

Cheers